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 25 of file HGCalTriggerNtupleEvent.cc.

References initialize().

26 {
27 }
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)

Member Function Documentation

void HGCalTriggerNtupleEvent::clear ( void  )
finalprivatevirtual

Implements HGCalTriggerNtupleBase.

Definition at line 50 of file HGCalTriggerNtupleEvent.cc.

References event_, lumi_, and run_.

Referenced by fill(), and initialize().

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

Implements HGCalTriggerNtupleBase.

Definition at line 41 of file HGCalTriggerNtupleEvent.cc.

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

Referenced by initialize().

42 {
43  run_ = e.id().run();
44  lumi_ = e.luminosityBlock();
45  event_ = e.id().event();
46 }
RunNumber_t run() const
Definition: EventID.h:39
EventNumber_t event() const
Definition: EventID.h:41
edm::LuminosityBlockNumber_t luminosityBlock() const
Definition: EventBase.h:63
edm::EventID id() const
Definition: EventBase.h:60
void HGCalTriggerNtupleEvent::initialize ( TTree &  tree,
const edm::ParameterSet ,
edm::ConsumesCollector &&   
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 31 of file HGCalTriggerNtupleEvent.cc.

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

Referenced by HGCalTriggerNtupleEvent().

32 {
33  clear();
34  tree.Branch("run", &run_, "run/I" );
35  tree.Branch("event", &event_, "event/I");
36  tree.Branch("lumi", &lumi_, "lumi/I");
37 }
Definition: tree.py:1

Member Data Documentation

int HGCalTriggerNtupleEvent::event_
private

Definition at line 15 of file HGCalTriggerNtupleEvent.cc.

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

int HGCalTriggerNtupleEvent::lumi_
private

Definition at line 16 of file HGCalTriggerNtupleEvent.cc.

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

int HGCalTriggerNtupleEvent::run_
private

Definition at line 14 of file HGCalTriggerNtupleEvent.cc.

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