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.
|
| virtual IBPtr | fullclone () const |
| | Make a clone of this object, possibly modifying the cloned object to make it sane.
|
|
| 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.
|
| void | erase_substr (std::string &subject, const std::string &search) |
| | Erases all occurences of a substring from a string.
|
| static void | Init () |
| | Standard Init function used to initialize the interfaces.
|
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 41 of file BB4LPowhegLesHouchesFileReader.h.
◆ BB4LPowhegLesHouchesFileReader() [1/2]
| ThePEG::BB4LPowhegLesHouchesFileReader::BB4LPowhegLesHouchesFileReader |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 50 of file BB4LPowhegLesHouchesFileReader.h.
bool m_theIncludeCentral
Include central weight (for backup use)
bool m_theQNumbers
Whether or not to search for QNUMBERS stuff.
long m_neve
The number of events in this file.
bool m_theIncludeFxFxTags
Include/Read FxFx tags.
long m_ieve
The current event number.
◆ 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()
| const std::string & ThePEG::BB4LPowhegLesHouchesFileReader::filename |
( |
| ) |
const |
|
inline |
Return the name of the file from where to read events.
Definition at line 100 of file BB4LPowhegLesHouchesFileReader.h.
std::string m_theFileName
The name of the file from where to read events.
◆ 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()
| 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 std::vector< std::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
| std::map<std::string,std::string> ThePEG::BB4LPowhegLesHouchesFileReader::m_eventAttributes |
|
protected |
◆ m_eventComments
| std::string ThePEG::BB4LPowhegLesHouchesFileReader::m_eventComments |
|
protected |
◆ m_headerBlock
| std::string ThePEG::BB4LPowhegLesHouchesFileReader::m_headerBlock |
|
protected |
◆ m_ieve
| long ThePEG::BB4LPowhegLesHouchesFileReader::m_ieve |
|
protected |
◆ m_initAttributes
| std::map<std::string,std::string> ThePEG::BB4LPowhegLesHouchesFileReader::m_initAttributes |
|
protected |
◆ m_initBB4LPowhegLesHouchesFileReader
◆ m_initComments
| std::string ThePEG::BB4LPowhegLesHouchesFileReader::m_initComments |
|
protected |
◆ m_LHFVersion
| std::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 198 of file BB4LPowhegLesHouchesFileReader.h.
◆ m_neve
| long ThePEG::BB4LPowhegLesHouchesFileReader::m_neve |
|
protected |
◆ m_optionalWeightsLabel
| std::map<std::string,std::string> ThePEG::BB4LPowhegLesHouchesFileReader::m_optionalWeightsLabel |
|
private |
◆ m_optionalWeightsTemp
| std::map<std::string,double> ThePEG::BB4LPowhegLesHouchesFileReader::m_optionalWeightsTemp |
|
private |
◆ m_outsideBlock
| std::string ThePEG::BB4LPowhegLesHouchesFileReader::m_outsideBlock |
|
protected |
◆ m_scalemap
| std::map<std::string,std::string> ThePEG::BB4LPowhegLesHouchesFileReader::m_scalemap |
|
private |
◆ m_theDecayer
| DecayerPtr ThePEG::BB4LPowhegLesHouchesFileReader::m_theDecayer |
|
private |
◆ m_theFileName
| std::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: