test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LumiSummaryRunHeader.cc
Go to the documentation of this file.
1 
3 
5 {
6  m_l1Names.swap(l1names);
7  m_hltNames.swap(hltnames);
8 }
9 
11 {
12  return m_l1Names == o.m_l1Names && m_hltNames == o.m_hltNames;
13 }
14 
15 //==============================================================================
16 
18 {
19  m_l1Names.assign(l1names.begin(), l1names.end());
20 }
21 
23 {
24  m_hltNames.assign(hltnames.begin(), hltnames.end());
25 }
26 
28 {
29  m_l1Names.swap(l1names);
30 }
31 
33 {
34  m_hltNames.swap(hltnames);
35 }
36 
37 //==============================================================================
38 
40 {
41  const unsigned int size = m_l1Names.size();
42  for (unsigned int i = 0; i < size; ++i)
43  {
44  if (m_l1Names[i] == name) return i;
45  }
46  return -1;
47 }
48 
50 {
51  const unsigned int size = m_hltNames.size();
52  for (unsigned int i = 0; i < size; ++i)
53  {
54  if (m_hltNames[i] == name) return i;
55  }
56  return -1;
57 }
int i
Definition: DBlmapReader.cc:9
unsigned int getHLTIndex(const std::string &name) const
Get index of given HLT path-name. Returns -1 if not found.
std::vector< std::string > vstring_t
void setHLTNames(const vstring_t &hltnames)
Set HLT name vector.
LumiSummaryRunHeader()
Default constructor.
bool isProductEqual(LumiSummaryRunHeader const &o) const
Product compare function.
void swapL1Names(vstring_t &l1names)
Swap L1 name vector.
unsigned int getL1Index(const std::string &name) const
Get index of given L1 trigger-name. Returns -1 if not found.
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
tuple size
Write out results.
void setL1Names(const vstring_t &l1names)
Set L1 name vector.