CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
HLTConfigDataEx Class Reference
Inheritance diagram for HLTConfigDataEx:
HLTConfigInterface

Public Member Functions

 HLTConfigDataEx (HLTConfigData data)
 
std::string const & moduleLabel (unsigned int trigger, unsigned int module) const override
 
std::string const & moduleType (unsigned int trigger, unsigned int module) const override
 
bool prescaler (unsigned int trigger, unsigned int module) const override
 
std::string const & processName () const override
 
unsigned int size () const override
 
unsigned int size (unsigned int trigger) const override
 
unsigned int triggerIndex (unsigned int trigger) const override
 
std::string const & triggerName (unsigned int trigger) const override
 
virtual std::vector< std::string > const & triggerNames () const
 
 ~HLTConfigDataEx () override=default
 
- Public Member Functions inherited from HLTConfigInterface
virtual ~HLTConfigInterface ()=default
 

Private Attributes

HLTConfigData data_
 
std::vector< std::vector< std::string const * > > moduleTypes_
 
std::set< std::string > moduleTypeSet_
 
std::vector< std::vector< bool > > prescalers_
 

Detailed Description

Definition at line 69 of file hltDiff.cc.

Constructor & Destructor Documentation

◆ HLTConfigDataEx()

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

Definition at line 71 of file hltDiff.cc.

72  for (unsigned int t = 0; t < data_.size(); ++t) {
73  prescalers_[t].resize(size(t));
74  moduleTypes_[t].resize(size(t));
75  for (unsigned int m = 0; m < data_.size(t); ++m) {
77  prescalers_[t][m] = (type == "HLTPrescaler");
78  moduleTypes_[t][m] = &*moduleTypeSet_.insert(std::move(type)).first;
79  }
80  }
81  }

References data_, visualization-live-secondInstance_cfg::m, moduleLabel(), HLTConfigData::moduleType(), moduleTypes_, moduleTypeSet_, eostools::move(), prescalers_, HLTConfigData::size(), size(), AlCaHLTBitMon_QueryRunRegistry::string, and submitPVValidationJobs::t.

◆ ~HLTConfigDataEx()

HLTConfigDataEx::~HLTConfigDataEx ( )
overridedefault

Member Function Documentation

◆ moduleLabel()

std::string const& HLTConfigDataEx::moduleLabel ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 95 of file hltDiff.cc.

95  {
96  return data_.moduleLabel(trigger, module);
97  }

References data_, and HLTConfigData::moduleLabel().

Referenced by HLTConfigDataEx(), and HLTCommonConfig::moduleLabel().

◆ moduleType()

std::string const& HLTConfigDataEx::moduleType ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 99 of file hltDiff.cc.

99  {
100  return *moduleTypes_.at(trigger).at(module);
101  }

References moduleTypes_.

Referenced by HLTCommonConfig::moduleType().

◆ prescaler()

bool HLTConfigDataEx::prescaler ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 103 of file hltDiff.cc.

103  {
104  return prescalers_.at(trigger).at(module);
105  }

References prescalers_.

Referenced by HLTCommonConfig::prescaler().

◆ processName()

std::string const& HLTConfigDataEx::processName ( ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 83 of file hltDiff.cc.

83 { return data_.processName(); }

References data_, and HLTConfigData::processName().

Referenced by HLTCommonConfig::processName().

◆ size() [1/2]

unsigned int HLTConfigDataEx::size ( void  ) const
inlineoverridevirtual

◆ size() [2/2]

unsigned int HLTConfigDataEx::size ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 87 of file hltDiff.cc.

87 { return data_.size(trigger); }

References data_, and HLTConfigData::size().

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

◆ triggerIndex()

unsigned int HLTConfigDataEx::triggerIndex ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 93 of file hltDiff.cc.

93 { return trigger; }

◆ triggerName()

std::string const& HLTConfigDataEx::triggerName ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 91 of file hltDiff.cc.

91 { return data_.triggerName(trigger); }

References data_, and HLTConfigData::triggerName().

Referenced by HLTCommonConfig::triggerName().

◆ triggerNames()

virtual std::vector<std::string> const& HLTConfigDataEx::triggerNames ( ) const
inlinevirtual

Definition at line 89 of file hltDiff.cc.

89 { return data_.triggerNames(); }

References data_, and HLTConfigData::triggerNames().

Member Data Documentation

◆ data_

HLTConfigData HLTConfigDataEx::data_
private

Definition at line 108 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), moduleLabel(), processName(), size(), triggerName(), and triggerNames().

◆ moduleTypes_

std::vector<std::vector<std::string const*> > HLTConfigDataEx::moduleTypes_
private

Definition at line 110 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and moduleType().

◆ moduleTypeSet_

std::set<std::string> HLTConfigDataEx::moduleTypeSet_
private

Definition at line 109 of file hltDiff.cc.

Referenced by HLTConfigDataEx().

◆ prescalers_

std::vector<std::vector<bool> > HLTConfigDataEx::prescalers_
private

Definition at line 111 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and prescaler().

HLTConfigDataEx::moduleTypeSet_
std::set< std::string > moduleTypeSet_
Definition: hltDiff.cc:109
HLTConfigData::moduleType
const std::string moduleType(const std::string &module) const
C++ class name of module.
Definition: HLTConfigData.cc:480
HLTConfigData::triggerNames
const std::vector< std::string > & triggerNames() const
names of trigger paths
Definition: HLTConfigData.cc:436
HLTConfigDataEx::moduleLabel
std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:95
HLTConfigData::processName
const std::string & processName() const
Accessors (const methods)
Definition: HLTConfigData.cc:427
visualization-live-secondInstance_cfg.m
m
Definition: visualization-live-secondInstance_cfg.py:72
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
HLTConfigDataEx::moduleTypes_
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:110
HLTConfigData::size
unsigned int size() const
number of trigger paths in trigger table
Definition: HLTConfigData.cc:431
HLTConfigDataEx::size
unsigned int size() const override
Definition: hltDiff.cc:85
HLTConfigDataEx::data_
HLTConfigData data_
Definition: hltDiff.cc:108
HLTConfigDataEx::prescalers_
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:111
eostools.move
def move(src, dest)
Definition: eostools.py:511
HLTConfigData::moduleLabel
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: HLTConfigData.cc:461
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
trigger
Definition: HLTPrescaleTableCond.h:8
submitPVValidationJobs.t
string t
Definition: submitPVValidationJobs.py:644
HLTConfigData::triggerName
const std::string & triggerName(unsigned int triggerIndex) const
Definition: HLTConfigData.cc:437