CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
HGCalTriggerNtupleEvent.cc
Go to the documentation of this file.
2 
4 public:
6 
7  void initialize(TTree&, const edm::ParameterSet&, edm::ConsumesCollector&&) final;
8  void fill(const edm::Event&, const HGCalTriggerNtupleEventSetup&) final;
9 
10 private:
11  void clear() final;
12 
13  int run_;
14  int event_;
15  int lumi_;
16 };
17 
19 
21  accessEventSetup_ = false;
22 }
23 
25  clear();
26  tree.Branch("run", &run_, "run/I");
27  tree.Branch("event", &event_, "event/I");
28  tree.Branch("lumi", &lumi_, "lumi/I");
29 }
30 
32  run_ = e.id().run();
33  lumi_ = e.luminosityBlock();
34  event_ = e.id().event();
35 }
36 
38  run_ = 0;
39  lumi_ = 0;
40  event_ = 0;
41 }
RunNumber_t run() const
Definition: EventID.h:38
EventNumber_t event() const
Definition: EventID.h:40
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:61
HGCalTriggerNtupleEvent(const edm::ParameterSet &)
void fill(const edm::Event &, const HGCalTriggerNtupleEventSetup &) final
edm::EventID id() const
Definition: EventBase.h:59
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
#define DEFINE_EDM_PLUGIN(factory, type, name)