CMS 3D CMS Logo

Functions
L1MuBMTrackAssParam.cc File Reference
#include "DataFormats/L1TMuon/interface/BMTF/L1MuBMTrackAssParam.h"
#include <iostream>

Go to the source code of this file.

Functions

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

Function Documentation

◆ operator<<()

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

Definition at line 20 of file L1MuBMTrackAssParam.cc.

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

20  {
21  switch (tc) {
22  case T1234:
23  return s << "T1234 ";
24  case T123:
25  return s << "T123 ";
26  case T124:
27  return s << "T124 ";
28  case T134:
29  return s << "T134 ";
30  case T234:
31  return s << "T234 ";
32  case T12:
33  return s << "T12 ";
34  case T14:
35  return s << "T14 ";
36  case T13:
37  return s << "T13 ";
38  case T24:
39  return s << "T24 ";
40  case T23:
41  return s << "T23 ";
42  case T34:
43  return s << "T34 ";
44  default:
45  return s << "UNDEF ";
46  }
47 }

◆ 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 }
Definition: value.py:1

◆ tc2string()

const 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 }
#define str(s)