CMS 3D CMS Logo

Enumerations | Functions | Variables
L1MuDTTrackAssParam.h File Reference
#include <iosfwd>
#include <string>

Go to the source code of this file.

Enumerations

enum  TrackClass {
  T1234, T123, T124, T134,
  T234, T12, T14, T13,
  T24, T23, T34, UNDEF,
  T1234, T123, T124, T134,
  T234, T12, T14, T13,
  T24, T23, T34, UNDEF
}
 

Functions

std::ostream & operator<< (std::ostream &s, TrackClass tc)
 
const unsigned int tc2bitmap (const TrackClass tc)
 
const std::string tc2string (const TrackClass tc)
 

Variables

const int MAX_TC = 11
 

Enumeration Type Documentation

enum TrackClass
Enumerator
T1234 
T123 
T124 
T134 
T234 
T12 
T14 
T13 
T24 
T23 
T34 
UNDEF 
T1234 
T123 
T124 
T134 
T234 
T12 
T14 
T13 
T24 
T23 
T34 
UNDEF 

Definition at line 21 of file L1MuDTTrackAssParam.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
TrackClass  tc 
)
const unsigned int tc2bitmap ( const TrackClass  tc)

Definition at line 43 of file L1MuDTTrackAssParam.cc.

43  {
44 
45  unsigned int value = 0;
46 
47  switch ( tc ) {
48  case T1234: { value = 15; break; }
49  case T123: { value = 7; break; }
50  case T124: { value = 11; break; }
51  case T134: { value = 13; break; }
52  case T234: { value = 14; break; }
53  case T12: { value = 3; break; }
54  case T14: { value = 9; break; }
55  case T13: { value = 5; break; }
56  case T24: { value = 10; break; }
57  case T23: { value = 6; break; }
58  case T34: { value = 12; break; }
59  default: { value = 0; break; }
60  }
61 
62  return value;
63 
64 }
Definition: value.py:1
const std::string tc2string ( const TrackClass  tc)

Definition at line 70 of file L1MuDTTrackAssParam.cc.

70  {
71 
72  string str = "####";
73 
74  switch ( tc ) {
75  case T1234: { str = "****"; break; }
76  case T123: { str = "***-"; break; }
77  case T124: { str = "**-*"; break; }
78  case T134: { str = "*-**"; break; }
79  case T234: { str = "-***"; break; }
80  case T12: { str = "**--"; break; }
81  case T14: { str = "*--*"; break; }
82  case T13: { str = "*-*-"; break; }
83  case T24: { str = "-*-*"; break; }
84  case T23: { str = "-**-"; break; }
85  case T34: { str = "--**"; break; }
86  default: { str = "UNDEF"; break; }
87  }
88 
89  return str;
90 
91 }

Variable Documentation

const int MAX_TC = 11

Definition at line 18 of file L1MuDTTrackAssParam.h.