CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
TriggerFieldPtr Class Reference

#include <TriggerOutputFields.h>

Public Member Functions

void fill (const edm::TriggerResults &triggers)
 
const std::string & getTriggerName () const
 
void setIndex (int newIndex)
 
 TriggerFieldPtr ()=default
 
 TriggerFieldPtr (std::string name, int index, std::string fieldName, std::string fieldDesc, RNTupleModel &model)
 

Private Attributes

RNTupleFieldPtr< bool > m_field
 
int m_triggerIndex = -1
 
std::string m_triggerName
 

Detailed Description

Definition at line 13 of file TriggerOutputFields.h.

Constructor & Destructor Documentation

◆ TriggerFieldPtr() [1/2]

TriggerFieldPtr::TriggerFieldPtr ( )
default

◆ TriggerFieldPtr() [2/2]

TriggerFieldPtr::TriggerFieldPtr ( std::string  name,
int  index,
std::string  fieldName,
std::string  fieldDesc,
RNTupleModel &  model 
)

Member Function Documentation

◆ fill()

void TriggerFieldPtr::fill ( const edm::TriggerResults triggers)

Definition at line 42 of file TriggerOutputFields.cc.

References RNTupleFieldPtr< T >::fill(), m_field, m_triggerIndex, and isoTrackAlCaCommissioning_cfg::triggers.

42  {
43  if (m_triggerIndex == -1) {
44  m_field.fill(false);
45  }
47 }
void fill(const T &value)
RNTupleFieldPtr< bool > m_field

◆ getTriggerName()

const std::string& TriggerFieldPtr::getTriggerName ( ) const
inline

Definition at line 18 of file TriggerOutputFields.h.

References m_triggerName.

18 { return m_triggerName; }
std::string m_triggerName

◆ setIndex()

void TriggerFieldPtr::setIndex ( int  newIndex)
inline

Definition at line 19 of file TriggerOutputFields.h.

References m_triggerIndex.

19 { m_triggerIndex = newIndex; }

Member Data Documentation

◆ m_field

RNTupleFieldPtr<bool> TriggerFieldPtr::m_field
private

Definition at line 22 of file TriggerOutputFields.h.

Referenced by fill(), and TriggerFieldPtr().

◆ m_triggerIndex

int TriggerFieldPtr::m_triggerIndex = -1
private

Definition at line 25 of file TriggerOutputFields.h.

Referenced by fill(), and setIndex().

◆ m_triggerName

std::string TriggerFieldPtr::m_triggerName
private

Definition at line 24 of file TriggerOutputFields.h.

Referenced by getTriggerName().