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