CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
HGCalTriggerNtupleEvent Class Reference
Inheritance diagram for HGCalTriggerNtupleEvent:
HGCalTriggerNtupleBase

Public Member Functions

void fill (const edm::Event &, const edm::EventSetup &) final
 
 HGCalTriggerNtupleEvent (const edm::ParameterSet &)
 
void initialize (TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
 
- Public Member Functions inherited from HGCalTriggerNtupleBase
 HGCalTriggerNtupleBase (const edm::ParameterSet &conf)
 
virtual ~HGCalTriggerNtupleBase ()
 

Private Member Functions

void clear () final
 

Private Attributes

int event_
 
int lumi_
 
int run_
 

Additional Inherited Members

Detailed Description

Definition at line 3 of file HGCalTriggerNtupleEvent.cc.

Constructor & Destructor Documentation

HGCalTriggerNtupleEvent::HGCalTriggerNtupleEvent ( const edm::ParameterSet conf)

Definition at line 20 of file HGCalTriggerNtupleEvent.cc.

20 : HGCalTriggerNtupleBase(conf) {}
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)

Member Function Documentation

void HGCalTriggerNtupleEvent::clear ( void  )
finalprivatevirtual

Implements HGCalTriggerNtupleBase.

Definition at line 35 of file HGCalTriggerNtupleEvent.cc.

References event_, lumi_, and run_.

Referenced by initialize().

void HGCalTriggerNtupleEvent::fill ( const edm::Event e,
const edm::EventSetup es 
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 29 of file HGCalTriggerNtupleEvent.cc.

References edm::EventID::event(), event_, edm::EventBase::id(), lumi_, edm::EventBase::luminosityBlock(), edm::EventID::run(), and run_.

29  {
30  run_ = e.id().run();
31  lumi_ = e.luminosityBlock();
32  event_ = e.id().event();
33 }
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
edm::EventID id() const
Definition: EventBase.h:59
void HGCalTriggerNtupleEvent::initialize ( TTree &  tree,
const edm::ParameterSet ,
edm::ConsumesCollector &&   
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 22 of file HGCalTriggerNtupleEvent.cc.

References clear(), event_, lumi_, and run_.

22  {
23  clear();
24  tree.Branch("run", &run_, "run/I");
25  tree.Branch("event", &event_, "event/I");
26  tree.Branch("lumi", &lumi_, "lumi/I");
27 }
Definition: tree.py:1

Member Data Documentation

int HGCalTriggerNtupleEvent::event_
private

Definition at line 14 of file HGCalTriggerNtupleEvent.cc.

Referenced by clear(), fill(), and initialize().

int HGCalTriggerNtupleEvent::lumi_
private

Definition at line 15 of file HGCalTriggerNtupleEvent.cc.

Referenced by clear(), fill(), and initialize().

int HGCalTriggerNtupleEvent::run_
private

Definition at line 13 of file HGCalTriggerNtupleEvent.cc.

Referenced by clear(), fill(), and initialize().