CMS 3D CMS Logo

List of all members | Classes | Public Types | Public Member Functions | Private Attributes
HLTCommonConfig Class Reference

Classes

class  View
 

Public Types

enum  Index { Index::First = 0, Index::Second = 1 }
 

Public Member Functions

View const & getView (Index index) const
 
 HLTCommonConfig (HLTConfigDataEx const &first, HLTConfigDataEx const &second)
 
std::string const & moduleLabel (Index index, unsigned int trigger, unsigned int module) const
 
std::string const & moduleType (Index index, unsigned int trigger, unsigned int module) const
 
bool prescaler (Index index, unsigned int trigger, unsigned int module) const
 
std::string const & processName (Index index) const
 
unsigned int size (Index index) const
 
unsigned int size (Index index, unsigned int trigger) const
 
unsigned int triggerIndex (Index index, unsigned int trigger) const
 
std::string const & triggerName (Index index, unsigned int trigger) const
 

Private Attributes

HLTConfigDataEx const & first_
 
View firstView_
 
HLTConfigDataEx const & second_
 
View secondView_
 
std::vector< std::pair< unsigned int, unsigned int > > triggerIndices_
 

Detailed Description

Definition at line 116 of file hltDiff.cc.

Member Enumeration Documentation

◆ Index

Enumerator
First 
Second 

Definition at line 118 of file hltDiff.cc.

118 { First = 0, Second = 1 };

Constructor & Destructor Documentation

◆ HLTCommonConfig()

HLTCommonConfig::HLTCommonConfig ( HLTConfigDataEx const &  first,
HLTConfigDataEx const &  second 
)
inline

Definition at line 138 of file hltDiff.cc.

140  for (unsigned int f = 0; f < first.size(); ++f)
141  for (unsigned int s = 0; s < second.size(); ++s)
142  if (first.triggerName(f) == second.triggerName(s)) {
143  triggerIndices_.push_back(std::make_pair(f, s));
144  break;
145  }
146  }

References f, dqmdumpme::first, alignCSCRings::s, edm::second(), and triggerIndices_.

Member Function Documentation

◆ getView()

View const& HLTCommonConfig::getView ( Index  index) const
inline

Definition at line 148 of file hltDiff.cc.

148  {
149  if (index == Index::First)
150  return firstView_;
151  else
152  return secondView_;
153  }

References First, firstView_, and secondView_.

◆ moduleLabel()

std::string const& HLTCommonConfig::moduleLabel ( Index  index,
unsigned int  trigger,
unsigned int  module 
) const
inline

Definition at line 185 of file hltDiff.cc.

185  {
186  if (index == Index::First)
187  return first_.moduleLabel(triggerIndices_.at(trigger).first, module);
188  else
189  return second_.moduleLabel(triggerIndices_.at(trigger).second, module);
190  }

References First, first_, HLTConfigDataEx::moduleLabel(), second_, and triggerIndices_.

◆ moduleType()

std::string const& HLTCommonConfig::moduleType ( Index  index,
unsigned int  trigger,
unsigned int  module 
) const
inline

Definition at line 192 of file hltDiff.cc.

192  {
193  if (index == Index::First)
194  return first_.moduleType(triggerIndices_.at(trigger).first, module);
195  else
196  return second_.moduleType(triggerIndices_.at(trigger).second, module);
197  }

References First, first_, HLTConfigDataEx::moduleType(), second_, and triggerIndices_.

◆ prescaler()

bool HLTCommonConfig::prescaler ( Index  index,
unsigned int  trigger,
unsigned int  module 
) const
inline

Definition at line 199 of file hltDiff.cc.

199  {
200  if (index == Index::First)
201  return first_.prescaler(triggerIndices_.at(trigger).first, module);
202  else
203  return second_.prescaler(triggerIndices_.at(trigger).second, module);
204  }

References First, first_, HLTConfigDataEx::prescaler(), second_, and triggerIndices_.

◆ processName()

std::string const& HLTCommonConfig::processName ( Index  index) const
inline

Definition at line 155 of file hltDiff.cc.

155  {
156  if (index == Index::First)
157  return first_.processName();
158  else
159  return second_.processName();
160  }

References First, first_, HLTConfigDataEx::processName(), and second_.

Referenced by HLTCommonConfig::View::processName().

◆ size() [1/2]

unsigned int HLTCommonConfig::size ( Index  index) const
inline

Definition at line 162 of file hltDiff.cc.

162 { return triggerIndices_.size(); }

References triggerIndices_.

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

◆ size() [2/2]

unsigned int HLTCommonConfig::size ( Index  index,
unsigned int  trigger 
) const
inline

Definition at line 164 of file hltDiff.cc.

164  {
165  if (index == Index::First)
166  return first_.size(trigger);
167  else
168  return second_.size(trigger);
169  }

References First, first_, second_, and HLTConfigDataEx::size().

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

◆ triggerIndex()

unsigned int HLTCommonConfig::triggerIndex ( Index  index,
unsigned int  trigger 
) const
inline

Definition at line 178 of file hltDiff.cc.

178  {
179  if (index == Index::First)
180  return triggerIndices_.at(trigger).first;
181  else
182  return triggerIndices_.at(trigger).second;
183  }

References First, and triggerIndices_.

◆ triggerName()

std::string const& HLTCommonConfig::triggerName ( Index  index,
unsigned int  trigger 
) const
inline

Definition at line 171 of file hltDiff.cc.

171  {
172  if (index == Index::First)
173  return first_.triggerName(triggerIndices_.at(trigger).first);
174  else
175  return second_.triggerName(triggerIndices_.at(trigger).second);
176  }

References First, first_, second_, triggerIndices_, and HLTConfigDataEx::triggerName().

Member Data Documentation

◆ first_

HLTConfigDataEx const& HLTCommonConfig::first_
private

Definition at line 207 of file hltDiff.cc.

Referenced by moduleLabel(), moduleType(), prescaler(), processName(), size(), and triggerName().

◆ firstView_

View HLTCommonConfig::firstView_
private

Definition at line 210 of file hltDiff.cc.

Referenced by getView().

◆ second_

HLTConfigDataEx const& HLTCommonConfig::second_
private

Definition at line 208 of file hltDiff.cc.

Referenced by moduleLabel(), moduleType(), prescaler(), processName(), size(), and triggerName().

◆ secondView_

View HLTCommonConfig::secondView_
private

Definition at line 211 of file hltDiff.cc.

Referenced by getView().

◆ triggerIndices_

std::vector<std::pair<unsigned int, unsigned int> > HLTCommonConfig::triggerIndices_
private
HLTConfigDataEx::processName
std::string const & processName() const override
Definition: hltDiff.cc:83
f
double f[11][100]
Definition: MuScleFitUtils.cc:78
HLTConfigDataEx::moduleType
std::string const & moduleType(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:99
HLTConfigDataEx::moduleLabel
std::string const & moduleLabel(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:95
edm::second
U second(std::pair< T, U > const &p)
Definition: ParameterSet.cc:215
HLTConfigDataEx::triggerName
std::string const & triggerName(unsigned int trigger) const override
Definition: hltDiff.cc:91
dqmdumpme.first
first
Definition: dqmdumpme.py:55
HLTConfigDataEx::prescaler
bool prescaler(unsigned int trigger, unsigned int module) const override
Definition: hltDiff.cc:103
alignCSCRings.s
s
Definition: alignCSCRings.py:92
HLTCommonConfig::triggerIndices_
std::vector< std::pair< unsigned int, unsigned int > > triggerIndices_
Definition: hltDiff.cc:213
HLTCommonConfig::second_
HLTConfigDataEx const & second_
Definition: hltDiff.cc:208
module
Definition: vlib.h:198
HLTCommonConfig::secondView_
View secondView_
Definition: hltDiff.cc:211
HLTConfigDataEx::size
unsigned int size() const override
Definition: hltDiff.cc:85
HLTCommonConfig::firstView_
View firstView_
Definition: hltDiff.cc:210
HLTCommonConfig::Index::Second
HLTCommonConfig::first_
HLTConfigDataEx const & first_
Definition: hltDiff.cc:207
AlignmentPI::index
index
Definition: AlignmentPayloadInspectorHelper.h:46
trigger
Definition: HLTPrescaleTableCond.h:8
HLTCommonConfig::Index::First