#include <MadGraphReader.h>
Public Member Functions | |
Standard constructors and destructors. | |
MadGraphReader () | |
Default constructor. | |
Virtual functions specified by the LesHouchesReader base class. | |
virtual void | open () |
Open a file or stream with events and read in the run information into the corresponding protected variables. | |
virtual long | scan () |
Scan the file or stream to obtain information about cross section weights and particles etc. | |
virtual bool | doReadEvent () |
Read the next event form the file or stream into the corresponding protected variables. | |
Functions used by the persistent I/O system. | |
void | persistentOutput (PersistentOStream &os) const |
Function used to write out object persistently. | |
void | persistentInput (PersistentIStream &is, int version) |
Function used to read in object persistently. | |
Static Public Member Functions | |
static void | Init () |
Standard Init function used to initialize the interfaces. | |
Protected Member Functions | |
string | scanCuts (string) |
Interface function to scan a madgraph file and extract information about used cuts. | |
long | numberOfEvents (string) |
Function to extract the number of events from a string. | |
Clone Methods. | |
virtual IBPtr | clone () const |
Make a simple clone of this object. | |
virtual IBPtr | fullclone () const |
Make a clone of this object, possibly modifying the cloned object to make it sane. | |
Standard Interfaced functions. | |
virtual void | doinit () |
Initialize this object after the setup phase before saving an EventGenerator to disk. | |
CutsPtr | initCuts () |
Called from doinit() to extract cuts from the event file and add the corresponding objects to the current EventGenerator. | |
virtual void | initPDFs () |
Called from LesHouchesReader::doinit() to extract PDFs from the event file and add the corresponding objects to the current EventGenerator. | |
virtual bool | preInitialize () const |
Return true if this object needs to be initialized before all other objects because it needs to extract cuts from the event file. | |
virtual void | dofinish () |
Finalize this object. | |
Protected Attributes | |
Energy | fixedScale |
Fixed scale. | |
double | fixedAEM |
Fixed . | |
double | fixedAS |
Fixed . | |
map< string, double > | cuts |
New MadGraph files contain suitable information about cuts used in the generation. | |
bool | doInitCuts |
If true, cuts may be extracted from the event file during initialization. | |
Private Member Functions | |
MadGraphReader & | operator= (const MadGraphReader &) |
Private and non-existent assignment operator. | |
Static Private Attributes | |
static ClassDescription < MadGraphReader > | initMadGraphReader |
Describe a concrete class with persistent data. | |
Classes | |
struct | WeightedExcetion |
Exception class used to inform about inability to work with some weighted event files. More... |
Definition at line 24 of file MadGraphReader.h.
virtual long ThePEG::MadGraphReader::scan | ( | ) | [virtual] |
Scan the file or stream to obtain information about cross section weights and particles etc.
This function should fill the variables corresponding to the /HEPRUP/ common block. The function returns the number of events scanned. This version calls the base class function and the readjusts the values in HEPRUP to cure some inconsistencies in the MadGraph files.
Reimplemented from ThePEG::LesHouchesReader.
virtual bool ThePEG::MadGraphReader::doReadEvent | ( | ) | [virtual] |
Read the next event form the file or stream into the corresponding protected variables.
Return false if there is no more events.
Reimplemented from ThePEG::LesHouchesFileReader.
void ThePEG::MadGraphReader::persistentOutput | ( | PersistentOStream & | os | ) | const |
Function used to write out object persistently.
os | the persistent output stream written to. |
Reimplemented from ThePEG::LesHouchesFileReader.
void ThePEG::MadGraphReader::persistentInput | ( | PersistentIStream & | is, | |
int | version | |||
) |
Function used to read in object persistently.
is | the persistent input stream read from. | |
version | the version number of the object when written. |
Reimplemented from ThePEG::LesHouchesFileReader.
virtual IBPtr ThePEG::MadGraphReader::clone | ( | ) | const [protected, virtual] |
Make a simple clone of this object.
Reimplemented from ThePEG::LesHouchesFileReader.
virtual IBPtr ThePEG::MadGraphReader::fullclone | ( | ) | const [protected, virtual] |
Make a clone of this object, possibly modifying the cloned object to make it sane.
Reimplemented from ThePEG::LesHouchesFileReader.
virtual void ThePEG::MadGraphReader::doinit | ( | ) | [protected, virtual] |
Initialize this object after the setup phase before saving an EventGenerator to disk.
InitException | if object could not be initialized properly. |
Reimplemented from ThePEG::LesHouchesReader.
virtual void ThePEG::MadGraphReader::dofinish | ( | ) | [inline, protected, virtual] |
Finalize this object.
Called in the run phase just after a run has ended. Used eg. to write out statistics.
Reimplemented from ThePEG::LesHouchesReader.
Definition at line 141 of file MadGraphReader.h.
References ThePEG::XSecStat::accepted(), ThePEG::LesHouchesReader::dofinish(), ThePEG::LesHouchesReader::stats, and ThePEG::Interfaced::useMe().
string ThePEG::MadGraphReader::scanCuts | ( | string | ) | [protected] |
Interface function to scan a madgraph file and extract information about used cuts.
The corresponding cut objects are created in the Repository and assigned to this reader.
Energy ThePEG::MadGraphReader::fixedScale [protected] |
Fixed scale.
Old MadGraph files do not necessarily contain information about the factorization (or renormalization) scale. In this case this is used instead.
Definition at line 168 of file MadGraphReader.h.
double ThePEG::MadGraphReader::fixedAEM [protected] |
Fixed .
Old MadGraph files do not necessarily contain information about the value of . In this case this is used instead.
Definition at line 175 of file MadGraphReader.h.
double ThePEG::MadGraphReader::fixedAS [protected] |
Fixed .
Old MadGraph files do not necessarily contain information about the value of . In this case this is used instead.
Definition at line 182 of file MadGraphReader.h.
map<string,double> ThePEG::MadGraphReader::cuts [protected] |
New MadGraph files contain suitable information about cuts used in the generation.
The non-zero ones are stored in this map.
Definition at line 188 of file MadGraphReader.h.