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

Member Function Documentation

◆ branch()

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

Definition at line 99 of file NanoAODOutputModule.cc.

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

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

103  {
104  m_run = id.run();
105  m_luminosityBlock = id.value();
106  }

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

Referenced by branch(), and fill().

◆ m_run

UInt_t NanoAODOutputModule::CommonLumiBranches::m_run
private

Definition at line 109 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:109
NanoAODOutputModule::CommonLumiBranches::m_luminosityBlock
UInt_t m_luminosityBlock
Definition: NanoAODOutputModule.cc:110