Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:07:26

0001 #ifndef GeneratorInterface_Pythia8Interface_SLHAReaderBase
0002 #define GeneratorInterface_Pythia8Interface_SLHAReaderBase
0003 
0004 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0005 
0006 #include <string>
0007 #include <vector>
0008 
0009 class TFile;
0010 class TTree;
0011 
0012 class SLHAReaderBase {
0013 public:
0014   SLHAReaderBase(const edm::ParameterSet& conf);
0015   virtual ~SLHAReaderBase();
0016 
0017   //this function should parse the config description (e.g. with splitline() below)
0018   //then use the information to get the SLHA info out of the tree and return it
0019   virtual std::string getSLHA(const std::string& configDesc) = 0;
0020 
0021   static std::vector<std::string> splitline(const std::string& line, char delim);
0022 
0023 protected:
0024   //members
0025   TFile* file_;
0026   TTree* tree_;
0027 };
0028 
0029 #include "FWCore/PluginManager/interface/PluginFactory.h"
0030 typedef edmplugin::PluginFactory<SLHAReaderBase*(const edm::ParameterSet&)> SLHAReaderFactory;
0031 
0032 #endif