CMS 3D CMS Logo

TotemSymbId.h
Go to the documentation of this file.
1 /****************************************************************************
2 *
3 * This is a part of TOTEM offline software.
4 * Authors:
5 * Jan Kašpar (jan.kaspar@cern.ch)
6 *
7 ****************************************************************************/
8 
9 #ifndef CondFormats_PPSObjects_TotemSymbId
10 #define CondFormats_PPSObjects_TotemSymbId
11 
13 #include <iostream>
14 
18 class TotemSymbID {
19 public:
21  unsigned int symbolicID;
22 
23  void print(std::ostream &os, std::string subSystemName) const;
24 
25  bool operator<(const TotemSymbID &sid) const { return (symbolicID < sid.symbolicID); }
26 
27  bool operator==(const TotemSymbID &sid) const { return (symbolicID == sid.symbolicID); }
28 
29  friend std::ostream &operator<<(std::ostream &s, const TotemSymbID &sid);
30 
32 };
33 
34 #endif
friend std::ostream & operator<<(std::ostream &s, const TotemSymbID &sid)
Definition: TotemSymbId.cc:41
bool operator<(const TotemSymbID &sid) const
Definition: TotemSymbId.h:25
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:18
unsigned int symbolicID
chip ID, raw integer representation of DetId class
Definition: TotemSymbId.h:21
bool operator==(const TotemSymbID &sid) const
Definition: TotemSymbId.h:27
#define COND_SERIALIZABLE
Definition: Serializable.h:39
void print(std::ostream &os, std::string subSystemName) const
Definition: TotemSymbId.cc:17