CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 68 of file hltDiff.cc.

Constructor & Destructor Documentation

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

Definition at line 70 of file hltDiff.cc.

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

70  : data_(std::move(data)), moduleTypes_(size()), prescalers_(size()) {
71  for (unsigned int t = 0; t < data_.size(); ++t) {
72  prescalers_[t].resize(size(t));
73  moduleTypes_[t].resize(size(t));
74  for (unsigned int m = 0; m < data_.size(t); ++m) {
76  prescalers_[t][m] = (type == "HLTPrescaler");
77  moduleTypes_[t][m] = &*moduleTypeSet_.insert(std::move(type)).first;
78  }
79  }
80  }
std::set< std::string > moduleTypeSet_
Definition: hltDiff.cc:108
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:109
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:107
def move
Definition: eostools.py:511
const std::string moduleType(const std::string &module) const
C++ class name of module.
unsigned int size() const override
Definition: hltDiff.cc:84
std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:94
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:110
HLTConfigDataEx::~HLTConfigDataEx ( )
overridedefault

Member Function Documentation

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

Implements HLTConfigInterface.

Definition at line 94 of file hltDiff.cc.

References data_, and HLTConfigData::moduleLabel().

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

94  {
95  return data_.moduleLabel(trigger, module);
96  }
HLTConfigData data_
Definition: hltDiff.cc:107
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
tuple module
Definition: callgraph.py:69
std::string const& HLTConfigDataEx::moduleType ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 98 of file hltDiff.cc.

References moduleTypes_.

Referenced by HLTCommonConfig::moduleType().

98  {
99  return *moduleTypes_.at(trigger).at(module);
100  }
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:109
tuple module
Definition: callgraph.py:69
bool HLTConfigDataEx::prescaler ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 102 of file hltDiff.cc.

References prescalers_.

Referenced by HLTCommonConfig::prescaler().

102  {
103  return prescalers_.at(trigger).at(module);
104  }
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:110
tuple module
Definition: callgraph.py:69
std::string const& HLTConfigDataEx::processName ( ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 82 of file hltDiff.cc.

References data_, and HLTConfigData::processName().

Referenced by HLTCommonConfig::processName().

82 { return data_.processName(); }
HLTConfigData data_
Definition: hltDiff.cc:107
const std::string & processName() const
Accessors (const methods)
unsigned int HLTConfigDataEx::size ( void  ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 84 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

84 { return data_.size(); }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:107
unsigned int HLTConfigDataEx::size ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 86 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

86 { return data_.size(trigger); }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:107
unsigned int HLTConfigDataEx::triggerIndex ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 92 of file hltDiff.cc.

92 { return trigger; }
std::string const& HLTConfigDataEx::triggerName ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 90 of file hltDiff.cc.

References data_, and HLTConfigData::triggerName().

Referenced by HLTCommonConfig::HLTCommonConfig(), and HLTCommonConfig::triggerName().

90 { return data_.triggerName(trigger); }
HLTConfigData data_
Definition: hltDiff.cc:107
const std::string & triggerName(unsigned int triggerIndex) const
virtual std::vector<std::string> const& HLTConfigDataEx::triggerNames ( ) const
inlinevirtual

Definition at line 88 of file hltDiff.cc.

References data_, and HLTConfigData::triggerNames().

88 { return data_.triggerNames(); }
const std::vector< std::string > & triggerNames() const
names of trigger paths
HLTConfigData data_
Definition: hltDiff.cc:107

Member Data Documentation

HLTConfigData HLTConfigDataEx::data_
private

Definition at line 107 of file hltDiff.cc.

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

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

Definition at line 109 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and moduleType().

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

Definition at line 108 of file hltDiff.cc.

Referenced by HLTConfigDataEx().

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

Definition at line 110 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and prescaler().