test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
LumiSummaryRunHeader.h
Go to the documentation of this file.
1 #ifndef DataFormats_Luminosity_LumiSummaryRunHeader_h
2 #define DataFormats_Luminosity_LumiSummaryRunHeader_h
3 
18 #include <vector>
19 #include <string>
20 
22 {
23 public:
24  typedef std::vector<std::string> vstring_t;
25 
26  //----------------------------------------------------------------
27 
30 
33  LumiSummaryRunHeader(vstring_t& l1names, vstring_t& hltnames);
34 
37 
39  bool isProductEqual(LumiSummaryRunHeader const& o) const;
40 
41  //----------------------------------------------------------------
42 
44  void setL1Names(const vstring_t& l1names);
45 
47  void setHLTNames(const vstring_t& hltnames);
48 
50  void swapL1Names(vstring_t& l1names);
51 
53  void swapHLTNames(vstring_t& hltnames);
54 
55  //----------------------------------------------------------------
56 
58  std::string getL1Name(unsigned int idx) const { return m_l1Names.at(idx); }
59 
61  std::string getHLTName(unsigned int idx) const { return m_hltNames.at(idx); }
62 
64  const vstring_t& getL1Names(vstring_t& l1names) const { return m_l1Names; }
65 
67  const vstring_t& getHLTNames(vstring_t& hltnames) const { return m_hltNames; }
68 
70  unsigned int getL1Index(const std::string& name) const;
71 
73  unsigned int getHLTIndex(const std::string& name) const;
74 
75  //----------------------------------------------------------------
76 
77 private:
78  vstring_t m_l1Names; // L1 trigger-name vector.
79  vstring_t m_hltNames; // HLT path-name vector.
80 };
81 
82 #endif
std::string getL1Name(unsigned int idx) const
Get L1 name at given position.
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
std::string getHLTName(unsigned int idx) const
Get HLT name at given position.
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.
~LumiSummaryRunHeader()
Destructor.
const vstring_t & getL1Names(vstring_t &l1names) const
Get L1 name vector.
tuple idx
DEBUGGING if hasattr(process,&quot;trackMonIterativeTracking2012&quot;): print &quot;trackMonIterativeTracking2012 D...
unsigned int getL1Index(const std::string &name) const
Get index of given L1 trigger-name. Returns -1 if not found.
const vstring_t & getHLTNames(vstring_t &hltnames) const
Get HLT name vector.
void swapHLTNames(vstring_t &hltnames)
Swap HLT name vector.
void setL1Names(const vstring_t &l1names)
Set L1 name vector.