CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SLHAReaderBase.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_Pythia8Interface_SLHAReaderBase
2 #define GeneratorInterface_Pythia8Interface_SLHAReaderBase
3 
5 
6 #include <string>
7 #include <vector>
8 
9 class TFile;
10 class TTree;
11 
13 public:
14  SLHAReaderBase(const edm::ParameterSet& conf);
15  virtual ~SLHAReaderBase();
16 
17  //this function should parse the config description (e.g. with splitline() below)
18  //then use the information to get the SLHA info out of the tree and return it
19  virtual std::string getSLHA(const std::string& configDesc) = 0;
20 
21  static std::vector<std::string> splitline(const std::string& line, char delim);
22 
23 protected:
24  //members
25  TFile* file_;
26  TTree* tree_;
27 };
28 
31 
32 #endif
virtual ~SLHAReaderBase()
edmplugin::PluginFactory< SLHAReaderBase *(const edm::ParameterSet &)> SLHAReaderFactory
static std::vector< std::string > splitline(const std::string &line, char delim)
SLHAReaderBase(const edm::ParameterSet &conf)
virtual std::string getSLHA(const std::string &configDesc)=0