CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Public Attributes | Friends
TotemSymbID Class Reference

Symbolic ID describing an entity of a TOTEM subdetector. More...

#include <TotemSymbId.h>

Public Types

enum  { RP, T1, T2 }
 identifies the TOTEM subsystem More...
 

Public Member Functions

bool operator< (const TotemSymbID &sid) const
 
bool operator== (const TotemSymbID &sid) const
 

Public Attributes

enum TotemSymbID:: { ... }  subSystem
 identifies the TOTEM subsystem More...
 
unsigned int symbolicID
 integer-encoded symbolic ID More...
 

Friends

std::ostream & operator<< (std::ostream &s, const TotemSymbID &sid)
 

Detailed Description

Symbolic ID describing an entity of a TOTEM subdetector.

Definition at line 17 of file TotemSymbId.h.

Member Enumeration Documentation

anonymous enum

identifies the TOTEM subsystem

Enumerator
RP 
T1 
T2 

Definition at line 21 of file TotemSymbId.h.

21 {RP, T1, T2} subSystem;
enum TotemSymbID::@179 subSystem
identifies the TOTEM subsystem

Member Function Documentation

bool TotemSymbID::operator< ( const TotemSymbID sid) const
inline

Definition at line 26 of file TotemSymbId.h.

References subSystem, and symbolicID.

27  {
28  if (subSystem == sid.subSystem)
29  return (symbolicID < sid.symbolicID);
30  return (subSystem < sid.subSystem);
31  }
enum TotemSymbID::@179 subSystem
identifies the TOTEM subsystem
unsigned int symbolicID
integer-encoded symbolic ID
Definition: TotemSymbId.h:24
bool TotemSymbID::operator== ( const TotemSymbID sid) const
inline

Definition at line 33 of file TotemSymbId.h.

References subSystem, and symbolicID.

34  {
35  return ((subSystem==sid.subSystem) && (symbolicID==sid.symbolicID));
36  }
enum TotemSymbID::@179 subSystem
identifies the TOTEM subsystem
unsigned int symbolicID
integer-encoded symbolic ID
Definition: TotemSymbId.h:24

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  s,
const TotemSymbID sid 
)
friend

Definition at line 11 of file TotemSymbId.cc.

12 {
13  switch (sid.subSystem) {
14  case TotemSymbID::RP:
15  s << "sub-system=RP, ";
16  break;
17  case TotemSymbID::T1:
18  s << "sub-system=T1, ";
19  break;
20  case TotemSymbID::T2:
21  s << "sub-system=T2, ";
22  break;
23  }
24 
25  s << "symb. id=" << sid.symbolicID;
26 
27  return s;
28 }
enum TotemSymbID::@179 subSystem
identifies the TOTEM subsystem
unsigned int symbolicID
integer-encoded symbolic ID
Definition: TotemSymbId.h:24

Member Data Documentation

enum { ... } TotemSymbID::subSystem
unsigned int TotemSymbID::symbolicID