CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
HLTConfigDataEx Class Reference
Inheritance diagram for HLTConfigDataEx:
HLTConfigInterface

Public Member Functions

 HLTConfigDataEx (HLTConfigData data)
 
virtual std::string const & moduleLabel (unsigned int trigger, unsigned int module) const override
 
virtual std::string const & moduleType (unsigned int trigger, unsigned int module) const override
 
virtual bool prescaler (unsigned int trigger, unsigned int module) const override
 
virtual std::string const & processName () const override
 
virtual unsigned int size () const override
 
virtual unsigned int size (unsigned int trigger) const override
 
virtual unsigned int triggerIndex (unsigned int trigger) const override
 
virtual std::string const & triggerName (unsigned int trigger) const override
 
virtual std::vector
< std::string > const & 
triggerNames () const
 

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 72 of file hltDiff.cc.

Constructor & Destructor Documentation

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

Definition at line 74 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 lumiQTWidget::t.

74  :
75  data_(data),
76  moduleTypes_(size()),
77  prescalers_(size())
78  {
79  for (unsigned int t = 0; t < data_.size(); ++t) {
80  prescalers_[t].resize(size(t));
81  moduleTypes_[t].resize(size(t));
82  for (unsigned int m = 0; m < data_.size(t); ++m) {
84  prescalers_[t][m] = (type == "HLTPrescaler");
85  moduleTypes_[t][m] = &* moduleTypeSet_.insert(std::move(type)).first;
86  }
87  }
88  }
type
Definition: HCALResponse.h:21
std::set< std::string > moduleTypeSet_
Definition: hltDiff.cc:128
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:129
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:127
virtual std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:114
def move
Definition: eostools.py:510
virtual unsigned int size() const override
Definition: hltDiff.cc:94
const std::string moduleType(const std::string &module) const
C++ class name of module.
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:130

Member Function Documentation

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

Implements HLTConfigInterface.

Definition at line 114 of file hltDiff.cc.

References data_, and HLTConfigData::moduleLabel().

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

114  {
115  return data_.moduleLabel(trigger, module);
116  }
HLTConfigData data_
Definition: hltDiff.cc:127
const std::string & moduleLabel(unsigned int trigger, unsigned int module) const
Definition: vlib.h:208
virtual std::string const& HLTConfigDataEx::moduleType ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 118 of file hltDiff.cc.

References moduleTypes_.

Referenced by HLTCommonConfig::moduleType().

118  {
119  return * moduleTypes_.at(trigger).at(module);
120  }
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:129
Definition: vlib.h:208
virtual bool HLTConfigDataEx::prescaler ( unsigned int  trigger,
unsigned int  module 
) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 122 of file hltDiff.cc.

References prescalers_.

Referenced by HLTCommonConfig::prescaler().

122  {
123  return prescalers_.at(trigger).at(module);
124  }
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:130
Definition: vlib.h:208
virtual std::string const& HLTConfigDataEx::processName ( ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 90 of file hltDiff.cc.

References data_, and HLTConfigData::processName().

Referenced by HLTCommonConfig::processName().

90  {
91  return data_.processName();
92  }
HLTConfigData data_
Definition: hltDiff.cc:127
const std::string & processName() const
Accessors (const methods)
virtual unsigned int HLTConfigDataEx::size ( void  ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 94 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

94  {
95  return data_.size();
96  }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:127
virtual unsigned int HLTConfigDataEx::size ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 98 of file hltDiff.cc.

References data_, and HLTConfigData::size().

98  {
99  return data_.size(trigger);
100  }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:127
virtual unsigned int HLTConfigDataEx::triggerIndex ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 110 of file hltDiff.cc.

110  {
111  return trigger;
112  }
virtual std::string const& HLTConfigDataEx::triggerName ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 106 of file hltDiff.cc.

References data_, and HLTConfigData::triggerName().

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

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

Definition at line 102 of file hltDiff.cc.

References data_, and HLTConfigData::triggerNames().

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

Member Data Documentation

HLTConfigData HLTConfigDataEx::data_
private

Definition at line 127 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 129 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and moduleType().

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

Definition at line 128 of file hltDiff.cc.

Referenced by HLTConfigDataEx().

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

Definition at line 130 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and prescaler().