CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
NanoAODRNTupleOutputModule::CommonEventFields Class Reference

Public Member Functions

void createFields (RNTupleModel &model)
 
void fill (const edm::EventID &id)
 

Private Attributes

std::shared_ptr< std::uint64_t > m_event
 
std::shared_ptr< UInt_t > m_luminosityBlock
 
std::shared_ptr< UInt_t > m_run
 

Detailed Description

Definition at line 74 of file NanoAODRNTupleOutputModule.cc.

Member Function Documentation

◆ createFields()

void NanoAODRNTupleOutputModule::CommonEventFields::createFields ( RNTupleModel &  model)
inline

Definition at line 76 of file NanoAODRNTupleOutputModule.cc.

References m_event, m_luminosityBlock, m_run, and ReggeGribovPartonMC_EposLHC_2760GeV_PbPb_cfi::model.

Referenced by NanoAODRNTupleOutputModule::initializeNTuple().

76  {
77  m_run = model.MakeField<UInt_t>("run");
78  m_luminosityBlock = model.MakeField<UInt_t>("luminosityBlock");
79  m_event = model.MakeField<std::uint64_t>("event");
80  }
unsigned long long uint64_t
Definition: Time.h:13

◆ fill()

void NanoAODRNTupleOutputModule::CommonEventFields::fill ( const edm::EventID id)
inline

Definition at line 81 of file NanoAODRNTupleOutputModule.cc.

References m_event, m_luminosityBlock, and m_run.

Referenced by NanoAODRNTupleOutputModule::write().

81  {
82  *m_run = id.run();
83  *m_luminosityBlock = id.luminosityBlock();
84  *m_event = id.event();
85  }

Member Data Documentation

◆ m_event

std::shared_ptr<std::uint64_t> NanoAODRNTupleOutputModule::CommonEventFields::m_event
private

Definition at line 90 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().

◆ m_luminosityBlock

std::shared_ptr<UInt_t> NanoAODRNTupleOutputModule::CommonEventFields::m_luminosityBlock
private

Definition at line 89 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().

◆ m_run

std::shared_ptr<UInt_t> NanoAODRNTupleOutputModule::CommonEventFields::m_run
private

Definition at line 88 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().