 |
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"
51 m_theIncludeFxFxTags(false),
52 m_theIncludeCentral(true) {}
100 const std::string &
filename()
const {
return m_theFileName; }
290 class powhegLesHouchesFileError:
public Exception {};
298 #include "ThePEG/Utilities/ClassTraits.h"
309 struct BaseClassTrait<BB4LPowhegLesHouchesFileReader,1>:
public ClassTraitsType {
311 typedef LesHouchesReader NthBase;
320 struct ClassTraits<BB4LPowhegLesHouchesFileReader>
321 :
public ClassTraitsBase<BB4LPowhegLesHouchesFileReader> {
325 static std::string
className() {
return "ThePEG::BB4LPowhegLesHouchesFileReader"; }
331 static std::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.
std::string m_headerBlock
If LHF.
#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.
std::string m_eventComments
If LHF.
BB4LPowhegLesHouchesFileReader(const BB4LPowhegLesHouchesFileReader &)
Copy-constructor.
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.
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles
std::map< std::string, double > m_optionalWeightsTemp
Temporary holder for optional weights.
std::map< std::string, std::string > m_eventAttributes
If LHF.
std::map< std::string, std::string > m_initAttributes
If LHF.
std::string m_LHFVersion
If the file is a standard Les Houches formatted file (LHF) this is its version number.
const std::string & filename() const
Return 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.
std::string m_theFileName
The name of the file from where to read events.
BB4LPowhegLesHouchesFileReader is an base class to be used for objects which reads event files from m...
std::map< std::string, std::string > m_optionalWeightsLabel
virtual IBPtr fullclone() const
Make a clone of this object, possibly modifying the cloned object to make it sane.
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 std::vector< std::string > optWeightsNamesFunc()
Return the optional weights information string ("Names")
std::string m_initComments
If LHF.
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.
std::string m_outsideBlock
If LHF.
bool m_theQNumbers
Whether or not to search for QNUMBERS stuff.
Define macros for attributes used to control the static checker.
std::map< std::string, std::string > m_scalemap
Further information on the weights.