CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 HGCalTriggerNtupleEventSetup &) final
 
 HGCalTriggerNtupleEvent (const edm::ParameterSet &)
 
void initialize (TTree &, const edm::ParameterSet &, edm::ConsumesCollector &&) final
 
- Public Member Functions inherited from HGCalTriggerNtupleBase
bool accessEventSetup () const
 
virtual void fill (const edm::Event &, const edm::EventSetup &)
 
 HGCalTriggerNtupleBase (const edm::ParameterSet &conf)
 
const std::string & name () const
 
virtual ~HGCalTriggerNtupleBase ()
 

Private Member Functions

void clear () final
 

Private Attributes

int event_
 
int lumi_
 
int run_
 

Additional Inherited Members

- Protected Attributes inherited from HGCalTriggerNtupleBase
bool accessEventSetup_ = true
 
const std::string name_
 

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.

References HGCalTriggerNtupleBase::accessEventSetup_.

20  : HGCalTriggerNtupleBase(conf) {
21  accessEventSetup_ = false;
22 }
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)

Member Function Documentation

void HGCalTriggerNtupleEvent::clear ( void  )
finalprivatevirtual

Implements HGCalTriggerNtupleBase.

Definition at line 37 of file HGCalTriggerNtupleEvent.cc.

References event_, lumi_, and run_.

Referenced by initialize().

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

Reimplemented from HGCalTriggerNtupleBase.

Definition at line 31 of file HGCalTriggerNtupleEvent.cc.

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

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

Implements HGCalTriggerNtupleBase.

Definition at line 24 of file HGCalTriggerNtupleEvent.cc.

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

24  {
25  clear();
26  tree.Branch("run", &run_, "run/I");
27  tree.Branch("event", &event_, "event/I");
28  tree.Branch("lumi", &lumi_, "lumi/I");
29 }

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().