test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  enum {RP, T1, T2} subSystem;
22 
24  unsigned int symbolicID;
25 
26  bool operator < (const TotemSymbID &sid) const
27  {
28  if (subSystem == sid.subSystem)
29  return (symbolicID < sid.symbolicID);
30  return (subSystem < sid.subSystem);
31  }
32 
33  bool operator == (const TotemSymbID &sid) const
34  {
35  return ((subSystem==sid.subSystem) && (symbolicID==sid.symbolicID));
36  }
37 
38  friend std::ostream& operator << (std::ostream& s, const TotemSymbID &sid);
39 };
40 
41 #endif
bool operator<(const TotemSymbID &sid) const
Definition: TotemSymbId.h:26
friend std::ostream & operator<<(std::ostream &s, const TotemSymbID &sid)
Definition: TotemSymbId.cc:11
Symbolic ID describing an entity of a TOTEM subdetector.
Definition: TotemSymbId.h:17
unsigned int symbolicID
integer-encoded symbolic ID
Definition: TotemSymbId.h:24
bool operator==(const TotemSymbID &sid) const
Definition: TotemSymbId.h:33
enum TotemSymbID::@84 subSystem
identifies the TOTEM subsystem