CMS 3D CMS Logo

LH5Source.h
Go to the documentation of this file.
1 #ifndef GeneratorInterface_LHEInterface_LH5Source_h
2 #define GeneratorInterface_LHEInterface_LH5Source_h
3 
4 #include <memory>
5 
6 #include <deque>
7 
12 
14 
15 namespace lhef {
16  class LHERunInfo;
17  class LHEEvent;
18  class LH5Reader;
19 } // namespace lhef
20 
21 namespace edm {
22  class EventPrincipal;
23  class LuminosityBlockAuxiliary;
24  class LuminosityBlockPrincipal;
25  class ParameterSet;
26  class Run;
27  class RunAuxiliary;
28  class RunPrincipal;
29 } // namespace edm
30 
31 class LHERunInfoProduct;
32 
34 public:
36  ~LH5Source() override;
37 
38  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
39 
40 private:
41  void endJob() override;
43  void readRun_(edm::RunPrincipal& runPrincipal) override;
44  void readLuminosityBlock_(edm::LuminosityBlockPrincipal& lumiPrincipal) override;
45  void readEvent_(edm::EventPrincipal& eventPrincipal) override;
46  void produce(edm::Event&) override {}
47  std::shared_ptr<edm::RunAuxiliary> readRunAuxiliary_() override;
48  std::shared_ptr<edm::LuminosityBlockAuxiliary> readLuminosityBlockAuxiliary_() override;
49 
50  void nextEvent();
51 
54 
55  std::unique_ptr<lhef::LH5Reader> reader_;
56 
57  std::shared_ptr<lhef::LHERunInfo> runInfoLast_;
58  std::shared_ptr<lhef::LHEEvent> partonLevel_;
59 
60  std::unique_ptr<LHERunInfoProduct> runInfoProductLast_;
63 };
64 
65 #endif // GeneratorInterface_LHEInterface_LH5Source_h
ConfigurationDescriptions.h
ProcessHistoryID.h
LH5Source::lheProvenanceHelper_
edm::LHEProvenanceHelper lheProvenanceHelper_
Definition: LH5Source.h:61
LH5Source::readRun_
void readRun_(edm::RunPrincipal &runPrincipal) override
Definition: LH5Source.cc:104
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
LH5Source::phid_
edm::ProcessHistoryID phid_
Definition: LH5Source.h:62
edm
HLT enums.
Definition: AlignableModifier.h:19
LH5Source::partonLevel_
std::shared_ptr< lhef::LHEEvent > partonLevel_
Definition: LH5Source.h:58
edm::LuminosityBlockPrincipal
Definition: LuminosityBlockPrincipal.h:31
edm::InputSourceDescription
Definition: InputSourceDescription.h:20
particlelevel_cff.LHERunInfo
LHERunInfo
Definition: particlelevel_cff.py:56
LH5Source::fillRunInfoProduct
void fillRunInfoProduct(lhef::LHERunInfo const &, LHERunInfoProduct &)
Definition: LH5Source.cc:95
LH5Source::readLuminosityBlockAuxiliary_
std::shared_ptr< edm::LuminosityBlockAuxiliary > readLuminosityBlockAuxiliary_() override
Definition: LH5Source.cc:177
LH5Source::nextEvent
void nextEvent()
Definition: LH5Source.cc:56
LHERunInfoProduct
Definition: LHERunInfoProduct.h:13
edm::EventPrincipal
Definition: EventPrincipal.h:46
LH5Source::putRunInfoProduct
void putRunInfoProduct(edm::RunPrincipal &)
Definition: LH5Source.cc:117
LH5Source::produce
void produce(edm::Event &) override
Definition: LH5Source.h:46
edm::Hash< ProcessHistoryType >
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
LH5Source::~LH5Source
~LH5Source() override
Definition: LH5Source.cc:52
LH5Source::readLuminosityBlock_
void readLuminosityBlock_(edm::LuminosityBlockPrincipal &lumiPrincipal) override
Definition: LH5Source.cc:111
LH5Source::runInfoLast_
std::shared_ptr< lhef::LHERunInfo > runInfoLast_
Definition: LH5Source.h:57
LH5Source::runInfoProductLast_
std::unique_ptr< LHERunInfoProduct > runInfoProductLast_
Definition: LH5Source.h:60
lhef::LHERunInfo
Definition: LHERunInfo.h:25
edm::ParameterSet
Definition: ParameterSet.h:47
ParameterSet
Definition: Functions.h:16
lhef
Definition: ExhumeHadronizer.h:12
LH5Source::readRunAuxiliary_
std::shared_ptr< edm::RunAuxiliary > readRunAuxiliary_() override
Definition: LH5Source.cc:169
LH5Source::endJob
void endJob() override
Definition: LH5Source.cc:54
LH5Source::reader_
std::unique_ptr< lhef::LH5Reader > reader_
Definition: LH5Source.h:55
LHEProvenanceHelper.h
LesHouches.h
LH5Source::LH5Source
LH5Source(const edm::ParameterSet &params, const edm::InputSourceDescription &desc)
Definition: LH5Source.cc:35
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
edm::ProducerSourceFromFiles
Definition: ProducerSourceFromFiles.h:17
edm::EventAuxiliary::ExperimentType
ExperimentType
Definition: EventAuxiliary.h:18
LH5Source::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: LH5Source.cc:188
LH5Source::readEvent_
void readEvent_(edm::EventPrincipal &eventPrincipal) override
Definition: LH5Source.cc:138
edm::RunPrincipal
Definition: RunPrincipal.h:34
edm::LHEProvenanceHelper
Definition: LHEProvenanceHelper.h:17
edm::EventID
Definition: EventID.h:31
edm::Event
Definition: Event.h:73
LH5Source::setRunAndEventInfo
bool setRunAndEventInfo(edm::EventID &, edm::TimeValue_t &, edm::EventAuxiliary::ExperimentType &) override
Definition: LH5Source.cc:125
ProducerSourceFromFiles.h
LH5Source
Definition: LH5Source.h:33
edm::TimeValue_t
unsigned long long TimeValue_t
Definition: Timestamp.h:28
Run