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
 

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

Constructor & Destructor Documentation

HLTConfigDataEx::HLTConfigDataEx ( HLTConfigData  data)
inlineexplicit

Definition at line 75 of file hltDiff.cc.

References funct::m, HLTConfigInterface::moduleLabel(), eostools::move(), HLTConfigInterface::size(), AlCaHLTBitMon_QueryRunRegistry::string, and lumiQTWidget::t.

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

Member Function Documentation

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

Implements HLTConfigInterface.

Definition at line 115 of file hltDiff.cc.

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

Implements HLTConfigInterface.

Definition at line 119 of file hltDiff.cc.

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

Implements HLTConfigInterface.

Definition at line 123 of file hltDiff.cc.

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

Implements HLTConfigInterface.

Definition at line 91 of file hltDiff.cc.

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

Implements HLTConfigInterface.

Definition at line 95 of file hltDiff.cc.

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

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

Implements HLTConfigInterface.

Definition at line 99 of file hltDiff.cc.

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

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

Implements HLTConfigInterface.

Definition at line 111 of file hltDiff.cc.

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

Implements HLTConfigInterface.

Definition at line 107 of file hltDiff.cc.

Referenced by HLTCommonConfig::HLTCommonConfig().

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

Definition at line 103 of file hltDiff.cc.

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

Member Data Documentation

HLTConfigData HLTConfigDataEx::data_
private

Definition at line 128 of file hltDiff.cc.

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

Definition at line 130 of file hltDiff.cc.

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

Definition at line 129 of file hltDiff.cc.

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

Definition at line 131 of file hltDiff.cc.