CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTrackFinderDataTypes.h
Go to the documentation of this file.
1 #ifndef CSCTrackFinder_CSCTrackFinderDataTypes_h
2 #define CSCTrackFinder_CSCTrackFinderDataTypes_h
3 
4 // Address Types
5 typedef class local_phi_address
6 {
7  public:
8  unsigned int strip : 8;
9  unsigned int clct_pattern : 3;
10  unsigned int pattern_type : 1; // 1 is half strip 0 is di strip
11  unsigned int quality : 4;
12  unsigned int lr : 1;
13  unsigned int spare : 2;
14  unsigned int zero : 13;
15 
17  clct_pattern(0),
18  pattern_type(0),
19  quality(0),
20  lr(0),
21  spare(0),
22  zero(0) {};
23  local_phi_address(const unsigned& u) { this->operator=(u); }
24 
25  local_phi_address& operator=(const unsigned& u);
26  unsigned toint() const;
27 
28 } lclphiadd;
29 
30 typedef class global_phi_address
31 {
32  public:
33  unsigned int phi_local : 10;
34  unsigned int wire_group : 5; // bits 2-6 of wg
35  unsigned int cscid : 4;
36  unsigned int zero : 13;
37 
39  wire_group(0),
40  cscid(0),
41  zero(0) {};
42  global_phi_address(const unsigned& u) { this->operator=(u); }
43 
44  global_phi_address& operator=(const unsigned& u);
45  unsigned toint() const;
46 
47 } gblphiadd;
48 
49 typedef class global_eta_address
50 {
51  public:
52  unsigned int phi_bend : 6;
53  unsigned int phi_local : 2;
54  unsigned int wire_group : 7;
55  unsigned int cscid : 4;
56  unsigned int zero : 13;
57 
59  phi_local(0),
60  wire_group(0),
61  cscid(0),
62  zero(0) {};
63  global_eta_address(const unsigned& u) { this->operator=(u); }
64 
65  global_eta_address& operator=(const unsigned& u);
66  unsigned toint() const;
67 
68 } gbletaadd;
69 
70 typedef class pt_address
71 {
72  public:
73  unsigned int delta_phi_12 : 8;
74  unsigned int delta_phi_23 : 4;
75  unsigned int track_eta : 4;
76  unsigned int track_mode : 4;
77  unsigned int delta_phi_sign : 1;
78  unsigned int track_fr : 1;
79 
81  delta_phi_23(0),
82  track_eta(0),
83  track_mode(0),
84  delta_phi_sign(0),
85  track_fr(0) {};
86  pt_address(const unsigned& us) { this->operator=(us); }
87 
88  pt_address& operator=(const unsigned&);
89  unsigned toint() const;
90 
91  unsigned delta_phi() const; // for 2 stn track
92 } ptadd;
93 
95 typedef class local_phi_data
96 {
97  public:
98  unsigned short phi_local : 10;
99  unsigned short phi_bend_local : 6;
100 
102  phi_bend_local(0) {};
103  local_phi_data(const unsigned short& us) { this->operator=(us); }
104 
105  local_phi_data& operator=(const unsigned short& us);
106  unsigned short toint() const;
107 
108 } lclphidat;
109 
110 typedef class global_phi_data
111 {
112  public:
113  unsigned short global_phi : 12;
114  unsigned short spare : 4;
115 
117  spare(0) {};
118  global_phi_data(const unsigned short& us) { this->operator=(us); }
119 
120  global_phi_data& operator=(const unsigned short& us);
121  unsigned short toint() const;
122 
123 } gblphidat;
124 
125 typedef class global_eta_data
126 {
127  public:
128  unsigned short global_eta : 7;
129  unsigned short global_bend : 5;
130  unsigned short spare : 4;
131 
133  global_bend(0),
134  spare(0) {};
135  global_eta_data(const unsigned short& us) { this->operator=(us); }
136 
137  global_eta_data& operator=(const unsigned short& us);
138  unsigned short toint() const;
139 
140 } gbletadat;
141 
142 
143 typedef class pt_data
144 {
145  public:
146  unsigned short front_rank : 7;
147  unsigned short charge_valid_front : 1;
148  unsigned short rear_rank : 7;
149  unsigned short charge_valid_rear : 1;
150 
153  rear_rank(0),
154  charge_valid_rear(0) {};
155  pt_data(const unsigned short& us) { this->operator=(us); }
156 
157  pt_data& operator=(const unsigned short&);
158  unsigned short toint() const;
159 
160 } ptdat;
161 
162 #endif
unsigned short front_rank
unsigned toint() const
unsigned short toint() const
global_eta_address & operator=(const unsigned &u)
unsigned int delta_phi_23
unsigned short toint() const
local_phi_data(const unsigned short &us)
pt_data & operator=(const unsigned short &)
unsigned int track_mode
unsigned short charge_valid_rear
global_phi_address(const unsigned &u)
unsigned int track_fr
unsigned short rear_rank
class global_phi_address gblphiadd
pt_address & operator=(const unsigned &)
unsigned int delta_phi_sign
local_phi_address & operator=(const unsigned &u)
unsigned short charge_valid_front
local_phi_data & operator=(const unsigned short &us)
unsigned short toint() const
unsigned int track_eta
pt_data(const unsigned short &us)
global_phi_data & operator=(const unsigned short &us)
pt_address(const unsigned &us)
global_phi_address & operator=(const unsigned &u)
class pt_address ptadd
class pt_data ptdat
class global_phi_data gblphidat
class local_phi_address lclphiadd
class local_phi_data lclphidat
Data Types.
unsigned short phi_bend_local
global_eta_data(const unsigned short &us)
local_phi_address(const unsigned &u)
unsigned short phi_local
global_eta_data & operator=(const unsigned short &us)
global_phi_data(const unsigned short &us)
class global_eta_address gbletaadd
unsigned short global_bend
unsigned short toint() const
unsigned int delta_phi_12
global_eta_address(const unsigned &u)
class global_eta_data gbletadat
unsigned delta_phi() const