CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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
}
 

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 

Definition at line 23 of file L1MuDTTrackAssParam.h.

Function Documentation

std::ostream& operator<< ( std::ostream &  s,
TrackClass  tc 
)

Definition at line 22 of file L1MuDTTrackAssParam.cc.

References T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, and T34.

22  {
23 
24  switch ( tc ) {
25  case T1234: return s << "T1234 ";
26  case T123: return s << "T123 ";
27  case T124: return s << "T124 ";
28  case T134: return s << "T134 ";
29  case T234: return s << "T234 ";
30  case T12: return s << "T12 ";
31  case T14: return s << "T14 ";
32  case T13: return s << "T13 ";
33  case T24: return s << "T24 ";
34  case T23: return s << "T23 ";
35  case T34: return s << "T34 ";
36  default: return s << "UNDEF ";
37  }
38 
39 }
const unsigned int tc2bitmap ( const TrackClass  tc)

Definition at line 45 of file L1MuDTTrackAssParam.cc.

References T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, T34, and relativeConstraints::value.

Referenced by L1MuDTTrackAssembler::runAddressAssignment1(), and L1MuDTTrackAssembler::runAddressAssignment2().

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

Definition at line 72 of file L1MuDTTrackAssParam.cc.

References T12, T123, T1234, T124, T13, T134, T14, T23, T234, T24, and T34.

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

Variable Documentation

const int MAX_TC = 11

Definition at line 20 of file L1MuDTTrackAssParam.h.