CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTrackFinderDataTypes.cc
Go to the documentation of this file.
2 
4 {
5  this->strip = ((1<<8)-1)&u;
6  this->clct_pattern = ((1<<3)-1)&(u>>8);
7  this->pattern_type = 1&(u>>11);
8  this->quality = ((1<<4)-1)&(u>>12);
9  this->lr = 1&(u>>16);
10 
11  return *this;
12 }
13 
15 {
16  this->phi_local = ((1<<10)-1)&u;
17  this->wire_group = ((1<<5)-1)&(u>>10);
18  this->cscid = ((1<<4)-1)&(u>>15);
19 
20  return *this;
21 }
22 
24 {
25  this->phi_bend = ((1<<6)-1)&u;
26  this->phi_local = ((1<<2)-1)&(u>>6);
27  this->wire_group = ((1<<7)-1)&(u>>8);
28  this->cscid = ((1<<4)-1)&(u>>15);
29 
30  return *this;
31 }
32 
33 pt_address& pt_address::operator=(const unsigned& u)
34 {
35  this->delta_phi_12 = ((1<<8)-1)&u;
36  this->delta_phi_23 = ((1<<4)-1)&(u>>8);
37  this->track_eta = ((1<<4)-1)&(u>>12);
38  this->track_mode = ((1<<4)-1)&(u>>16);
39  this->delta_phi_sign = ((1<<1)-1)&(u>>20);
40  this->track_fr = ((1<<1)-1)&(u>>21);
41 
42  return *this;
43 }
44 
45 local_phi_data& local_phi_data::operator=(const unsigned short& us)
46 {
47  this->phi_local = ((1<<10)-1)&us;
48  this->phi_bend_local = ((1<<6)-1)&(us>>10);
49 
50  return *this;
51 }
52 
53 global_phi_data& global_phi_data::operator=(const unsigned short& us)
54 {
55  this->global_phi = ((1<<12)-1)&us;
56 
57  return *this;
58 }
59 
60 global_eta_data& global_eta_data::operator=(const unsigned short& us)
61 {
62  this->global_eta = ((1<<7)-1)&us;
63  this->global_bend = ((1<<5)-1)&(us>>7);
64 
65  return *this;
66 }
67 
68 pt_data& pt_data::operator=(const unsigned short& us)
69 {
70  this->front_rank = ((1<<7)-1)&us;
71  this->charge_valid_front = ((1<<1)-1)&(us>>7);
72  this->rear_rank = ((1<<7)-1)&(us>>8);
73  this->charge_valid_rear = ((1<<1)-1)&(us>>15);
74 
75  return *this;
76 }
77 
78 unsigned short local_phi_data::toint() const
79 {
80  unsigned short us = 0;
81  us = (phi_local | (phi_bend_local << 10));
82  return us;
83 }
84 
85 unsigned short global_eta_data::toint() const
86 {
87  unsigned short us = 0;
88  us = (global_eta | (global_bend << 7));
89  return us;
90 }
91 
92 unsigned short global_phi_data::toint() const
93 {
94  unsigned short us = 0;
95  us = global_phi;
96  return us;
97 }
98 
99 unsigned short pt_data::toint() const
100 {
101  unsigned short us = 0;
102  us = front_rank | (charge_valid_front << 7) | (rear_rank << 8) | (charge_valid_rear << 15);
103  return us;
104 }
105 
106 unsigned local_phi_address::toint() const
107 {
108  unsigned u = 0;
109  u = strip | (clct_pattern << 8) | (pattern_type << 11) | (quality << 12) | (lr << 16);
110  return u;
111 }
112 
114 {
115  unsigned u = 0;
116  u = phi_bend | (phi_local << 6) | (wire_group << 8) | (cscid << 15);
117  return u;
118 }
119 
121 {
122  unsigned u = 0;
123  u = phi_local | (wire_group << 10) | (cscid << 15);
124  return u;
125 }
126 
127 unsigned pt_address::toint() const
128 {
129  unsigned u = 0;
130  u = delta_phi_12 | (delta_phi_23 << 8) | (track_eta << 12) | (track_mode << 16) | (delta_phi_sign << 20) | (track_fr << 21);
131  return u;
132 }
133 
134 unsigned pt_address::delta_phi() const
135 {
136  return ( delta_phi_12 | (delta_phi_23 << 8) );
137 }
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
pt_data & operator=(const unsigned short &)
unsigned int track_mode
unsigned short charge_valid_rear
unsigned int track_fr
unsigned short rear_rank
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
global_phi_data & operator=(const unsigned short &us)
global_phi_address & operator=(const unsigned &u)
unsigned short phi_bend_local
unsigned short phi_local
global_eta_data & operator=(const unsigned short &us)
unsigned short global_bend
unsigned short toint() const
unsigned int delta_phi_12
unsigned delta_phi() const