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"
313 typedef LesHouchesReader NthBase;
323 :
public ClassTraitsBase<powhegLesHouchesFileReader> {
327 static string className() {
return "ThePEG::powhegLesHouchesFileReader"; }
333 static string library() {
return "libpowhegHerwig.so"; }
Define macros for attributes used to control the static checker.
powhegLesHouchesFileReader is an base class to be used for objects which reads event files from matri...
string m_outsideBlock
If LHF.
map< string, string > m_eventAttributes
If LHF.
virtual bool preInitialize() const
Return true if this object needs to be initialized before all other objects because it needs to extra...
static const ClassDescription< powhegLesHouchesFileReader > m_initpowhegLesHouchesFileReader
Describe an abstract base class with persistent data.
void persistentInput(PersistentIStream &is, int version)
Function used to read in object persistently.
long m_ieve
The current event number.
virtual vector< string > optWeightsNamesFunc()
Return the optional weights information string ("Names")
map< string, string > m_initAttributes
If LHF.
string filename() const
Return the name of the file from where to read events.
virtual ~powhegLesHouchesFileReader()
Destructor.
powhegLesHouchesFileReader()
Default constructor.
string m_eventComments
If LHF.
virtual void doinit()
Initialize this object after the setup phase before saving an EventGenerator to disk.
bool m_theIncludeFxFxTags
Include/Read FxFx tags.
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.
CFileLineReader m_cfile
The wrapper around the C FILE stream from which to read.
map< string, double > m_optionalWeightsTemp
Temporary holder for optional weights.
bool m_theQNumbers
Whether or not to search for QNUMBERS stuff.
bool m_theIncludeCentral
Include central weight (for backup use)
void erase_substr(std::string &subject, const std::string &search)
Erases all occurences of a substring from a string.
static void Init ATLAS_NOT_THREAD_SAFE()
Standard Init function used to initialize the interfaces.
void persistentOutput(PersistentOStream &os) const
Function used to write out object persistently.
long m_neve
The number of events in this file.
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.
string m_initComments
If LHF.
string m_LHFVersion
If the file is a standard Les Houches formatted file (LHF) this is its version number.
string m_headerBlock
If LHF.
powhegLesHouchesFileReader & operator=(const powhegLesHouchesFileReader &)
Private and non-existent assignment operator.
DecayerPtr m_theDecayer
Decayer for any decay modes read from the file.
virtual void open()
Open a file with events.
map< string, string > m_optionalWeightsLabel
map< string, string > m_scalemap
Further information on the weights.
virtual bool doReadEvent()
Read the next event from the file or stream into the corresponding protected variables.
void search(TDirectory *td, const std::string &s, std::string cwd, node *n)
recursive directory search for TH1 and TH2 and TProfiles