GeneratorInterface
Pythia8Interface
interface
SLHAReaderBase.h
Go to the documentation of this file.
1
#ifndef GeneratorInterface_Pythia8Interface_SLHAReaderBase
2
#define GeneratorInterface_Pythia8Interface_SLHAReaderBase
3
4
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
5
6
#include <string>
7
#include <vector>
8
9
class
TFile;
10
class
TTree;
11
12
class
SLHAReaderBase
{
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
29
#include "
FWCore/PluginManager/interface/PluginFactory.h
"
30
typedef
edmplugin::PluginFactory
<
SLHAReaderBase
*(
const
edm::ParameterSet
&)>
SLHAReaderFactory
;
31
32
#endif
PluginFactory.h
SLHAReaderBase::file_
TFile * file_
Definition:
SLHAReaderBase.h:25
SLHAReaderBase::splitline
static std::vector< std::string > splitline(const std::string &line, char delim)
Definition:
SLHAReaderBase.cc:23
SLHAReaderBase::~SLHAReaderBase
virtual ~SLHAReaderBase()
Definition:
SLHAReaderBase.cc:21
SLHAReaderBase::tree_
TTree * tree_
Definition:
SLHAReaderBase.h:26
SLHAReaderBase::SLHAReaderBase
SLHAReaderBase(const edm::ParameterSet &conf)
Definition:
SLHAReaderBase.cc:9
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition:
ParameterSet.h:47
SLHAReaderBase::getSLHA
virtual std::string getSLHA(const std::string &configDesc)=0
edmplugin::PluginFactory
Definition:
PluginFactory.h:34
SLHAReaderBase
Definition:
SLHAReaderBase.h:12
ParameterSet.h
mps_splice.line
line
Definition:
mps_splice.py:76
Generated for CMSSW Reference Manual by
1.8.16