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:435
lhef::LHEReader::XMLHandler
Definition: LHEReader.cc:87
particlelevel_cff.LHERunInfo
LHERunInfo
Definition: particlelevel_cff.py:56
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:42
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
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
lhef::LHEReader::FileSource
Definition: LHEReader.cc:49
lhef::LHEReader::StringSource
Definition: LHEReader.cc:69
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:445
LaserTracksInput_cfi.fileNames
fileNames
Definition: LaserTracksInput_cfi.py:8
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:416