9 #ifndef THEPEG_MadGraphReader_H
10 #define THEPEG_MadGraphReader_H
13 #include "ThePEG/LesHouches/LesHouchesFileReader.h"
220 #include "ThePEG/Utilities/ClassTraits.h"
231 struct BaseClassTrait<MadGraphReader,1>:
public ClassTraitsType {
233 typedef LesHouchesFileReader
NthBase;
242 struct ClassTraits<MadGraphReader>
243 :
public ClassTraitsBase<MadGraphReader> {
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.
A concreate implementation of ClassDescriptionBase describing a concrete class with persistent data...
virtual void dofinish()
Finalize this object.
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 IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
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 bool preInitialize() const
Return true if this object needs to be initialized before all other objects because it needs to extra...
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.
QTY< 0, 1, 0 >::Type Energy
Energy.
static string library()
The name of a file containing the dynamic library where the class T is implemented.
virtual IBPtr clone() const
Make a simple clone of this object.
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.
long accepted() const
Number of attempts so far.
MadGraphReader inherits from LesHouchesFileReader and is able to read event files produced by the Mad...
Exception is the base class for all exceptions to be used in ThePEG.
static ClassDescription< MadGraphReader > initMadGraphReader
Describe a concrete class with persistent data.
virtual long scan()
Scan the file or stream to obtain information about cross section weights and particles etc...
static string className()
Return the name of class T.
int NthBase
The type of the BaseN'th base class (int means there are no further base classes).
Energy fixedScale
Fixed scale.
static void Init()
Standard Init function used to initialize the interfaces.
MadGraphReader & operator=(const MadGraphReader &)
Private and non-existent assignment operator.
XSecStat stats
Collect statistics for this reader.
void useMe() const
Should be called to indicate that this object has actually been used.
LesHouchesFileReader is an base class to be used for objects which reads event files from matrix elem...