CMS 3D CMS Logo

EMTFTrackTools.cc
Go to the documentation of this file.
1 
3 
4 namespace l1t {
5 
6  void EMTFTrack::ImportSP( const emtf::SP _SP, int _sector) {
7 
8  EMTFTrack::set_sector ( _sector );
10  EMTFTrack::set_mode ( _SP.Mode() );
12  EMTFTrack::set_bx ( _SP.TBIN() - 3 );
13  EMTFTrack::set_pt_GMT ( _SP.Pt_GMT() );
18  EMTFTrack::set_charge ( (_SP.C() == 1) ? -1 : 1 ); // uGMT uses opposite of physical charge (to match pdgID)
19  EMTFTrack::set_charge_GMT ( _SP.C() );
21 
28 
29  } // End EMTFTrack::ImportSP
30 
31  // Calculates special chamber ID for track address sent to uGMT, using CSC_ID, subsector, neighbor, and station
32  int calc_uGMT_chamber( int _csc_ID, int _subsector, int _neighbor, int _station) {
33  if (_station == 1) {
34  if ( _csc_ID == 3 && _neighbor == 1 && _subsector == 2 ) return 1;
35  else if ( _csc_ID == 6 && _neighbor == 1 && _subsector == 2 ) return 2;
36  else if ( _csc_ID == 9 && _neighbor == 1 && _subsector == 2 ) return 3;
37  else if ( _csc_ID == 3 && _neighbor == 0 && _subsector == 2 ) return 4;
38  else if ( _csc_ID == 6 && _neighbor == 0 && _subsector == 2 ) return 5;
39  else if ( _csc_ID == 9 && _neighbor == 0 && _subsector == 2 ) return 6;
40  else return 0;
41  }
42  else {
43  if ( _csc_ID == 3 && _neighbor == 1 ) return 1;
44  else if ( _csc_ID == 9 && _neighbor == 1 ) return 2;
45  else if ( _csc_ID == 3 && _neighbor == 0 ) return 3;
46  else if ( _csc_ID == 9 && _neighbor == 0 ) return 4;
47  else return 0;
48  }
49  }
50 
51  // Unpacks pT LUT address into dPhi, dTheta, CLCT, FR, eta, and mode
52  // Based on L1Trigger/L1TMuonEndCap/interface/PtAssignment.h
53  // "Mode" here is the true mode, not the inverted mode used in PtAssignment.h
54  void EMTFTrack::ImportPtLUT(int _mode, unsigned long _address) {
55  if (_mode == 12) { // mode_inv == 3
56  EMTFTrack::set_dPhi_12 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
57  EMTFTrack::set_dPhi_12 (dPhi_12 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
58  EMTFTrack::set_dTheta_12 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
59  EMTFTrack::set_clct_1 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
60  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
61  EMTFTrack::set_clct_2 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
62  EMTFTrack::set_clct_2 (clct_2 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
63  EMTFTrack::set_fr_1 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
64  EMTFTrack::set_fr_2 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
65  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
66  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
67  }
68  else if (_mode == 10) { // mode_inv == 5
69  EMTFTrack::set_dPhi_13 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
70  EMTFTrack::set_dPhi_13 (dPhi_13 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
71  EMTFTrack::set_dTheta_13 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
72  EMTFTrack::set_clct_1 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
73  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
74  EMTFTrack::set_clct_3 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
75  EMTFTrack::set_clct_3 (clct_3 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
76  EMTFTrack::set_fr_1 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
77  EMTFTrack::set_fr_3 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
78  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
79  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
80  }
81  else if (_mode == 9) { // mode_inv == 9
82  EMTFTrack::set_dPhi_14 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
83  EMTFTrack::set_dPhi_14 (dPhi_14 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
84  EMTFTrack::set_dTheta_14 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
85  EMTFTrack::set_clct_1 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
86  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
87  EMTFTrack::set_clct_4 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
88  EMTFTrack::set_clct_4 (clct_4 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
89  EMTFTrack::set_fr_1 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
90  EMTFTrack::set_fr_4 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
91  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
92  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
93  }
94  else if (_mode == 6) { // mode_inv = 6
95  EMTFTrack::set_dPhi_23 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
96  EMTFTrack::set_dPhi_23 (dPhi_23 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
97  EMTFTrack::set_dTheta_23 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
98  EMTFTrack::set_clct_2 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
99  EMTFTrack::set_clct_2 (clct_2 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
100  EMTFTrack::set_clct_3 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
101  EMTFTrack::set_clct_3 (clct_3 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
102  EMTFTrack::set_fr_2 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
103  EMTFTrack::set_fr_3 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
104  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
105  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
106  }
107  else if (_mode == 5) { // mode_inv == 10
108  EMTFTrack::set_dPhi_24 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
109  EMTFTrack::set_dPhi_24 (dPhi_24 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
110  EMTFTrack::set_dTheta_24 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
111  EMTFTrack::set_clct_2 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
112  EMTFTrack::set_clct_2 (clct_2 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
113  EMTFTrack::set_clct_4 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
114  EMTFTrack::set_clct_4 (clct_4 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
115  EMTFTrack::set_fr_2 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
116  EMTFTrack::set_fr_4 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
117  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
118  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
119  }
120  else if (_mode == 3) { // mode_inv == 12
121  EMTFTrack::set_dPhi_34 ( ( _address >> (0) ) & ( (1 << 9) - 1) );
122  EMTFTrack::set_dPhi_34 (dPhi_34 * (( ( _address >> (0+9) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
123  EMTFTrack::set_dTheta_34 ( ( _address >> (0+9+1) ) & ( (1 << 3) - 1) );
124  EMTFTrack::set_clct_3 ( ( _address >> (0+9+1+3) ) & ( (1 << 2) - 1) );
125  EMTFTrack::set_clct_3 (clct_3 * ( ( ( _address >> (0+9+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
126  EMTFTrack::set_clct_4 ( ( _address >> (0+9+1+3+2+1) ) & ( (1 << 2) - 1) );
127  EMTFTrack::set_clct_4 (clct_4 * ( ( ( _address >> (0+9+1+3+2+1+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
128  EMTFTrack::set_fr_3 ( ( _address >> (0+9+1+3+2+1+2+1) ) & ( (1 << 1) - 1) );
129  EMTFTrack::set_fr_4 ( ( _address >> (0+9+1+3+2+1+2+1+1) ) & ( (1 << 1) - 1) );
130  EMTFTrack::set_eta_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1) ) & ( (1 << 5) - 1) );
131  EMTFTrack::set_mode_LUT ( ( _address >> (0+9+1+3+2+1+2+1+1+1+5) ) & ( (1 << 4) - 1) );
132  }
133  else if (_mode == 14) { // mode_inv == 7
134  EMTFTrack::set_dPhi_12 ( ( _address >> (0) ) & ( (1 << 7) - 1) );
135  EMTFTrack::set_dPhi_23 ( ( _address >> (0+7) ) & ( (1 << 5) - 1) );
136  EMTFTrack::set_dPhi_12 (dPhi_12 * (( ( _address >> (0+7+5) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
137  EMTFTrack::set_dPhi_23 (dPhi_23 * (( ( _address >> (0+7+5+1) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
138  EMTFTrack::set_dTheta_13 ( ( _address >> (0+7+5+1+1) ) & ( (1 << 3) - 1) );
139  EMTFTrack::set_clct_1 ( ( _address >> (0+7+5+1+1+3) ) & ( (1 << 2) - 1) );
140  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+7+5+1+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
141  EMTFTrack::set_fr_1 ( ( _address >> (0+7+5+1+1+3+2+1) ) & ( (1 << 1) - 1) );
142  EMTFTrack::set_eta_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1) ) & ( (1 << 5) - 1) );
143  EMTFTrack::set_mode_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1+5) ) & ( (1 << 4) - 1) );
144  }
145  else if (_mode == 13) { // mode_inv == 11
146  EMTFTrack::set_dPhi_12 ( ( _address >> (0) ) & ( (1 << 7) - 1) );
147  EMTFTrack::set_dPhi_24 ( ( _address >> (0+7) ) & ( (1 << 5) - 1) );
148  EMTFTrack::set_dPhi_12 (dPhi_12 * (( ( _address >> (0+7+5) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
149  EMTFTrack::set_dPhi_24 (dPhi_24 * (( ( _address >> (0+7+5+1) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
150  EMTFTrack::set_dTheta_14 ( ( _address >> (0+7+5+1+1) ) & ( (1 << 3) - 1) );
151  EMTFTrack::set_clct_1 ( ( _address >> (0+7+5+1+1+3) ) & ( (1 << 2) - 1) );
152  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+7+5+1+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
153  EMTFTrack::set_fr_1 ( ( _address >> (0+7+5+1+1+3+2+1) ) & ( (1 << 1) - 1) );
154  EMTFTrack::set_eta_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1) ) & ( (1 << 5) - 1) );
155  EMTFTrack::set_mode_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1+5) ) & ( (1 << 4) - 1) );
156  }
157  else if (_mode == 11) {
158  EMTFTrack::set_dPhi_13 ( ( _address >> (0) ) & ( (1 << 7) - 1) );
159  EMTFTrack::set_dPhi_34 ( ( _address >> (0+7) ) & ( (1 << 5) - 1) );
160  EMTFTrack::set_dPhi_13 (dPhi_13 * (( ( _address >> (0+7+5) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
161  EMTFTrack::set_dPhi_34 (dPhi_34 * (( ( _address >> (0+7+5+1) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
162  EMTFTrack::set_dTheta_14 ( ( _address >> (0+7+5+1+1) ) & ( (1 << 3) - 1) );
163  EMTFTrack::set_clct_1 ( ( _address >> (0+7+5+1+1+3) ) & ( (1 << 2) - 1) );
164  EMTFTrack::set_clct_1 (clct_1 * ( ( ( _address >> (0+7+5+1+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
165  EMTFTrack::set_fr_1 ( ( _address >> (0+7+5+1+1+3+2+1) ) & ( (1 << 1) - 1) );
166  EMTFTrack::set_eta_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1) ) & ( (1 << 5) - 1) );
167  EMTFTrack::set_mode_LUT ( ( _address >> (0+7+5+1+1+3+2+1+1+5) ) & ( (1 << 4) - 1) );
168  }
169  else if (_mode == 7) { // mode_inv == 14
170  EMTFTrack::set_dPhi_23 ( ( _address >> (0) ) & ( (1 << 7) - 1) );
171  EMTFTrack::set_dPhi_34 ( ( _address >> (0+7) ) & ( (1 << 6) - 1) );
172  EMTFTrack::set_dPhi_23 (dPhi_23 * (( ( _address >> (0+7+6) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
173  EMTFTrack::set_dPhi_34 (dPhi_34 * (( ( _address >> (0+7+6+1) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
174  EMTFTrack::set_dTheta_24 ( ( _address >> (0+7+6+1+1) ) & ( (1 << 3) - 1) );
175  EMTFTrack::set_clct_2 ( ( _address >> (0+7+5+1+1+3) ) & ( (1 << 2) - 1) );
176  EMTFTrack::set_clct_2 (clct_2 * ( ( ( _address >> (0+7+6+1+1+3+2) ) & ( (1 << 1) - 1) ) == 0 ? -1 : 1) );
177  EMTFTrack::set_eta_LUT ( ( _address >> (0+7+6+1+1+3+2+1) ) & ( (1 << 5) - 1) );
178  EMTFTrack::set_mode_LUT ( ( _address >> (0+7+6+1+1+3+2+1+5) ) & ( (1 << 4) - 1) );
179  }
180  else if (_mode == 15) { // mode_inv == 15
181  EMTFTrack::set_dPhi_12 ( ( _address >> (0) ) & ( (1 << 7) - 1) );
182  EMTFTrack::set_dPhi_23 ( ( _address >> (0+7) ) & ( (1 << 5) - 1) );
183  EMTFTrack::set_dPhi_34 ( ( _address >> (0+7+5) ) & ( (1 << 6) - 1) );
184  EMTFTrack::set_dPhi_23 (dPhi_23 * (( ( _address >> (0+7+5+6) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
185  EMTFTrack::set_dPhi_34 (dPhi_34 * (( ( _address >> (0+7+5+6+1) ) & ( (1 << 1) - 1 ) ) == 0 ? -1 : 1) );
186  EMTFTrack::set_fr_1 ( ( _address >> (0+7+5+6+1+1) ) & ( (1 << 1) - 1) );
187  EMTFTrack::set_eta_LUT ( ( _address >> (0+7+5+6+1+1+1) ) & ( (1 << 5) - 1) );
188  EMTFTrack::set_mode_LUT ( ( _address >> (0+7+5+6+1+1+1+5) ) & ( (1 << 4) - 1) );
189  }
190 
191  } // End function: void EMTFTrack::ImportPtLUT
192 
194 
195  EMTFTrack thisTrack;
196  for (int iHit = 0; iHit < NumHitsExtra(); iHit++) {
197  thisTrack.push_Hit( _HitsExtra.at(iHit).CreateEMTFHit() );
198  }
199 
200  thisTrack.set_endcap ( Endcap() );
201  thisTrack.set_sector ( Sector() );
202  thisTrack.set_sector_GMT ( Sector_GMT() );
203  thisTrack.set_sector_index ( Sector_index() );
204  thisTrack.set_mode ( Mode() );
205  thisTrack.set_mode_LUT ( Mode_LUT() );
206  thisTrack.set_quality ( Quality() );
207  thisTrack.set_bx ( BX() );
208  thisTrack.set_pt ( Pt() );
209  thisTrack.set_pt_GMT ( Pt_GMT() );
210  thisTrack.set_pt_LUT_addr ( Pt_LUT_addr() );
211  thisTrack.set_eta ( Eta() );
212  thisTrack.set_eta_GMT ( Eta_GMT() );
213  thisTrack.set_eta_LUT ( Eta_LUT() );
214  thisTrack.set_phi_loc_int ( Phi_loc_int() );
215  thisTrack.set_phi_loc_deg ( Phi_loc_deg() );
216  thisTrack.set_phi_loc_rad ( Phi_loc_rad() );
217  thisTrack.set_phi_GMT ( Phi_GMT() );
218  thisTrack.set_phi_glob_deg ( Phi_glob_deg() );
219  thisTrack.set_phi_glob_rad ( Phi_glob_rad() );
220  thisTrack.set_charge ( Charge() );
221  thisTrack.set_charge_GMT ( Charge_GMT() );
222  thisTrack.set_charge_valid ( Charge_valid() );
223  thisTrack.set_dPhi_12 ( DPhi_12() );
224  thisTrack.set_dPhi_13 ( DPhi_13() );
225  thisTrack.set_dPhi_14 ( DPhi_14() );
226  thisTrack.set_dPhi_23 ( DPhi_23() );
227  thisTrack.set_dPhi_24 ( DPhi_24() );
228  thisTrack.set_dPhi_34 ( DPhi_34() );
229  thisTrack.set_dTheta_12 ( DTheta_12() );
230  thisTrack.set_dTheta_13 ( DTheta_13() );
231  thisTrack.set_dTheta_14 ( DTheta_14() );
232  thisTrack.set_dTheta_23 ( DTheta_23() );
233  thisTrack.set_dTheta_24 ( DTheta_24() );
234  thisTrack.set_dTheta_34 ( DTheta_34() );
235  thisTrack.set_clct_1 ( CLCT_1() );
236  thisTrack.set_clct_2 ( CLCT_2() );
237  thisTrack.set_clct_3 ( CLCT_3() );
238  thisTrack.set_clct_4 ( CLCT_4() );
239  thisTrack.set_fr_1 ( FR_1() );
240  thisTrack.set_fr_2 ( FR_2() );
241  thisTrack.set_fr_3 ( FR_3() );
242  thisTrack.set_fr_4 ( FR_4() );
243  thisTrack.set_track_num ( Track_num() );
244  thisTrack.set_has_neighbor ( Has_neighbor() );
245  thisTrack.set_all_neighbor ( All_neighbor() );
246 
247  return thisTrack;
248 
249  } // End EMTFTrackExtra::CreateEMTFTrack
250 
251 
252 } // End namespace l1t
void set_mode(int bits)
Definition: EMTFTrack.h:52
int CLCT_2() const
Definition: EMTFTrack.h:132
void set_pt_GMT(int bits)
Definition: EMTFTrack.h:57
int CLCT_4() const
Definition: EMTFTrack.h:134
void set_fr_1(int bits)
Definition: EMTFTrack.h:87
int CLCT_3() const
Definition: EMTFTrack.h:133
void set_phi_GMT(int bits)
Definition: EMTFTrack.h:65
void set_dTheta_13(int bits)
Definition: EMTFTrack.h:78
float Phi_loc_rad() const
Definition: EMTFTrack.h:112
int FR_1() const
Definition: EMTFTrack.h:135
void set_bx(int bits)
Definition: EMTFTrack.h:55
void set_quality(int bits)
Definition: EMTFTrack.h:54
int Sector_index() const
Definition: EMTFTrack.h:99
void set_phi_loc_int(int bits)
Definition: EMTFTrack.h:62
int Phi_full() const
Definition: SP.h:59
int Mode_LUT() const
Definition: EMTFTrack.h:101
void set_sector(int bits)
Definition: EMTFTrack.h:49
int Endcap() const
Definition: EMTFTrack.h:96
void set_dPhi_14(int bits)
Definition: EMTFTrack.h:73
int FR_4() const
Definition: EMTFTrack.h:138
float Phi_loc_deg() const
Definition: EMTFTrack.h:111
float Pt() const
Definition: EMTFTrack.h:104
float calc_phi_loc_rad(int bits)
void set_dPhi_24(int bits)
Definition: EMTFTrack.h:75
void set_charge_GMT(int bits)
Definition: EMTFTrack.h:69
void set_clct_3(int bits)
Definition: EMTFTrack.h:85
void set_charge(int bits)
Definition: EMTFTrack.h:68
int Sector() const
Definition: EMTFTrack.h:97
int calc_uGMT_chamber(int _csc_ID, int _subsector, int _neighbor, int _station)
int Mode() const
Definition: SP.h:67
void set_dTheta_23(int bits)
Definition: EMTFTrack.h:80
int Charge() const
Definition: EMTFTrack.h:116
int TBIN() const
Definition: SP.h:79
delete x;
Definition: CaloConfig.h:22
void push_Hit(EMTFHit bits)
Definition: EMTFTrack.h:38
void set_charge_valid(int bits)
Definition: EMTFTrack.h:70
int All_neighbor() const
Definition: EMTFTrack.h:141
void ImportSP(const emtf::SP _SP, int _sector)
void set_pt_LUT_addr(unsigned long bits)
Definition: EMTFTrack.h:58
void set_dPhi_34(int bits)
Definition: EMTFTrack.h:76
int calc_sector_GMT(int _sector)
void set_clct_1(int bits)
Definition: EMTFTrack.h:83
int Charge_GMT() const
Definition: EMTFTrack.h:117
void set_pt(float val)
Definition: EMTFTrack.h:56
int Sector_GMT() const
Definition: EMTFTrack.h:98
int Charge_valid() const
Definition: EMTFTrack.h:118
float Phi_glob_deg() const
Definition: EMTFTrack.h:114
int Phi_GMT() const
Definition: SP.h:65
void ImportPtLUT(int _mode, unsigned long _address)
int Pt_GMT() const
Definition: EMTFTrack.h:105
int VC() const
Definition: SP.h:60
float calc_phi_loc_deg(int bits)
int Quality() const
Definition: EMTFTrack.h:102
void set_eta_LUT(int bits)
Definition: EMTFTrack.h:61
float phi_loc_rad
Definition: EMTFTrack.h:166
int Phi_loc_int() const
Definition: EMTFTrack.h:110
int CLCT_1() const
Definition: EMTFTrack.h:131
void set_clct_2(int bits)
Definition: EMTFTrack.h:84
void set_dPhi_23(int bits)
Definition: EMTFTrack.h:74
void set_sector_index(int bits)
Definition: EMTFTrack.h:51
int DTheta_24() const
Definition: EMTFTrack.h:129
float Eta() const
Definition: EMTFTrack.h:107
void set_all_neighbor(int bits)
Definition: EMTFTrack.h:93
int DTheta_23() const
Definition: EMTFTrack.h:128
void set_track_num(int bits)
Definition: EMTFTrack.h:91
int Track_num() const
Definition: EMTFTrack.h:139
void set_phi_glob_rad(float val)
Definition: EMTFTrack.h:67
float phi_loc_deg
Definition: EMTFTrack.h:165
int DTheta_13() const
Definition: EMTFTrack.h:126
int DPhi_12() const
Definition: EMTFTrack.h:119
void set_mode_LUT(int bits)
Definition: EMTFTrack.h:53
void set_eta_GMT(int bits)
Definition: EMTFTrack.h:60
void set_eta(float val)
Definition: EMTFTrack.h:59
void set_dPhi_12(int bits)
Definition: EMTFTrack.h:71
int Phi_GMT() const
Definition: EMTFTrack.h:113
void set_has_neighbor(int bits)
Definition: EMTFTrack.h:92
unsigned long Pt_LUT_addr() const
Definition: EMTFTrack.h:106
int Pt_GMT() const
Definition: SP.h:69
float calc_phi_glob_rad(float loc, int sect)
int DPhi_23() const
Definition: EMTFTrack.h:122
void set_fr_3(int bits)
Definition: EMTFTrack.h:89
int DPhi_24() const
Definition: EMTFTrack.h:123
void set_endcap(int bits)
Definition: EMTFTrack.h:48
float calc_eta(int bits)
int DPhi_13() const
Definition: EMTFTrack.h:120
void set_clct_4(int bits)
Definition: EMTFTrack.h:86
float calc_pt(int bits)
void set_dTheta_34(int bits)
Definition: EMTFTrack.h:82
int Eta_GMT() const
Definition: SP.h:68
int BX() const
Definition: EMTFTrack.h:103
int Eta_LUT() const
Definition: EMTFTrack.h:109
void set_phi_loc_rad(float val)
Definition: EMTFTrack.h:64
int Has_neighbor() const
Definition: EMTFTrack.h:140
void set_dTheta_14(int bits)
Definition: EMTFTrack.h:79
void set_fr_4(int bits)
Definition: EMTFTrack.h:90
int C() const
Definition: SP.h:58
float Phi_glob_rad() const
Definition: EMTFTrack.h:115
int Mode() const
Definition: EMTFTrack.h:100
void set_dTheta_12(int bits)
Definition: EMTFTrack.h:77
void set_sector_GMT(int bits)
Definition: EMTFTrack.h:50
EMTFTrack CreateEMTFTrack()
void set_dTheta_24(int bits)
Definition: EMTFTrack.h:81
void set_dPhi_13(int bits)
Definition: EMTFTrack.h:72
float calc_phi_glob_deg(float loc, int sect)
void set_phi_loc_deg(float val)
Definition: EMTFTrack.h:63
void set_fr_2(int bits)
Definition: EMTFTrack.h:88
unsigned long Pt_LUT_addr() const
Definition: SP.h:84
int FR_2() const
Definition: EMTFTrack.h:136
int Eta_GMT() const
Definition: EMTFTrack.h:108
int DPhi_14() const
Definition: EMTFTrack.h:121
void set_phi_glob_deg(float val)
Definition: EMTFTrack.h:66
int Quality_GMT() const
Definition: SP.h:64
int FR_3() const
Definition: EMTFTrack.h:137
int DTheta_12() const
Definition: EMTFTrack.h:125
int DTheta_14() const
Definition: EMTFTrack.h:127
int DPhi_34() const
Definition: EMTFTrack.h:124
int DTheta_34() const
Definition: EMTFTrack.h:130