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 81 of file NanoAODRNTupleOutputModule.cc.

Member Function Documentation

◆ createFields()

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

Definition at line 83 of file NanoAODRNTupleOutputModule.cc.

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

Referenced by NanoAODRNTupleOutputModule::initializeNTuple().

83  {
84  m_run = model.MakeField<UInt_t>("run");
85  m_luminosityBlock = model.MakeField<UInt_t>("luminosityBlock");
86  m_event = model.MakeField<std::uint64_t>("event");
87  }
unsigned long long uint64_t
Definition: Time.h:13

◆ fill()

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

Definition at line 88 of file NanoAODRNTupleOutputModule.cc.

References m_event, m_luminosityBlock, and m_run.

Referenced by NanoAODRNTupleOutputModule::write().

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

Member Data Documentation

◆ m_event

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

Definition at line 97 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().

◆ m_luminosityBlock

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

Definition at line 96 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().

◆ m_run

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

Definition at line 95 of file NanoAODRNTupleOutputModule.cc.

Referenced by createFields(), and fill().