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

Constructor & Destructor Documentation

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

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

102  :
103  data_(data),
104  moduleTypes_(size()),
105  prescalers_(size())
106  {
107  for (unsigned int t = 0; t < data_.size(); ++t) {
108  prescalers_[t].resize(size(t));
109  moduleTypes_[t].resize(size(t));
110  for (unsigned int m = 0; m < data_.size(t); ++m) {
112  prescalers_[t][m] = (type == "HLTPrescaler");
113  moduleTypes_[t][m] = &* moduleTypeSet_.insert(std::move(type)).first;
114  }
115  }
116  }
type
Definition: HCALResponse.h:21
std::set< std::string > moduleTypeSet_
Definition: hltDiff.cc:156
std::vector< std::vector< std::string const * > > moduleTypes_
Definition: hltDiff.cc:157
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:155
virtual std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:142
def move
Definition: eostools.py:510
virtual unsigned int size() const override
Definition: hltDiff.cc:122
const std::string moduleType(const std::string &module) const
C++ class name of module.
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:158

Member Function Documentation

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

Implements HLTConfigInterface.

Definition at line 142 of file hltDiff.cc.

References data_, and HLTConfigData::moduleLabel().

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

142  {
143  return data_.moduleLabel(trigger, module);
144  }
HLTConfigData data_
Definition: hltDiff.cc:155
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 146 of file hltDiff.cc.

References moduleTypes_.

Referenced by HLTCommonConfig::moduleType().

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

Implements HLTConfigInterface.

Definition at line 150 of file hltDiff.cc.

References prescalers_.

Referenced by HLTCommonConfig::prescaler().

150  {
151  return prescalers_.at(trigger).at(module);
152  }
std::vector< std::vector< bool > > prescalers_
Definition: hltDiff.cc:158
Definition: vlib.h:208
virtual std::string const& HLTConfigDataEx::processName ( ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 118 of file hltDiff.cc.

References data_, and HLTConfigData::processName().

Referenced by HLTCommonConfig::processName().

118  {
119  return data_.processName();
120  }
HLTConfigData data_
Definition: hltDiff.cc:155
const std::string & processName() const
Accessors (const methods)
virtual unsigned int HLTConfigDataEx::size ( void  ) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 122 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

122  {
123  return data_.size();
124  }
unsigned int size() const
number of trigger paths in trigger table
HLTConfigData data_
Definition: hltDiff.cc:155
virtual unsigned int HLTConfigDataEx::size ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 126 of file hltDiff.cc.

References data_, and HLTConfigData::size().

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

Implements HLTConfigInterface.

Definition at line 138 of file hltDiff.cc.

138  {
139  return trigger;
140  }
virtual std::string const& HLTConfigDataEx::triggerName ( unsigned int  trigger) const
inlineoverridevirtual

Implements HLTConfigInterface.

Definition at line 134 of file hltDiff.cc.

References data_, and HLTConfigData::triggerName().

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

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

Definition at line 130 of file hltDiff.cc.

References data_, and HLTConfigData::triggerNames().

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

Member Data Documentation

HLTConfigData HLTConfigDataEx::data_
private

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

Referenced by HLTConfigDataEx(), and moduleType().

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

Definition at line 156 of file hltDiff.cc.

Referenced by HLTConfigDataEx().

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

Definition at line 158 of file hltDiff.cc.

Referenced by HLTConfigDataEx(), and prescaler().