9 #ifndef THEPEG_MadGraphReader_H 10 #define THEPEG_MadGraphReader_H 13 #include "ThePEG/LesHouches/LesHouchesFileReader.h" 220 #include "ThePEG/Utilities/ClassTraits.h" 245 static string className() {
return "ThePEG::MadGraphReader"; }
249 static string library() {
return "MadGraphReader.so"; }
PersistentIStream is used to read persistent objects from a stream where they were previously written...
string scanCuts(string)
Interface function to scan a madgraph file and extract information about used cuts.
ClassTraitsType is an empty, non-polymorphic, base class.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
virtual void dofinish()
Finalize this object.
const Exception & operator=(const Exception &ex)
Assignment.
MadGraphReader()
Default constructor.
PersistentOStream is used to write objects persistently to a stream from which they can be read in ag...
virtual void initPDFs()
Called from LesHouchesReader::doinit() to extract PDFs from the event file and add the corresponding ...
virtual bool doReadEvent()
Read the next event form the file or stream into the corresponding protected variables.
CutsPtr initCuts()
Called from doinit() to extract cuts from the event file and add the corresponding objects to the cur...
This is the main namespace within which all identifiers in ThePEG are declared.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
bool doInitCuts
If true, cuts may be extracted from the event file during initialization.
virtual void open()
Open a file or stream with events and read in the run information into the corresponding protected va...
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
virtual void dofinish()
Finalize this object.
long numberOfEvents(string)
Function to extract the number of events from a string.
void useMe() const
Should be called to indicate that this object has actually been used.
QTY< 0, 1, 0 >::Type Energy
Energy.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
map< string, double > cuts
New MadGraph files contain suitable information about cuts used in the generation.
RCPtr is a reference counted (smart) pointer.
Exception class used to inform about inability to work with some weighted event files.
MadGraphReader inherits from LesHouchesFileReader and is able to read event files produced by the Mad...
virtual bool preInitialize() const
Return true if this object needs to be initialized before all other objects because it needs to extra...
Exception is the base class for all exceptions to be used in ThePEG.
virtual IBPtr clone() const
Make a simple clone of this object.
static ClassDescription< MadGraphReader > initMadGraphReader
Describe a concrete class with persistent data.
The default concrete implementation of ClassTraitsBase.
virtual long scan()
Scan the file or stream to obtain information about cross section weights and particles etc...
Energy fixedScale
Fixed scale.
static void Init()
Standard Init function used to initialize the interfaces.
XSecStat stats
Collect statistics for this reader.
BaseClassTraits describes the base classes of the templated class.
long accepted() const
Number of attempts so far.
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...