CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
NanoAODOutputModule::CommonEventBranches Class Reference

Public Member Functions

void branch (TTree &tree)
 
void fill (const edm::EventID &id)
 

Private Attributes

ULong64_t m_event
 
UInt_t m_luminosityBlock
 
UInt_t m_run
 

Detailed Description

Definition at line 78 of file NanoAODOutputModule.cc.

Member Function Documentation

◆ branch()

void NanoAODOutputModule::CommonEventBranches::branch ( TTree &  tree)
inline

Definition at line 80 of file NanoAODOutputModule.cc.

80  {
81  tree.Branch("run", &m_run, "run/i");
82  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
83  tree.Branch("event", &m_event, "event/l");
84  }

References m_event, m_luminosityBlock, and m_run.

Referenced by python.cmstools.EventTree::__getattr__(), and NanoAODOutputModule::openFile().

◆ fill()

void NanoAODOutputModule::CommonEventBranches::fill ( const edm::EventID id)
inline

Definition at line 85 of file NanoAODOutputModule.cc.

85  {
86  m_run = id.run();
87  m_luminosityBlock = id.luminosityBlock();
88  m_event = id.event();
89  }

References m_event, m_luminosityBlock, and m_run.

Referenced by NanoAODOutputModule::write().

Member Data Documentation

◆ m_event

ULong64_t NanoAODOutputModule::CommonEventBranches::m_event
private

Definition at line 94 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

◆ m_luminosityBlock

UInt_t NanoAODOutputModule::CommonEventBranches::m_luminosityBlock
private

Definition at line 93 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

◆ m_run

UInt_t NanoAODOutputModule::CommonEventBranches::m_run
private

Definition at line 92 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

tree
Definition: tree.py:1
NanoAODOutputModule::CommonEventBranches::m_event
ULong64_t m_event
Definition: NanoAODOutputModule.cc:94
NanoAODOutputModule::CommonEventBranches::m_run
UInt_t m_run
Definition: NanoAODOutputModule.cc:92
NanoAODOutputModule::CommonEventBranches::m_luminosityBlock
UInt_t m_luminosityBlock
Definition: NanoAODOutputModule.cc:93