CMS 3D CMS Logo

LHEReader.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_LHEInterface_LHEReader_h
2 #define GeneratorInterface_LHEInterface_LHEReader_h
3 
4 #include <string>
5 #include <vector>
6 #include <memory>
7 
9 
10 namespace lhef {
11 
12  class XMLDocument;
13  class LHERunInfo;
14  class LHEEvent;
15 
16  class LHEReader {
17  public:
19  LHEReader(const std::vector<std::string> &fileNames, unsigned int skip = 0);
20  LHEReader(const std::string &inputs, unsigned int skip = 0);
21  ~LHEReader();
22 
23  std::shared_ptr<LHEEvent> next(bool *newFileOpened = nullptr);
24 
25  private:
26  class Source;
27  class FileSource;
28  class StringSource;
29  class XMLHandler;
30 
31  const std::vector<std::string> fileURLs;
33  unsigned int firstEvent;
34  int maxEvents;
35  unsigned int curIndex;
36  std::vector<std::string> weightsinconfig;
37 
38  std::unique_ptr<Source> curSource;
39  std::unique_ptr<XMLDocument> curDoc;
40  std::shared_ptr<LHERunInfo> curRunInfo;
41  std::unique_ptr<XMLHandler> handler;
42  std::shared_ptr<void> platform;
43  };
44 
45 } // namespace lhef
46 
47 #endif // GeneratorInterface_LHEInterface_LHEReader_h
lhef::LHEReader::strName
const std::string strName
Definition: LHEReader.h:32
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
lhef::LHEReader::curDoc
std::unique_ptr< XMLDocument > curDoc
Definition: LHEReader.h:39
lhef::LHEReader::fileURLs
const std::vector< std::string > fileURLs
Definition: LHEReader.h:29
lhef::LHEReader::~LHEReader
~LHEReader()
Definition: LHEReader.cc:433
lhef::LHEReader::XMLHandler
Definition: LHEReader.cc:85
particlelevel_cff.LHERunInfo
LHERunInfo
Definition: particlelevel_cff.py:57
lhef::LHEReader
Definition: LHEReader.h:16
lhef::LHEReader::weightsinconfig
std::vector< std::string > weightsinconfig
Definition: LHEReader.h:36
optionsL1T.skip
skip
Definition: optionsL1T.py:30
XMLDocument
Definition: HcalDbXml.cc:60
lhef::LHEReader::Source
Definition: LHEReader.cc:40
LaserDQM_cfg.fileNames
fileNames
Definition: LaserDQM_cfg.py:34
edm::ParameterSet
Definition: ParameterSet.h:47
lhef::LHEReader::curIndex
unsigned int curIndex
Definition: LHEReader.h:35
lhef
Definition: ExhumeHadronizer.h:12
lhef::LHEReader::platform
std::shared_ptr< void > platform
Definition: LHEReader.h:42
PixelMapPlotter.inputs
inputs
Definition: PixelMapPlotter.py:490
lhef::LHEReader::curSource
std::unique_ptr< Source > curSource
Definition: LHEReader.h:38
lhef::LHEReader::firstEvent
unsigned int firstEvent
Definition: LHEReader.h:33
lhef::LHEReader::maxEvents
int maxEvents
Definition: LHEReader.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
lhef::LHEReader::FileSource
Definition: LHEReader.cc:47
lhef::LHEReader::StringSource
Definition: LHEReader.cc:67
lhef::LHEReader::curRunInfo
std::shared_ptr< LHERunInfo > curRunInfo
Definition: LHEReader.h:40
lhef::LHEReader::next
std::shared_ptr< LHEEvent > next(bool *newFileOpened=nullptr)
Definition: LHEReader.cc:443
ParameterSet.h
lhef::LHEReader::handler
std::unique_ptr< XMLHandler > handler
Definition: LHEReader.h:41
lhef::LHEReader::LHEReader
LHEReader(const edm::ParameterSet &params)
Definition: LHEReader.cc:414