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_CTPPSReadoutObjects_TotemSymbId
10 #define CondFormats_CTPPSReadoutObjects_TotemSymbId
11 
12 #include <iostream>
13 
18 {
19  public:
21  unsigned int symbolicID;
22 
23  bool operator < (const TotemSymbID &sid) const
24  {
25  return (symbolicID < sid.symbolicID);
26  }
27 
28  bool operator == (const TotemSymbID &sid) const
29  {
30  return (symbolicID == sid.symbolicID);
31  }
32 
33  friend std::ostream& operator << (std::ostream& s, const TotemSymbID &sid);
34 };
35 
36 #endif
bool operator<(const TotemSymbID &sid) const
Definition: TotemSymbId.h:23
friend std::ostream & operator<<(std::ostream &s, const TotemSymbID &sid)
Definition: TotemSymbId.cc:13
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:17
unsigned int symbolicID
chip ID, raw integer representation of DetId class
Definition: TotemSymbId.h:21
bool operator==(const TotemSymbID &sid) const
Definition: TotemSymbId.h:28