thepeg
is hosted by
Hepforge
,
IPPP Durham
ThePEG
2.3.0
Analysis
HepMC3File.h
1
// -*- C++ -*-
2
//
3
// HepMC3File.h is a part of ThePEG - Toolkit for HEP Event Generation
4
// Copyright (C) 1999-2019 Leif Lonnblad
5
//
6
// ThePEG is licenced under version 3 of the GPL, see COPYING for details.
7
// Please respect the MCnet academic guidelines, see GUIDELINES for details.
8
//
9
#ifndef THEPEG_HepMC3File_H
10
#define THEPEG_HepMC3File_H
11
//
12
// This is the declaration of the HepMC3File class.
13
//
14
#include <iostream>
15
#include <fstream>
16
#include "ThePEG/Handlers/AnalysisHandler.h"
17
#include "ThePEG/Repository/CurrentGenerator.h"
18
#include "ThePEG/Repository/EventGenerator.h"
19
#include "HepMC/IO/IO_Base.h"
20
21
namespace
ThePEG
{
22
29
class
HepMC3File
:
public
AnalysisHandler
{
30
31
public
:
32
38
HepMC3File
();
39
43
HepMC3File
(
const
HepMC3File
&);
45
46
public
:
47
67
virtual
void
analyze
(
tEventPtr
event,
long
ieve,
int
loop,
int
state
);
69
70
public
:
71
78
void
persistentOutput
(
PersistentOStream
& os)
const
;
79
85
void
persistentInput
(
PersistentIStream
& is,
int
version);
87
94
static
void
Init
();
95
96
protected
:
97
104
virtual
IBPtr
clone
()
const
;
105
110
virtual
IBPtr
fullclone
()
const
;
112
113
protected
:
114
121
virtual
void
doinitrun
();
122
127
virtual
void
dofinish
();
129
130
private
:
131
136
static
ClassDescription<HepMC3File>
initHepMC3File
;
137
142
HepMC3File
&
operator=
(
const
HepMC3File
&) =
delete
;
143
144
private
:
145
149
long
_eventNumber
;
150
154
string
_filename
;
155
159
HepMC::IO_Base *
_hepmcio
;
160
164
int
_unitchoice
;
165
169
unsigned
int
_geneventPrecision
;
170
};
171
172
}
173
174
#include "ThePEG/Utilities/ClassTraits.h"
175
176
namespace
ThePEG
{
177
182
template
<>
183
struct
BaseClassTrait<HepMC3File,1> {
185
typedef
AnalysisHandler
NthBase
;
186
};
187
190
template
<>
191
struct
ClassTraits<HepMC3File>
192
:
public
ClassTraitsBase<HepMC3File> {
194
static
string
className
() {
return
"ThePEG::HepMCFile"
; }
198
static
string
library
() {
return
"HepMCAnalysis.so"
; }
199
};
200
203
}
204
205
#endif
/* THEPEG_HepMC3File_H */
ThePEG::AnalysisHandler
The AnalysisHandler is the base class of all analysis objects which may be handled by the FullEventGe...
Definition:
AnalysisHandler.h:41
ThePEG::ClassDescription
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data.
Definition:
ClassDescription.h:333
ThePEG::HepMC3File
The HepMC3File class outputs ThePEG events in HepMC format.
Definition:
HepMC3File.h:29
ThePEG::HepMC3File::_hepmcio
HepMC::IO_Base * _hepmcio
The HepMC I/O handler.
Definition:
HepMC3File.h:159
ThePEG::HepMC3File::operator=
HepMC3File & operator=(const HepMC3File &)=delete
The assignment operator is private and must never be called.
ThePEG::HepMC3File::doinitrun
virtual void doinitrun()
Initialize this object.
ThePEG::HepMC3File::persistentOutput
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
ThePEG::HepMC3File::Init
static void Init()
The standard Init function used to initialize the interfaces.
ThePEG::HepMC3File::HepMC3File
HepMC3File()
The default constructor.
ThePEG::HepMC3File::HepMC3File
HepMC3File(const HepMC3File &)
The copy constructor.
ThePEG::HepMC3File::_filename
string _filename
The HepMC filename.
Definition:
HepMC3File.h:154
ThePEG::HepMC3File::_eventNumber
long _eventNumber
Last event that should be written out as HepMC format.
Definition:
HepMC3File.h:149
ThePEG::HepMC3File::initHepMC3File
static ClassDescription< HepMC3File > initHepMC3File
The static object used to initialize the description of this class.
Definition:
HepMC3File.h:136
ThePEG::HepMC3File::analyze
virtual void analyze(tEventPtr event, long ieve, int loop, int state)
Analyze a given Event.
ThePEG::HepMC3File::persistentInput
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
ThePEG::HepMC3File::_unitchoice
int _unitchoice
Selector for the choice of units.
Definition:
HepMC3File.h:164
ThePEG::HepMC3File::clone
virtual IBPtr clone() const
Make a simple clone of this object.
ThePEG::HepMC3File::fullclone
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
ThePEG::HepMC3File::_geneventPrecision
unsigned int _geneventPrecision
Choice of output precision in GenEvent format.
Definition:
HepMC3File.h:169
ThePEG::HepMC3File::dofinish
virtual void dofinish()
Finalize this object.
ThePEG::InterfacedBase::state
InitState state() const
Return the state of initialization of this object.
Definition:
InterfacedBase.h:298
ThePEG::PersistentIStream
PersistentIStream is used to read persistent objects from a stream where they were previously written...
Definition:
PersistentIStream.h:48
ThePEG::PersistentOStream
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
Definition:
PersistentOStream.h:51
ThePEG::Pointer::RCPtr
RCPtr is a reference counted (smart) pointer.
Definition:
RCPtr.h:60
ThePEG::Pointer::TransientRCPtr
TransientRCPtr is a simple wrapper around a bare pointer which can be assigned to and from an RCPtr a...
Definition:
RCPtr.h:519
ThePEG
This is the main namespace within which all identifiers in ThePEG are declared.
Definition:
FactoryBase.h:28
ThePEG::BaseClassTrait::NthBase
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Definition:
ClassTraits.h:161
ThePEG::ClassTraitsBase::className
static string className()
Return the name of class T.
Definition:
ClassTraits.h:66
ThePEG::ClassTraitsBase::library
static string library()
The name of a file containing the dynamic library where the class T is implemented.
Definition:
ClassTraits.h:85
Generated on Thu Jun 20 2024 14:47:00 for ThePEG by
1.9.6