CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1MuDTTrackAssParam.cc File Reference
#include "L1Trigger/DTTrackFinder/src/L1MuDTTrackAssParam.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

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

Definition at line 20 of file L1MuDTTrackAssParam.cc.

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

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

Definition at line 43 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().

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 }
const string tc2string ( const TrackClass  tc)

Definition at line 70 of file L1MuDTTrackAssParam.cc.

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

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 }