9 #ifndef THEPEG_LesHouchesFileReader_H 10 #define THEPEG_LesHouchesFileReader_H 13 #include "ThePEG/LesHouches/LesHouchesReader.h" 14 #include "LesHouchesFileReader.fh" 15 #include "ThePEG/PDT/Decayer.h" 16 #include "ThePEG/Utilities/CFileLineReader.h" 244 class LesHouchesFileError:
public Exception {};
252 #include "ThePEG/Utilities/ClassTraits.h" 279 static string className() {
return "ThePEG::LesHouchesFileReader"; }
285 static string library() {
return "LesHouches.so"; }
static ClassDescription< LesHouchesFileReader > initLesHouchesFileReader
Describe an abstract base class with persistent data.
PersistentIStream is used to read persistent objects from a stream where they were previously written...
The LesHouchesEventHandler inherits from the general EventHandler class and administers the reading o...
ClassTraitsType is an empty, non-polymorphic, base class.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
virtual bool preInitialize() const
Return true if this object needs to be initialized before all other objects because it needs to extra...
string LHFVersion
If the file is a standard Les Houches formatted file (LHF) this is its version number.
LesHouchesReader is an abstract base class to be used for objects which reads event files or streams ...
bool theQNumbers
Whether or not to search for QNUMBERS stuff.
This is the main namespace within which all identifiers in ThePEG are declared.
DecayerPtr theDecayer
Decayer for any decay modes read from the file.
virtual ~LesHouchesFileReader()
Destructor.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
virtual void close()
Close the file from which events have been read.
string theFileName
The name of the file from where to read events.
long ieve
The current event number.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
virtual void open()
Open a file with events.
string filename() const
Return the name of the file from where to read events.
string initComments
If LHF.
string headerBlock
If LHF.
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
static void Init()
Standard Init function used to initialize the interfaces.
RCPtr is a reference counted (smart) pointer.
virtual void initialize(LesHouchesEventHandler &eh)
Initialize.
Exception is the base class for all exceptions to be used in ThePEG.
map< string, string > eventAttributes
If LHF.
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
The default concrete implementation of ClassTraitsBase.
virtual bool doReadEvent()
Read the next event from the file or stream into the corresponding protected variables.
LesHouchesFileReader & operator=(const LesHouchesFileReader &)
Private and non-existent assignment operator.
CFileLineReader is a wrapper around a standard C FILE stream.
string outsideBlock
If LHF.
long neve
The number of events in this file.
map< string, string > initAttributes
If LHF.
BaseClassTraits describes the base classes of the templated class.
string eventComments
If LHF.
virtual IBPtr clone() const
Make a simple clone of this object.
CFileLineReader cfile
The wrapper around the C FILE stream from which to read.
LesHouchesFileReader()
Default constructor.
The templated ClassTraitsBase class defines a set of default information about classes used by ThePEG...
LesHouchesFileReader is an base class to be used for objects which reads event files from matrix elem...