CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DQMKey.h
Go to the documentation of this file.
1 // $Id: DQMKey.h,v 1.5.10.1 2011/03/07 11:33:04 mommsen Exp $
3 
4 #ifndef EventFilter_StorageManager_DQMKey_h
5 #define EventFilter_StorageManager_DQMKey_h
6 
7 #include <cstddef>
8 #include <stdint.h>
9 #include <string>
10 
11 namespace stor {
12 
21  struct DQMKey
22  {
23  uint32_t runNumber;
24  uint32_t lumiSection;
25  std::string topLevelFolderName;
26 
27  bool operator<(DQMKey const& other) const;
28  bool operator==(DQMKey const& other) const;
29  };
30 
31  inline bool DQMKey::operator<(DQMKey const& other) const
32  {
33  if ( runNumber != other.runNumber ) return runNumber < other.runNumber;
34  if ( lumiSection != other.lumiSection ) return lumiSection < other.lumiSection;
35  return ( topLevelFolderName < other.topLevelFolderName );
36  }
37 
38  inline bool DQMKey::operator==(DQMKey const& other) const
39  {
40  return ( runNumber == other.runNumber &&
41  lumiSection == other.lumiSection &&
43  }
44 
45 } // namespace stor
46 
47 #endif // EventFilter_StorageManager_DQMKey_h
48 
49 
bool operator==(DQMKey const &other) const
Definition: DQMKey.h:38
bool operator<(DQMKey const &other) const
Definition: DQMKey.h:31
std::string topLevelFolderName
Definition: DQMKey.h:25
uint32_t runNumber
Definition: DQMKey.h:23
uint32_t lumiSection
Definition: DQMKey.h:24