CMS 3D CMS Logo

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 edm::EventSetup&) final;
9 
10 private:
11  void clear() final;
12 
13  int run_;
14  int event_;
15  int lumi_;
16 };
17 
19 
21 
23  clear();
24  tree.Branch("run", &run_, "run/I");
25  tree.Branch("event", &event_, "event/I");
26  tree.Branch("lumi", &lumi_, "lumi/I");
27 }
28 
30  run_ = e.id().run();
31  lumi_ = e.luminosityBlock();
32  event_ = e.id().event();
33 }
34 
36  run_ = 0;
37  lumi_ = 0;
38  event_ = 0;
39 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:61
void fill(const edm::Event &, const edm::EventSetup &) final
HGCalTriggerNtupleEvent(const edm::ParameterSet &)
edm::EventID id() const
Definition: EventBase.h:59
void initialize(TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
#define DEFINE_EDM_PLUGIN(factory, type, name)
Definition: tree.py:1