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::HGCalTriggerNtupleEvent ( const edm::ParameterSet conf)

Definition at line 20 of file HGCalTriggerNtupleEvent.cc.

20 : HGCalTriggerNtupleBase(conf) {}

Member Function Documentation

◆ clear()

void HGCalTriggerNtupleEvent::clear ( void  )
finalprivatevirtual

Implements HGCalTriggerNtupleBase.

Definition at line 35 of file HGCalTriggerNtupleEvent.cc.

35  {
36  run_ = 0;
37  lumi_ = 0;
38  event_ = 0;
39 }

References event_, lumi_, and run_.

Referenced by initialize().

◆ fill()

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

Implements HGCalTriggerNtupleBase.

Definition at line 29 of file HGCalTriggerNtupleEvent.cc.

29  {
30  run_ = e.id().run();
31  lumi_ = e.luminosityBlock();
32  event_ = e.id().event();
33 }

References MillePedeFileConverter_cfg::e, event_, lumi_, and run_.

◆ initialize()

void HGCalTriggerNtupleEvent::initialize ( TTree &  tree,
const edm::ParameterSet ,
edm::ConsumesCollector &&   
)
finalvirtual

Implements HGCalTriggerNtupleBase.

Definition at line 22 of file HGCalTriggerNtupleEvent.cc.

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 }

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

Member Data Documentation

◆ event_

int HGCalTriggerNtupleEvent::event_
private

Definition at line 14 of file HGCalTriggerNtupleEvent.cc.

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

◆ lumi_

int HGCalTriggerNtupleEvent::lumi_
private

Definition at line 15 of file HGCalTriggerNtupleEvent.cc.

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

◆ run_

int HGCalTriggerNtupleEvent::run_
private

Definition at line 13 of file HGCalTriggerNtupleEvent.cc.

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

tree
Definition: tree.py:1
HGCalTriggerNtupleBase::HGCalTriggerNtupleBase
HGCalTriggerNtupleBase(const edm::ParameterSet &conf)
Definition: HGCalTriggerNtupleBase.h:12
HGCalTriggerNtupleEvent::event_
int event_
Definition: HGCalTriggerNtupleEvent.cc:14
HGCalTriggerNtupleEvent::run_
int run_
Definition: HGCalTriggerNtupleEvent.cc:13
HGCalTriggerNtupleEvent::lumi_
int lumi_
Definition: HGCalTriggerNtupleEvent.cc:15
HGCalTriggerNtupleEvent::clear
void clear() final
Definition: HGCalTriggerNtupleEvent.cc:35
MillePedeFileConverter_cfg.e
e
Definition: MillePedeFileConverter_cfg.py:37