Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:02:28

0001 /****************************************************************************
0002 *
0003 * This is a part of TOTEM offline software.
0004 * Authors: 
0005 *   Jan Kašpar (jan.kaspar@cern.ch)
0006 *
0007 ****************************************************************************/
0008 
0009 #ifndef CondFormats_PPSObjects_TotemSymbId
0010 #define CondFormats_PPSObjects_TotemSymbId
0011 
0012 #include "CondFormats/Serialization/interface/Serializable.h"
0013 #include <iostream>
0014 
0015 /**
0016  *\brief Symbolic ID describing an entity of a TOTEM subdetector.
0017  **/
0018 class TotemSymbID {
0019 public:
0020   /// chip ID, raw integer representation of DetId class
0021   unsigned int symbolicID;
0022 
0023   void print(std::ostream &os, std::string subSystemName) const;
0024 
0025   bool operator<(const TotemSymbID &sid) const { return (symbolicID < sid.symbolicID); }
0026 
0027   bool operator==(const TotemSymbID &sid) const { return (symbolicID == sid.symbolicID); }
0028 
0029   friend std::ostream &operator<<(std::ostream &s, const TotemSymbID &sid);
0030 
0031   COND_SERIALIZABLE;
0032 };
0033 
0034 #endif