|
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef THEPEG_powhegLesHouchesFileReader_H
10 #define THEPEG_powhegLesHouchesFileReader_H
14 #include "ThePEG/LesHouches/LesHouchesReader.h"
15 #include "Herwig7_i/PowhegLesHouchesFileReader.fh"
16 #include "ThePEG/PDT/Decayer.h"
17 #include "ThePEG/Utilities/CFileLineReader.h"
76 virtual void initialize(LesHouchesEventHandler & eh);
150 virtual IBPtr
clone()
const;
292 class powhegLesHouchesFileError:
public Exception {};
300 #include "ThePEG/Utilities/ClassTraits.h"
311 struct BaseClassTrait<powhegLesHouchesFileReader,1>:
public ClassTraitsType {
313 typedef LesHouchesReader NthBase;
322 struct ClassTraits<powhegLesHouchesFileReader>
323 :
public ClassTraitsBase<powhegLesHouchesFileReader> {
327 static string className() {
return "ThePEG::powhegLesHouchesFileReader"; }
333 static string library() {
return "libpowhegHerwig.so"; }
long m_ieve
The current event number.
map< string, string > m_initAttributes
If LHF.
static const ClassDescription< powhegLesHouchesFileReader > m_initpowhegLesHouchesFileReader
Describe an abstract base class with persistent data.
string m_LHFVersion
If the file is a standard Les Houches formatted file (LHF) this is its version number.
bool m_theIncludeFxFxTags
Include/Read FxFx tags.
virtual ~powhegLesHouchesFileReader()
Destructor.
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
string m_eventComments
If LHF.
map< string, string > m_eventAttributes
If LHF.
static void Init ATLAS_NOT_THREAD_SAFE()
Standard Init function used to initialize the interfaces.
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
CFileLineReader m_cfile
The wrapper around the C FILE stream from which to read.
powhegLesHouchesFileReader()
Default constructor.
virtual void open()
Open a file with events.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
bool m_theIncludeCentral
Include central weight (for backup use)
string filename() const
Return the name of the file from where to read events.
map< string, string > m_optionalWeightsLabel
string m_theFileName
The name of the file from where to read events.
virtual void close()
Close the file from which events have been read.
powhegLesHouchesFileReader is an base class to be used for objects which reads event files from matri...
virtual bool preInitialize() const
Return true if this object needs to be initialized before all other objects because it needs to extra...
void erase_substr(std::string &subject, const std::string &search)
Erases all occurences of a substring from a string.
powhegLesHouchesFileReader & operator=(const powhegLesHouchesFileReader &)
Private and non-existent assignment operator.
virtual IBPtr clone() const
Make a simple clone of this object.
virtual vector< string > optWeightsNamesFunc()
Return the optional weights information string ("Names")
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
string m_initComments
If LHF.
virtual bool doReadEvent()
Read the next event from the file or stream into the corresponding protected variables.
long m_neve
The number of events in this file.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
string m_outsideBlock
If LHF.
map< string, double > m_optionalWeightsTemp
Temporary holder for optional weights.
DecayerPtr m_theDecayer
Decayer for any decay modes read from the file.
virtual void initialize(LesHouchesEventHandler &eh)
Initialize.
map< string, string > m_scalemap
Further information on the weights.
Define macros for attributes used to control the static checker.
string m_headerBlock
If LHF.
bool m_theQNumbers
Whether or not to search for QNUMBERS stuff.
StatusCode Init(const char *appname)
Function initialising ROOT/PyROOT for using the ATLAS EDM.