CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch9/src/EventFilter/StorageManager/interface/DQMKey.h

Go to the documentation of this file.
00001 // $Id: DQMKey.h,v 1.6 2011/03/07 15:31:31 mommsen Exp $
00003 
00004 #ifndef EventFilter_StorageManager_DQMKey_h
00005 #define EventFilter_StorageManager_DQMKey_h
00006 
00007 #include <cstddef>
00008 #include <stdint.h>
00009 #include <string>
00010 
00011 namespace stor {
00012 
00021   struct DQMKey
00022   {
00023     uint32_t runNumber;
00024     uint32_t lumiSection;
00025     std::string topLevelFolderName;
00026 
00027     bool operator<(DQMKey const& other) const;
00028     bool operator==(DQMKey const& other) const;
00029   };
00030   
00031   inline bool DQMKey::operator<(DQMKey const& other) const
00032   {
00033     if ( runNumber != other.runNumber ) return runNumber < other.runNumber;
00034     if ( lumiSection != other.lumiSection ) return lumiSection < other.lumiSection;
00035     return ( topLevelFolderName < other.topLevelFolderName );
00036   }
00037   
00038   inline bool DQMKey::operator==(DQMKey const& other) const
00039   {
00040     return ( runNumber == other.runNumber &&
00041       lumiSection == other.lumiSection &&
00042       topLevelFolderName == other.topLevelFolderName );
00043   }
00044 
00045 } // namespace stor
00046 
00047 #endif // EventFilter_StorageManager_DQMKey_h 
00048 
00049