CMS 3D CMS Logo

Enumerations | Functions | Variables
L1MuBMTrackAssParam.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

◆ TrackClass

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 L1MuBMTrackAssParam.h.

21 { T1234, T123, T124, T134, T234, T12, T14, T13, T24, T23, T34, UNDEF };

Function Documentation

◆ operator<<()

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

◆ tc2bitmap()

const unsigned int tc2bitmap ( const TrackClass  tc)

Definition at line 52 of file L1MuBMTrackAssParam.cc.

52  {
53  unsigned int value = 0;
54 
55  switch (tc) {
56  case T1234: {
57  value = 15;
58  break;
59  }
60  case T123: {
61  value = 7;
62  break;
63  }
64  case T124: {
65  value = 11;
66  break;
67  }
68  case T134: {
69  value = 13;
70  break;
71  }
72  case T234: {
73  value = 14;
74  break;
75  }
76  case T12: {
77  value = 3;
78  break;
79  }
80  case T14: {
81  value = 9;
82  break;
83  }
84  case T13: {
85  value = 5;
86  break;
87  }
88  case T24: {
89  value = 10;
90  break;
91  }
92  case T23: {
93  value = 6;
94  break;
95  }
96  case T34: {
97  value = 12;
98  break;
99  }
100  default: {
101  value = 0;
102  break;
103  }
104  }
105 
106  return value;
107 }

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

◆ tc2string()

const std::string tc2string ( const TrackClass  tc)

Definition at line 112 of file L1MuBMTrackAssParam.cc.

112  {
113  string str = "####";
114 
115  switch (tc) {
116  case T1234: {
117  str = "****";
118  break;
119  }
120  case T123: {
121  str = "***-";
122  break;
123  }
124  case T124: {
125  str = "**-*";
126  break;
127  }
128  case T134: {
129  str = "*-**";
130  break;
131  }
132  case T234: {
133  str = "-***";
134  break;
135  }
136  case T12: {
137  str = "**--";
138  break;
139  }
140  case T14: {
141  str = "*--*";
142  break;
143  }
144  case T13: {
145  str = "*-*-";
146  break;
147  }
148  case T24: {
149  str = "-*-*";
150  break;
151  }
152  case T23: {
153  str = "-**-";
154  break;
155  }
156  case T34: {
157  str = "--**";
158  break;
159  }
160  default: {
161  str = "UNDEF";
162  break;
163  }
164  }
165 
166  return str;
167 }

Variable Documentation

◆ MAX_TC

const int MAX_TC = 11

Definition at line 18 of file L1MuBMTrackAssParam.h.

T14
Definition: L1MuBMTrackAssParam.h:21
T123
Definition: L1MuBMTrackAssParam.h:21
T12
Definition: L1MuBMTrackAssParam.h:21
T134
Definition: L1MuBMTrackAssParam.h:21
T234
Definition: L1MuBMTrackAssParam.h:21
str
#define str(s)
Definition: TestProcessor.cc:52
T13
Definition: L1MuBMTrackAssParam.h:21
T34
Definition: L1MuBMTrackAssParam.h:21
T124
Definition: L1MuBMTrackAssParam.h:21
value
Definition: value.py:1
T1234
Definition: L1MuBMTrackAssParam.h:21
T24
Definition: L1MuBMTrackAssParam.h:21
relativeConstraints.value
value
Definition: relativeConstraints.py:53
T23
Definition: L1MuBMTrackAssParam.h:21
UNDEF
Definition: L1MuBMTrackAssParam.h:21