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

Constructor & Destructor Documentation

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

Definition at line 107 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.

107  :
108  data_(data),
109  moduleTypes_(size()),
110  prescalers_(size())
111  {
112  for (unsigned int t = 0; t < data_.size(); ++t) {
113  prescalers_[t].resize(size(t));
114  moduleTypes_[t].resize(size(t));
115  for (unsigned int m = 0; m < data_.size(t); ++m) {
117  prescalers_[t][m] = (type == "HLTPrescaler");
118  moduleTypes_[t][m] = &* moduleTypeSet_.insert(std::move(type)).first;
119  }
120  }
121  }
type
Definition: HCALResponse.h:21
std::set< std::string > moduleTypeSet_
Definition: hltDiff.cc:161
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:162
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:160
virtual std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:147
def move
Definition: eostools.py:510
virtual unsigned int size() const override
Definition: hltDiff.cc:127
const std::string moduleType(const std::string &module) const
C++ class name of module.
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:163

Member Function Documentation

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

Implements HLTConfigInterface.

Definition at line 147 of file hltDiff.cc.

References data_, and HLTConfigData::moduleLabel().

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

147  {
148  return data_.moduleLabel(trigger, module);
149  }
HLTConfigData data_
Definition: hltDiff.cc:160
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 151 of file hltDiff.cc.

References moduleTypes_.

Referenced by HLTCommonConfig::moduleType().

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

Implements HLTConfigInterface.

Definition at line 155 of file hltDiff.cc.

References prescalers_.

Referenced by HLTCommonConfig::prescaler().

155  {
156  return prescalers_.at(trigger).at(module);
157  }
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:163
Definition: vlib.h:208
virtual std::string const& HLTConfigDataEx::processName ( ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 123 of file hltDiff.cc.

References data_, and HLTConfigData::processName().

Referenced by HLTCommonConfig::processName().

123  {
124  return data_.processName();
125  }
HLTConfigData data_
Definition: hltDiff.cc:160
const std::string & processName() const
Accessors (const methods)
virtual unsigned int HLTConfigDataEx::size ( void  ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 127 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

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

Implements HLTConfigInterface.

Definition at line 131 of file hltDiff.cc.

References data_, and HLTConfigData::size().

131  {
132  return data_.size(trigger);
133  }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:160
virtual unsigned int HLTConfigDataEx::triggerIndex ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 143 of file hltDiff.cc.

143  {
144  return trigger;
145  }
virtual std::string const& HLTConfigDataEx::triggerName ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 139 of file hltDiff.cc.

References data_, and HLTConfigData::triggerName().

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

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

Definition at line 135 of file hltDiff.cc.

References data_, and HLTConfigData::triggerNames().

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

Member Data Documentation

HLTConfigData HLTConfigDataEx::data_
private

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

Referenced by HLTConfigDataEx(), and moduleType().

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

Definition at line 161 of file hltDiff.cc.

Referenced by HLTConfigDataEx().

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

Definition at line 163 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and prescaler().