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 
12 #include <iostream>
13 
17 class TotemSymbID {
18 public:
20  unsigned int symbolicID;
21 
22  bool operator<(const TotemSymbID &sid) const { return (symbolicID < sid.symbolicID); }
23 
24  bool operator==(const TotemSymbID &sid) const { return (symbolicID == sid.symbolicID); }
25 
26  friend std::ostream &operator<<(std::ostream &s, const TotemSymbID &sid);
27 };
28 
29 #endif
friend std::ostream & operator<<(std::ostream &s, const TotemSymbID &sid)
Definition: TotemSymbId.cc:13
bool operator<(const TotemSymbID &sid) const
Definition: TotemSymbId.h:22
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:20
bool operator==(const TotemSymbID &sid) const
Definition: TotemSymbId.h:24