BB4LPowhegLesHouchesFileReader is an base class to be used for objects which reads event files from matrix element generators.
More...
#include <BB4LPowhegLesHouchesFileReader.h>
|
|
virtual IBPtr | clone () const |
| Make a simple clone of this object. More...
|
|
virtual IBPtr | fullclone () const |
| Make a clone of this object, possibly modifying the cloned object to make it sane. More...
|
|
BB4LPowhegLesHouchesFileReader is an base class to be used for objects which reads event files from matrix element generators.
It inherits from LesHouchesReader and extends it by defining a file handle to be read from, which is opened and closed by the open() and close() functions. Note that the file handle is a standard C filehandle and not a C++ stream. This is because there is no standard way in C++ to connect a pipe to a stream for reading eg. gzipped files. This class is able to read plain event files conforming to the Les Houches Event File accord.
- See also
- Th1e interfaces defined for BB4LPowhegLesHouchesFileReader.
-
Event
-
LesHouchesReader
Definition at line 39 of file BB4LPowhegLesHouchesFileReader.h.
◆ BB4LPowhegLesHouchesFileReader() [1/2]
ThePEG::BB4LPowhegLesHouchesFileReader::BB4LPowhegLesHouchesFileReader |
( |
| ) |
|
|
inline |
◆ BB4LPowhegLesHouchesFileReader() [2/2]
Copy-constructor.
Note that a file which is opened in the object copied from will have to be reopened in this.
◆ ~BB4LPowhegLesHouchesFileReader()
virtual ThePEG::BB4LPowhegLesHouchesFileReader::~BB4LPowhegLesHouchesFileReader |
( |
| ) |
|
|
virtual |
◆ clone()
virtual IBPtr ThePEG::BB4LPowhegLesHouchesFileReader::clone |
( |
| ) |
const |
|
protectedvirtual |
Make a simple clone of this object.
- Returns
- a pointer to the new object.
◆ close()
virtual void ThePEG::BB4LPowhegLesHouchesFileReader::close |
( |
| ) |
|
|
virtual |
Close the file from which events have been read.
◆ doinit()
virtual void ThePEG::BB4LPowhegLesHouchesFileReader::doinit |
( |
| ) |
|
|
protectedvirtual |
Initialize this object after the setup phase before saving an EventGenerator to disk.
- Exceptions
-
InitException | if object could not be initialized properly. |
◆ doReadEvent()
virtual bool ThePEG::BB4LPowhegLesHouchesFileReader::doReadEvent |
( |
| ) |
|
|
virtual |
Read the next event from the file or stream into the corresponding protected variables.
Return false if there is no more events or if this was not a LHF event file.
◆ erase_substr()
void ThePEG::BB4LPowhegLesHouchesFileReader::erase_substr |
( |
std::string & |
subject, |
|
|
const std::string & |
search |
|
) |
| |
Erases all occurences of a substring from a string.
◆ eventWeight()
double ThePEG::BB4LPowhegLesHouchesFileReader::eventWeight |
( |
| ) |
|
|
inline |
◆ filename()
string ThePEG::BB4LPowhegLesHouchesFileReader::filename |
( |
| ) |
const |
|
inline |
◆ fullclone()
virtual IBPtr ThePEG::BB4LPowhegLesHouchesFileReader::fullclone |
( |
| ) |
const |
|
protectedvirtual |
Make a clone of this object, possibly modifying the cloned object to make it sane.
- Returns
- a pointer to the new object.
◆ Init()
static void ThePEG::BB4LPowhegLesHouchesFileReader::Init |
( |
| ) |
|
|
static |
Standard Init function used to initialize the interfaces.
◆ initialize()
virtual void ThePEG::BB4LPowhegLesHouchesFileReader::initialize |
( |
LesHouchesEventHandler & |
eh | ) |
|
|
virtual |
Initialize.
This function is called by the LesHouchesEventHandler to which this object is assigned.
◆ open()
virtual void ThePEG::BB4LPowhegLesHouchesFileReader::open |
( |
| ) |
|
|
virtual |
Open a file with events.
Derived classes should overwrite it and first calling it before reading in the run information into the corresponding protected variables.
◆ operator=()
Private and non-existent assignment operator.
◆ optWeightsNamesFunc()
virtual vector<string> ThePEG::BB4LPowhegLesHouchesFileReader::optWeightsNamesFunc |
( |
| ) |
|
|
virtual |
Return the optional weights information string ("Names")
◆ persistentInput()
void ThePEG::BB4LPowhegLesHouchesFileReader::persistentInput |
( |
PersistentIStream & |
is, |
|
|
int |
version |
|
) |
| |
Function used to read in object persistently.
- Parameters
-
is | the persistent input stream read from. |
version | the version number of the object when written. |
◆ persistentOutput()
void ThePEG::BB4LPowhegLesHouchesFileReader::persistentOutput |
( |
PersistentOStream & |
os | ) |
const |
Function used to write out object persistently.
- Parameters
-
os | the persistent output stream written to. |
◆ preInitialize()
virtual bool ThePEG::BB4LPowhegLesHouchesFileReader::preInitialize |
( |
| ) |
const |
|
protectedvirtual |
Return true if this object needs to be initialized before all other objects because it needs to extract PDFs from the event file.
◆ m_cfile
CFileLineReader ThePEG::BB4LPowhegLesHouchesFileReader::m_cfile |
|
protected |
◆ m_eventAttributes
map<string,string> ThePEG::BB4LPowhegLesHouchesFileReader::m_eventAttributes |
|
protected |
◆ m_eventComments
string ThePEG::BB4LPowhegLesHouchesFileReader::m_eventComments |
|
protected |
◆ m_headerBlock
string ThePEG::BB4LPowhegLesHouchesFileReader::m_headerBlock |
|
protected |
◆ m_ieve
long ThePEG::BB4LPowhegLesHouchesFileReader::m_ieve |
|
protected |
◆ m_initAttributes
map<string,string> ThePEG::BB4LPowhegLesHouchesFileReader::m_initAttributes |
|
protected |
◆ m_initBB4LPowhegLesHouchesFileReader
◆ m_initComments
string ThePEG::BB4LPowhegLesHouchesFileReader::m_initComments |
|
protected |
◆ m_LHFVersion
string ThePEG::BB4LPowhegLesHouchesFileReader::m_LHFVersion |
|
protected |
If the file is a standard Les Houches formatted file (LHF) this is its version number.
If empty, this is not a Les Houches formatted file
Definition at line 196 of file BB4LPowhegLesHouchesFileReader.h.
◆ m_neve
long ThePEG::BB4LPowhegLesHouchesFileReader::m_neve |
|
protected |
◆ m_optionalWeightsLabel
map<string,string> ThePEG::BB4LPowhegLesHouchesFileReader::m_optionalWeightsLabel |
|
private |
◆ m_optionalWeightsTemp
map<string,double> ThePEG::BB4LPowhegLesHouchesFileReader::m_optionalWeightsTemp |
|
private |
◆ m_outsideBlock
string ThePEG::BB4LPowhegLesHouchesFileReader::m_outsideBlock |
|
protected |
◆ m_scalemap
map<string,string> ThePEG::BB4LPowhegLesHouchesFileReader::m_scalemap |
|
private |
◆ m_theDecayer
DecayerPtr ThePEG::BB4LPowhegLesHouchesFileReader::m_theDecayer |
|
private |
◆ m_theFileName
string ThePEG::BB4LPowhegLesHouchesFileReader::m_theFileName |
|
private |
◆ m_theIncludeCentral
bool ThePEG::BB4LPowhegLesHouchesFileReader::m_theIncludeCentral |
|
private |
◆ m_theIncludeFxFxTags
bool ThePEG::BB4LPowhegLesHouchesFileReader::m_theIncludeFxFxTags |
|
private |
◆ m_theQNumbers
bool ThePEG::BB4LPowhegLesHouchesFileReader::m_theQNumbers |
|
private |
The documentation for this class was generated from the following file: