CMS 3D CMS Logo

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

◆ branch()

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

Definition at line 101 of file NanoAODOutputModule.cc.

101  {
102  tree.Branch("run", &m_run, "run/i");
103  tree.Branch("luminosityBlock", &m_luminosityBlock, "luminosityBlock/i");
104  }

References m_luminosityBlock, and m_run.

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

◆ fill()

void NanoAODOutputModule::CommonLumiBranches::fill ( const edm::LuminosityBlockID id)
inline

Definition at line 105 of file NanoAODOutputModule.cc.

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

References m_luminosityBlock, and m_run.

Referenced by NanoAODOutputModule::writeLuminosityBlock().

Member Data Documentation

◆ m_luminosityBlock

UInt_t NanoAODOutputModule::CommonLumiBranches::m_luminosityBlock
private

Definition at line 112 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

◆ m_run

UInt_t NanoAODOutputModule::CommonLumiBranches::m_run
private

Definition at line 111 of file NanoAODOutputModule.cc.

Referenced by branch(), and fill().

tree
Definition: tree.py:1
NanoAODOutputModule::CommonLumiBranches::m_run
UInt_t m_run
Definition: NanoAODOutputModule.cc:111
NanoAODOutputModule::CommonLumiBranches::m_luminosityBlock
UInt_t m_luminosityBlock
Definition: NanoAODOutputModule.cc:112