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::CommonLumiBranches Class Reference

Public Member Functions

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

Private Attributes

UInt_t m_luminosityBlock
 
UInt_t m_run
 

Detailed Description

Definition at line 99 of file NanoAODOutputModule.cc.

Member Function Documentation

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

Definition at line 101 of file NanoAODOutputModule.cc.

References m_luminosityBlock, and m_run.

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

101  {
102  tree.Branch("run", &m_run, "run/i");
103  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
104  }
void NanoAODOutputModule::CommonLumiBranches::fill ( const edm::LuminosityBlockID id)
inline

Definition at line 105 of file NanoAODOutputModule.cc.

References m_luminosityBlock, and m_run.

Referenced by NanoAODOutputModule::writeLuminosityBlock().

105  {
106  m_run = id.run();
107  m_luminosityBlock = id.value();
108  }

Member Data Documentation

UInt_t NanoAODOutputModule::CommonLumiBranches::m_luminosityBlock
private

Definition at line 112 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

UInt_t NanoAODOutputModule::CommonLumiBranches::m_run
private

Definition at line 111 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().