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 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 80 of file NanoAODOutputModule.cc.

Member Function Documentation

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

Definition at line 82 of file NanoAODOutputModule.cc.

References m_event, m_luminosityBlock, and m_run.

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

82  {
83  tree.Branch("run", &m_run, "run/i");
84  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
85  tree.Branch("event", &m_event, "event/l");
86  }
void NanoAODOutputModule::CommonEventBranches::fill ( const edm::EventID id)
inline

Definition at line 87 of file NanoAODOutputModule.cc.

References m_event, m_luminosityBlock, and m_run.

Referenced by NanoAODOutputModule::write().

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

Member Data Documentation

ULong64_t NanoAODOutputModule::CommonEventBranches::m_event
private

Definition at line 96 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

UInt_t NanoAODOutputModule::CommonEventBranches::m_luminosityBlock
private

Definition at line 95 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

UInt_t NanoAODOutputModule::CommonEventBranches::m_run
private

Definition at line 94 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().