CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
CSCTFSPCoreLogic.cc
Go to the documentation of this file.
5 
7 #include <iostream>
8 
9 //vpp_generated CSCTFSPCoreLogic::sp_;
18 
19 
20 // takes a trigger container and loads the first n bx of data into io_
22  const unsigned& endcap, const unsigned& sector,
23  const int& minBX, const int& maxBX)
24 {
25  io_.clear();
26  runme = 0;
27  io_.resize(maxBX - minBX + 2);
28  unsigned relative_bx = 0;
29 
30  for(int bx = minBX; bx <= maxBX; ++bx)
31  {
32  for(int st = CSCDetId::minStationId(); st <= CSCDetId::maxStationId() + 1; ++st) // 1 - 5 for DT stubs
33  {
34  std::vector<csctf::TrackStub> stub_list;
35  std::vector<csctf::TrackStub>::const_iterator stubi;
36  if(st == 1)
37  {
38  stub_list = theStubs.get(endcap, st, sector, 1, bx);
39  std::vector<csctf::TrackStub> stub_list2 = theStubs.get(endcap, st, sector, 2, bx);
40  stub_list.insert(stub_list.end(), stub_list2.begin(), stub_list2.end());
41  }
42  else stub_list = theStubs.get(endcap, st, sector, 0, bx);
43 
44  for(stubi = stub_list.begin(); stubi != stub_list.end(); stubi++)
45  {
46  runme |= stubi->isValid();
47  switch(st)
48  {
49  case 1:
50  switch(stubi->getMPCLink())
51  {
52  case 1:
53  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 1)
54  {
55  io_[relative_bx+1].me1aVp = stubi->isValid();
56  io_[relative_bx+1].me1aQp = stubi->getQuality();
57  io_[relative_bx+1].me1aEtap = stubi->etaPacked();
58  io_[relative_bx+1].me1aPhip = stubi->phiPacked();
59  io_[relative_bx+1].me1aAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
60  io_[relative_bx+1].me1aCSCIdp = stubi->cscid();
61  io_[relative_bx+1].me1aCLCTp = stubi->getCLCTPattern();
62  }
63  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 2)
64  {
65  io_[relative_bx+1].me1dVp = stubi->isValid();
66  io_[relative_bx+1].me1dQp = stubi->getQuality();
67  io_[relative_bx+1].me1dEtap = stubi->etaPacked();
68  io_[relative_bx+1].me1dPhip = stubi->phiPacked();
69  io_[relative_bx+1].me1dAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
70  io_[relative_bx+1].me1dCSCIdp = stubi->cscid();
71  io_[relative_bx+1].me1dCLCTp = stubi->getCLCTPattern();
72  }
73  break;
74  case 2:
75  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 1)
76  {
77  io_[relative_bx+1].me1bVp = stubi->isValid();
78  io_[relative_bx+1].me1bQp = stubi->getQuality();
79  io_[relative_bx+1].me1bEtap = stubi->etaPacked();
80  io_[relative_bx+1].me1bPhip = stubi->phiPacked();
81  io_[relative_bx+1].me1bAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
82  io_[relative_bx+1].me1bCSCIdp = stubi->cscid();
83  io_[relative_bx+1].me1bCLCTp = stubi->getCLCTPattern();
84  }
85  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 2)
86  {
87  io_[relative_bx+1].me1eVp = stubi->isValid();
88  io_[relative_bx+1].me1eQp = stubi->getQuality();
89  io_[relative_bx+1].me1eEtap = stubi->etaPacked();
90  io_[relative_bx+1].me1ePhip = stubi->phiPacked();
91  io_[relative_bx+1].me1eAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
92  io_[relative_bx+1].me1eCSCIdp = stubi->cscid();
93  io_[relative_bx+1].me1eCLCTp = stubi->getCLCTPattern();
94  }
95  break;
96  case 3:
97  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 1)
98  {
99  io_[relative_bx+1].me1cVp = stubi->isValid();
100  io_[relative_bx+1].me1cQp = stubi->getQuality();
101  io_[relative_bx+1].me1cEtap = stubi->etaPacked();
102  io_[relative_bx+1].me1cPhip = stubi->phiPacked();
103  io_[relative_bx+1].me1cAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
104  io_[relative_bx+1].me1cCSCIdp = stubi->cscid();
105  io_[relative_bx+1].me1cCLCTp = stubi->getCLCTPattern();
106  }
107  if(CSCTriggerNumbering::triggerSubSectorFromLabels(CSCDetId(stubi->getDetId().rawId())) == 2)
108  {
109  io_[relative_bx+1].me1fVp = stubi->isValid();
110  io_[relative_bx+1].me1fQp = stubi->getQuality();
111  io_[relative_bx+1].me1fEtap = stubi->etaPacked();
112  io_[relative_bx+1].me1fPhip = stubi->phiPacked();
113  io_[relative_bx+1].me1fAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
114  io_[relative_bx+1].me1fCSCIdp = stubi->cscid();
115  io_[relative_bx+1].me1fCLCTp = stubi->getCLCTPattern();
116  }
117  break;
118  default:
119  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: MPC LINK " << stubi->getMPCLink()
120  << " NOT IN RANGE [1,3]\n";
121  };
122  break;
123  case 2:
124  switch(stubi->getMPCLink())
125  {
126  case 1:
127  io_[relative_bx+1].me2aVp = stubi->isValid();
128  io_[relative_bx+1].me2aQp = stubi->getQuality();
129  io_[relative_bx+1].me2aEtap = stubi->etaPacked();
130  io_[relative_bx+1].me2aPhip = stubi->phiPacked();
131  io_[relative_bx+1].me2aAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
132  break;
133  case 2:
134  io_[relative_bx+1].me2bVp = stubi->isValid();
135  io_[relative_bx+1].me2bQp = stubi->getQuality();
136  io_[relative_bx+1].me2bEtap = stubi->etaPacked();
137  io_[relative_bx+1].me2bPhip = stubi->phiPacked();
138  io_[relative_bx+1].me2bAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
139  break;
140  case 3:
141  io_[relative_bx+1].me2cVp = stubi->isValid();
142  io_[relative_bx+1].me2cQp = stubi->getQuality();
143  io_[relative_bx+1].me2cEtap = stubi->etaPacked();
144  io_[relative_bx+1].me2cPhip = stubi->phiPacked();
145  io_[relative_bx+1].me2cAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
146  break;
147  default:
148  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: MPC LINK " << stubi->getMPCLink()
149  << " NOT IN RANGE [1,3]\n";
150  };
151  break;
152  case 3:
153  switch(stubi->getMPCLink())
154  {
155  case 1:
156  io_[relative_bx+1].me3aVp = stubi->isValid();
157  io_[relative_bx+1].me3aQp = stubi->getQuality();
158  io_[relative_bx+1].me3aEtap = stubi->etaPacked();
159  io_[relative_bx+1].me3aPhip = stubi->phiPacked();
160  io_[relative_bx+1].me3aAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
161  break;
162  case 2:
163  io_[relative_bx+1].me3bVp = stubi->isValid();
164  io_[relative_bx+1].me3bQp = stubi->getQuality();
165  io_[relative_bx+1].me3bEtap = stubi->etaPacked();
166  io_[relative_bx+1].me3bPhip = stubi->phiPacked();
167  io_[relative_bx+1].me3bAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
168  break;
169  case 3:
170  io_[relative_bx+1].me3cVp = stubi->isValid();
171  io_[relative_bx+1].me3cQp = stubi->getQuality();
172  io_[relative_bx+1].me3cEtap = stubi->etaPacked();
173  io_[relative_bx+1].me3cPhip = stubi->phiPacked();
174  io_[relative_bx+1].me3cAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
175  break;
176  default:
177  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: MPC LINK " << stubi->getMPCLink()
178  << " NOT IN RANGE [1,3]\n";
179  };
180  break;
181  case 4:
182  switch(stubi->getMPCLink())
183  {
184  case 1:
185  io_[relative_bx+1].me4aVp = stubi->isValid();
186  io_[relative_bx+1].me4aQp = stubi->getQuality();
187  io_[relative_bx+1].me4aEtap = stubi->etaPacked();
188  io_[relative_bx+1].me4aPhip = stubi->phiPacked();
189  io_[relative_bx+1].me4aAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
190  break;
191  case 2:
192  io_[relative_bx+1].me4bVp = stubi->isValid();
193  io_[relative_bx+1].me4bQp = stubi->getQuality();
194  io_[relative_bx+1].me4bEtap = stubi->etaPacked();
195  io_[relative_bx+1].me4bPhip = stubi->phiPacked();
196  io_[relative_bx+1].me4bAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
197  break;
198  case 3:
199  io_[relative_bx+1].me4cVp = stubi->isValid();
200  io_[relative_bx+1].me4cQp = stubi->getQuality();
201  io_[relative_bx+1].me4cEtap = stubi->etaPacked();
202  io_[relative_bx+1].me4cPhip = stubi->phiPacked();
203  io_[relative_bx+1].me4cAmp = (stubi->getQuality() == 1 || stubi->getQuality() == 2);
204  break;
205  default:
206  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: MPC LINK " << stubi->getMPCLink()
207  << " NOT IN RANGE [1,3]\n";
208  };
209  break;
210  case 5:
211  // We need to put the DT stubs 1 BX ahead of the CSC ones for the TF firmware
212  //std::cout << "DT Stub at bx: " << relative_bx << std::endl;
213  switch(stubi->getMPCLink())
214  {
215  case 1:
216  if (this->GetSPFirmwareVersion() < 20100629) {
217  // introducing the bug which was causing only even DT qualities
218  // to get accepted
219  if(stubi->getQuality()%2==1)
220  {
221  //io_[relative_bx].mb1aVp = stubi->isValid();
222  io_[relative_bx].mb1aVp = stubi->getStrip();
223  io_[relative_bx].mb1aQp = stubi->getQuality();
224  io_[relative_bx].mb1aPhip = stubi->phiPacked();
225  io_[relative_bx].mb1aBendp= stubi->getBend();
226  }
227  } else {
228  io_[relative_bx].mb1aVp = stubi->getStrip();
229  io_[relative_bx].mb1aQp = stubi->getQuality();
230  io_[relative_bx].mb1aPhip = stubi->phiPacked();
231  io_[relative_bx].mb1aBendp= stubi->getBend();
232  }
233  break;
234  case 2:
235  if (this->GetSPFirmwareVersion() < 20100629) {
236  // introducing the bug which was causing only even DT qualities
237  // to get accepted
238  if(stubi->getQuality()%2==1)
239  {
240  //io_[relative_bx].mb1aVp = stubi->isValid();
241  io_[relative_bx].mb1bVp = stubi->getStrip();
242  io_[relative_bx].mb1bQp = stubi->getQuality();
243  io_[relative_bx].mb1bPhip = stubi->phiPacked();
244  io_[relative_bx].mb1bBendp= stubi->getBend();
245  }
246  } else {
247  io_[relative_bx].mb1bVp = stubi->getStrip();
248  io_[relative_bx].mb1bQp = stubi->getQuality();
249  io_[relative_bx].mb1bPhip = stubi->phiPacked();
250  io_[relative_bx].mb1bBendp= stubi->getBend();
251  }
252  break;
253  /*case 3:
254  io_[relative_bx].mb1cVp = stubi->isValid();
255  io_[relative_bx].mb1cQp = stubi->getQuality();
256  io_[relative_bx].mb1cPhip = stubi->phiPacked();
257  break;
258  case 4:
259  io_[relative_bx].mb1dVp = stubi->isValid();
260  io_[relative_bx].mb1dQp = stubi->getQuality();
261  io_[relative_bx].mb1dPhip = stubi->phiPacked();
262  break;*/
263  default:
264  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: DT LINK " << stubi->getMPCLink()
265  << " NOT IN RANGE [1,4]\n";
266  }
267  break;
268  default:
269  edm::LogWarning("CSCTFSPCoreLogic::loadData()") << "SERIOUS ERROR: STATION " << st << " NOT IN RANGE [1,5]\n";
270  };
271  }
272  }
273  ++relative_bx;
274  }
275 }
276 
277 // Here we should assume the loadData() has been called...
278 // But in reality you don't need to.
279 bool CSCTFSPCoreLogic::run(const unsigned& endcap, const unsigned& sector, const unsigned& latency,
280  const unsigned& etamin1, const unsigned& etamin2, const unsigned& etamin3, const unsigned& etamin4,
281  const unsigned& etamin5, const unsigned& etamin6, const unsigned& etamin7, const unsigned& etamin8,
282  const unsigned& etamax1, const unsigned& etamax2, const unsigned& etamax3, const unsigned& etamax4,
283  const unsigned& etamax5, const unsigned& etamax6, const unsigned& etamax7, const unsigned& etamax8,
284  const unsigned& etawin1, const unsigned& etawin2, const unsigned& etawin3,
285  const unsigned& etawin4, const unsigned& etawin5, const unsigned& etawin6, const unsigned& etawin7,
286  const unsigned& mindphip, const unsigned& mindetap,
287  const unsigned& mindeta12_accp,
288  const unsigned& maxdeta12_accp, const unsigned& maxdphi12_accp,
289  const unsigned& mindeta13_accp,
290  const unsigned& maxdeta13_accp, const unsigned& maxdphi13_accp,
291  const unsigned& mindeta112_accp,
292  const unsigned& maxdeta112_accp, const unsigned& maxdphi112_accp,
293  const unsigned& mindeta113_accp,
294  const unsigned& maxdeta113_accp, const unsigned& maxdphi113_accp,
295  const unsigned& mindphip_halo, const unsigned& mindetap_halo,
296  const unsigned& straightp, const unsigned& curvedp,
297  const unsigned& mbaPhiOff, const unsigned& mbbPhiOff,
298  const unsigned& m_extend_length,
299  const unsigned& m_allowALCTonly, const unsigned& m_allowCLCTonly,
300  const unsigned& m_preTrigger, const unsigned& m_widePhi,
301  const int& minBX, const int& maxBX)
302 {
303  mytracks.clear();
304 
305  int train_length = io_.size();
306  int bx = 0;
307  io_.resize(train_length + latency);
308  std::vector<SPio>::iterator io;
309 
310  // run over enough clock cycles to get tracks from input stubs.
311  for( io = io_.begin(); io != io_.end() && runme; io++)
312  {
313 
314 
315  switch(this->GetCoreFirmwareVersion()) {
316  case 20100122:
318  (
319  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp,
320  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp,
321  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp,
322 
323  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp,
324  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp,
325  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp,
326 
327  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
328  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
329  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
330 
331  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
332  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
333  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
334 
335  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
336  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
337  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
338 
339  io->mb1aVp, io->mb1aQp, io->mb1aPhip,
340  io->mb1bVp, io->mb1bQp, io->mb1bPhip,
341  io->mb1cVp, io->mb1cQp, io->mb1cPhip,
342  io->mb1dVp, io->mb1dQp, io->mb1dPhip,
343 
344  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
345  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
346  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
347 
348  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
349  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
350  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
351 
352  etamin1,etamin2,etamin3,etamin4,etamin5,etamin6,etamin7,etamin8,
353  etamax1,etamax2,etamax3,etamax4,etamax5,etamax6,etamax7,etamax8,
354  etawin1, etawin2, etawin3, etawin4, etawin5, etawin6, etawin7,
355  mindphip, mindetap,
356 
357  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
358  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
359 
360  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
361  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
362  mindphip_halo, mindetap_halo,
363 
364  straightp, curvedp,
365  mbaPhiOff, mbbPhiOff,
366  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
367  );
368 
369  break;
370  case 20100728:
372  (
373  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp,
374  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp,
375  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp,
376 
377  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp,
378  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp,
379  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp,
380 
381  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
382  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
383  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
384 
385  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
386  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
387  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
388 
389  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
390  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
391  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
392 
393  io->mb1aVp, io->mb1aQp, io->mb1aPhip,
394  io->mb1bVp, io->mb1bQp, io->mb1bPhip,
395  io->mb1cVp, io->mb1cQp, io->mb1cPhip,
396  io->mb1dVp, io->mb1dQp, io->mb1dPhip,
397 
398  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
399  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
400  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
401 
402  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
403  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
404  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
405 
406  etamin1,etamin2,etamin3,etamin4,etamin5,etamin6,etamin7,etamin8,
407  etamax1,etamax2,etamax3,etamax4,etamax5,etamax6,etamax7,etamax8,
408  etawin1, etawin2, etawin3, etawin4, etawin5, etawin6, etawin7,
409  mindphip, mindetap,
410 
411  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
412  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
413 
414  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
415  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
416  mindphip_halo, mindetap_halo,
417 
418  straightp, curvedp,
419  mbaPhiOff, mbbPhiOff,
420  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
421  );
422  break;
423  case 20100901:
425  (
426  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp,
427  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp,
428  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp,
429 
430  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp,
431  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp,
432  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp,
433 
434  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
435  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
436  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
437 
438  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
439  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
440  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
441 
442  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
443  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
444  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
445 
446  io->mb1aVp, io->mb1aQp, io->mb1aPhip,
447  io->mb1bVp, io->mb1bQp, io->mb1bPhip,
448  io->mb1cVp, io->mb1cQp, io->mb1cPhip,
449  io->mb1dVp, io->mb1dQp, io->mb1dPhip,
450 
451  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
452  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
453  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
454 
455  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
456  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
457  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
458 
459  etamin1,etamin2,etamin3,etamin4,etamin5,etamin6,etamin7,etamin8,
460  etamax1,etamax2,etamax3,etamax4,etamax5,etamax6,etamax7,etamax8,
461  etawin1, etawin2, etawin3, etawin4, etawin5, etawin6, etawin7,
462  mindphip, mindetap,
463 
464  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
465  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
466 
467  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
468  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
469  mindphip_halo, mindetap_halo,
470 
471  straightp, curvedp,
472  mbaPhiOff, mbbPhiOff,
473  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
474  );
475  break;
476 
477  case 20101011:
479  (
480  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp,
481  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp,
482  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp,
483 
484  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp,
485  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp,
486  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp,
487 
488  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
489  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
490  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
491 
492  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
493  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
494  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
495 
496  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
497  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
498  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
499 
500  io->mb1aVp, io->mb1aQp, io->mb1aPhip,
501  io->mb1bVp, io->mb1bQp, io->mb1bPhip,
502  io->mb1cVp, io->mb1cQp, io->mb1cPhip,
503  io->mb1dVp, io->mb1dQp, io->mb1dPhip,
504 
505  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
506  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
507  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
508 
509  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
510  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
511  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
512 
513  etamin1,etamin2,etamin3,etamin4,etamin5,/*etamin6,*/etamin7,etamin8,
514  etamax1,etamax2,etamax3,etamax4,etamax5,/*etamax6,*/etamax7,etamax8,
515  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
516  mindphip, mindetap,
517 
518  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
519  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
520 
521  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
522  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
523  mindphip_halo, mindetap_halo,
524 
525  straightp, curvedp,
526  mbaPhiOff, mbbPhiOff,
527  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
528  );
529  break;
530 
531 
532  case 20101210:
534  (
535  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp,
536  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp,
537  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp,
538 
539  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp,
540  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp,
541  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp,
542 
543  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
544  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
545  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
546 
547  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
548  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
549  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
550 
551  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
552  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
553  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
554 
555  io->mb1aVp, io->mb1aQp, io->mb1aPhip,
556  io->mb1bVp, io->mb1bQp, io->mb1bPhip,
557  io->mb1cVp, io->mb1cQp, io->mb1cPhip,
558  io->mb1dVp, io->mb1dQp, io->mb1dPhip,
559 
560  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
561  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
562  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
563 
564  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
565  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
566  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
567 
568  etamin1,etamin2,etamin3,etamin4,etamin5,/*etamin6,*/etamin7,etamin8,
569  etamax1,etamax2,etamax3,etamax4,etamax5,/*etamax6,*/etamax7,etamax8,
570  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
571  mindphip, mindetap,
572 
573  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
574  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
575 
576  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
577  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
578  mindphip_halo, mindetap_halo,
579 
580  straightp, curvedp,
581  mbaPhiOff, mbbPhiOff,
582  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
583  );
584  break;
585 
586  case 20110118:
588  (
589  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp, io->me1aCLCTp,
590  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp, io->me1bCLCTp,
591  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp, io->me1cCLCTp,
592 
593  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp, io->me1dCLCTp,
594  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp, io->me1eCLCTp,
595  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp, io->me1fCLCTp,
596 
597  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
598  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
599  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
600 
601  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
602  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
603  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
604 
605  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
606  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
607  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
608 
609  io->mb1aVp, io->mb1aQp, io->mb1aPhip, io->mb1aBendp,
610  io->mb1bVp, io->mb1bQp, io->mb1bPhip, io->mb1bBendp,
611  io->mb1cVp, io->mb1cQp, io->mb1cPhip, io->mb1cBendp,
612  io->mb1dVp, io->mb1dQp, io->mb1dPhip, io->mb1dBendp,
613 
614  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp,
615  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp,
616  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp,
617 
618  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
619  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
620  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
621 
622  etamin1,etamin2,etamin3,etamin4,etamin5,/*etamin6,*/etamin7,etamin8,
623  etamax1,etamax2,etamax3,etamax4,etamax5,/*etamax6,*/etamax7,etamax8,
624  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
625  mindphip, mindetap,
626 
627  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
628  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
629 
630  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
631  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
632  mindphip_halo, mindetap_halo,
633 
634  straightp, curvedp,
635  mbaPhiOff, mbbPhiOff,
636  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
637  );
638  break;
639 
640  case 20120131:
641  setNLBTables();
642 
644  (
645  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp, io->me1aCLCTp,
646  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp, io->me1bCLCTp,
647  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp, io->me1cCLCTp,
648 
649  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp, io->me1dCLCTp,
650  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp, io->me1eCLCTp,
651  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp, io->me1fCLCTp,
652 
653  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
654  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
655  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
656 
657  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
658  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
659  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
660 
661  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
662  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
663  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
664 
665  io->mb1aVp, io->mb1aQp, io->mb1aPhip, io->mb1aBendp,
666  io->mb1bVp, io->mb1bQp, io->mb1bPhip, io->mb1bBendp,
667  io->mb1cVp, io->mb1cQp, io->mb1cPhip, io->mb1cBendp,
668  io->mb1dVp, io->mb1dQp, io->mb1dPhip, io->mb1dBendp,
669 
670  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp, io->phdiff_aHp, io->phdiff_bHp,
671  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp, io->phdiff_aMp, io->phdiff_bMp,
672  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp, io->phdiff_aLp, io->phdiff_bLp,
673 
674  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
675  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
676  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
677 
678  etamin1, etamin2, etamin3, etamin4, etamin5, /*etamin6,*/ etamin7,etamin8,
679  etamax1, etamax2, etamax3, etamax4, etamax5, /*etamax6,*/ etamax7,etamax8,
680  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
681  mindphip, mindetap,
682 
683  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
684  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
685 
686  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
687  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
688  mindphip_halo, mindetap_halo,
689 
690  straightp, curvedp,
691  mbaPhiOff, mbbPhiOff,
692  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
693  );
694  break;
695 
696  case 20120313:
697 
699  (
700  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp, io->me1aCLCTp,
701  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp, io->me1bCLCTp,
702  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp, io->me1cCLCTp,
703 
704  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp, io->me1dCLCTp,
705  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp, io->me1eCLCTp,
706  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp, io->me1fCLCTp,
707 
708  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
709  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
710  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
711 
712  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
713  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
714  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
715 
716  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
717  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
718  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
719 
720  io->mb1aVp, io->mb1aQp, io->mb1aPhip, io->mb1aBendp,
721  io->mb1bVp, io->mb1bQp, io->mb1bPhip, io->mb1bBendp,
722  io->mb1cVp, io->mb1cQp, io->mb1cPhip, io->mb1cBendp,
723  io->mb1dVp, io->mb1dQp, io->mb1dPhip, io->mb1dBendp,
724 
725  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp, io->phdiff_aHp, io->phdiff_bHp,
726  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp, io->phdiff_aMp, io->phdiff_bMp,
727  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp, io->phdiff_aLp, io->phdiff_bLp,
728 
729  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
730  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
731  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
732 
733  etamin1, etamin2, etamin3, etamin4, etamin5, /*etamin6,*/ etamin7,etamin8,
734  etamax1, etamax2, etamax3, etamax4, etamax5, /*etamax6,*/ etamax7,etamax8,
735  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
736  mindphip, mindetap,
737 
738  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
739  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
740 
741  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
742  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
743  mindphip_halo, mindetap_halo,
744 
745  straightp, curvedp,
746  mbaPhiOff, mbbPhiOff,
747  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
748  );
749  break;
750 
751 
752  default:
753  edm::LogInfo("CSCSTFSPCoreLogic") << "Warning: using the default core is what you want?"
754  << " Core version is " << this->GetCoreFirmwareVersion();
755  setNLBTables();
757  (
758  io->me1aVp, io->me1aQp, io->me1aEtap, io->me1aPhip, io->me1aCSCIdp, io->me1aCLCTp,
759  io->me1bVp, io->me1bQp, io->me1bEtap, io->me1bPhip, io->me1bCSCIdp, io->me1bCLCTp,
760  io->me1cVp, io->me1cQp, io->me1cEtap, io->me1cPhip, io->me1cCSCIdp, io->me1cCLCTp,
761 
762  io->me1dVp, io->me1dQp, io->me1dEtap, io->me1dPhip, io->me1dCSCIdp, io->me1dCLCTp,
763  io->me1eVp, io->me1eQp, io->me1eEtap, io->me1ePhip, io->me1eCSCIdp, io->me1eCLCTp,
764  io->me1fVp, io->me1fQp, io->me1fEtap, io->me1fPhip, io->me1fCSCIdp, io->me1fCLCTp,
765 
766  io->me2aVp, io->me2aQp, io->me2aEtap, io->me2aPhip,
767  io->me2bVp, io->me2bQp, io->me2bEtap, io->me2bPhip,
768  io->me2cVp, io->me2cQp, io->me2cEtap, io->me2cPhip,
769 
770  io->me3aVp, io->me3aQp, io->me3aEtap, io->me3aPhip,
771  io->me3bVp, io->me3bQp, io->me3bEtap, io->me3bPhip,
772  io->me3cVp, io->me3cQp, io->me3cEtap, io->me3cPhip,
773 
774  io->me4aVp, io->me4aQp, io->me4aEtap, io->me4aPhip,
775  io->me4bVp, io->me4bQp, io->me4bEtap, io->me4bPhip,
776  io->me4cVp, io->me4cQp, io->me4cEtap, io->me4cPhip,
777 
778  io->mb1aVp, io->mb1aQp, io->mb1aPhip, io->mb1aBendp,
779  io->mb1bVp, io->mb1bQp, io->mb1bPhip, io->mb1bBendp,
780  io->mb1cVp, io->mb1cQp, io->mb1cPhip, io->mb1cBendp,
781  io->mb1dVp, io->mb1dQp, io->mb1dPhip, io->mb1dBendp,
782 
783  io->ptHp, io->signHp, io->modeMemHp, io->etaPTHp, io->FRHp, io->phiHp, io->phdiff_aHp, io->phdiff_bHp,
784  io->ptMp, io->signMp, io->modeMemMp, io->etaPTMp, io->FRMp, io->phiMp, io->phdiff_aMp, io->phdiff_bMp,
785  io->ptLp, io->signLp, io->modeMemLp, io->etaPTLp, io->FRLp, io->phiLp, io->phdiff_aLp, io->phdiff_bLp,
786 
787  io->me1idH, io->me2idH, io->me3idH, io->me4idH, io->mb1idH, io->mb2idH,
788  io->me1idM, io->me2idM, io->me3idM, io->me4idM, io->mb1idM, io->mb2idM,
789  io->me1idL, io->me2idL, io->me3idL, io->me4idL, io->mb1idL, io->mb2idL,
790 
791  etamin1, etamin2, etamin3, etamin4, etamin5, /*etamin6,*/ etamin7,etamin8,
792  etamax1, etamax2, etamax3, etamax4, etamax5, /*etamax6,*/ etamax7,etamax8,
793  etawin1, etawin2, etawin3, etawin4, etawin5, /*etawin6,*/ etawin7,
794  mindphip, mindetap,
795 
796  mindeta12_accp, maxdeta12_accp, maxdphi12_accp,
797  mindeta13_accp, maxdeta13_accp, maxdphi13_accp,
798 
799  mindeta112_accp, maxdeta112_accp, maxdphi112_accp,
800  mindeta113_accp, maxdeta113_accp, maxdphi113_accp,
801  mindphip_halo, mindetap_halo,
802 
803  straightp, curvedp,
804  mbaPhiOff, mbbPhiOff,
805  (m_preTrigger<<7)|(m_allowCLCTonly<<5)|(m_allowALCTonly<<4)|(m_extend_length<<1)|(m_widePhi)
806  );
807  break;
808 
809  }
810 
811 
812 
813  if ( IsVerbose() ) {
814  std::cout << "Core Verbose Output For Debugging\n";
815  std::cout << io->me1aVp << " " << io->me1aQp << " " << io->me1aEtap << " " << io->me1aPhip << " " << io->me1aCSCIdp << " " << io->me1aCLCTp << std::endl;
816  std::cout << io->me1bVp << " " << io->me1bQp << " " << io->me1bEtap << " " << io->me1bPhip << " " << io->me1bCSCIdp << " " << io->me1bCLCTp << std::endl;
817  std::cout << io->me1cVp << " " << io->me1cQp << " " << io->me1cEtap << " " << io->me1cPhip << " " << io->me1cCSCIdp << " " << io->me1cCLCTp << std::endl;
818 
819  std::cout << io->me1dVp << " " << io->me1dQp << " " << io->me1dEtap << " " << io->me1dPhip << " " << io->me1dCSCIdp << " " << io->me1dCLCTp << std::endl;
820  std::cout << io->me1eVp << " " << io->me1eQp << " " << io->me1eEtap << " " << io->me1ePhip << " " << io->me1eCSCIdp << " " << io->me1eCLCTp << std::endl;
821  std::cout << io->me1fVp << " " << io->me1fQp << " " << io->me1fEtap << " " << io->me1fPhip << " " << io->me1fCSCIdp << " " << io->me1fCLCTp << std::endl;
822 
823  std::cout << io->me2aVp << " " << io->me2aQp << " " << io->me2aEtap << " " << io->me2aPhip << " " << 0 << " " << 0 << std::endl;
824  std::cout << io->me2bVp << " " << io->me2bQp << " " << io->me2bEtap << " " << io->me2bPhip << " " << 0 << " " << 0 << std::endl;
825  std::cout << io->me2cVp << " " << io->me2cQp << " " << io->me2cEtap << " " << io->me2cPhip << " " << 0 << " " << 0 << std::endl;
826 
827  std::cout << io->me3aVp << " " << io->me3aQp << " " << io->me3aEtap << " " << io->me3aPhip << " " << 0 << " " << 0 << std::endl;
828  std::cout << io->me3bVp << " " << io->me3bQp << " " << io->me3bEtap << " " << io->me3bPhip << " " << 0 << " " << 0 << std::endl;
829  std::cout << io->me3cVp << " " << io->me3cQp << " " << io->me3cEtap << " " << io->me3cPhip << " " << 0 << " " << 0 << std::endl;
830 
831  std::cout << io->me4aVp << " " << io->me4aQp << " " << io->me4aEtap << " " << io->me4aPhip << " " << 0 << " " << 0 << std::endl;
832  std::cout << io->me4bVp << " " << io->me4bQp << " " << io->me4bEtap << " " << io->me4bPhip << " " << 0 << " " << 0 << std::endl;
833  std::cout << io->me4cVp << " " << io->me4cQp << " " << io->me4cEtap << " " << io->me4cPhip << " " << 0 << " " << 0 << std::endl;
834 
835  std::cout << io->mb1aVp << " " << io->mb1aQp << " " << 0 << " " << io->mb1aPhip <<" " << 0 << " " << io->mb1aBendp << std::endl;
836  std::cout << io->mb1bVp << " " << io->mb1bQp << " " << 0 << " " << io->mb1bPhip <<" " << 0 << " " << io->mb1bBendp << std::endl;
837  std::cout << io->mb1cVp << " " << io->mb1cQp << " " << 0 << " " << 0/*io->mb1cPhip*/ <<" " << 0 << " " << 0/*io->mb1aBendp*/ << std::endl;
838  std::cout << io->mb1dVp << " " << io->mb1dQp << " " << 0 << " " << 0/*io->mb1dPhip*/ <<" " << 0 << " " << 0/*io->mb1aBendp*/ << std::endl;
839 
840  std::cout << io->ptHp << " " << io->signHp << " " << io->modeMemHp << " " << io->etaPTHp << " " << io->FRHp << " " << io->phiHp << std::endl;
841  std::cout << io->ptMp << " " << io->signMp << " " << io->modeMemMp << " " << io->etaPTMp << " " << io->FRMp << " " << io->phiMp << std::endl;
842  std::cout << io->ptLp << " " << io->signLp << " " << io->modeMemLp << " " << io->etaPTLp << " " << io->FRLp << " " << io->phiLp << std::endl;
843 
844  std::cout << io->me1idH << " " << io->me2idH << " " << io->me3idH << " " << io->me4idH << " " << io->mb1idH << " " << io->mb2idH << std::endl;
845  std::cout << io->me1idM << " " << io->me2idM << " " << io->me3idM << " " << io->me4idM << " " << io->mb1idM << " " << io->mb2idM << std::endl;
846  std::cout << io->me1idL << " " << io->me2idL << " " << io->me3idL << " " << io->me4idL << " " << io->mb1idL << " " << io->mb2idL << std::endl << std::endl;
847  }
848  ++bx;
849  }
850 
851 
852  bx = 0;
853 
854  //int nmuons = 0;
855  // start from where tracks could first possibly appear
856  // read out tracks from io_
857  // We add first +1 to the starting position because the CSC data started 1 BX after DT,
858  // and the other +1 because of the number of calls to the core (i.e. latency+1):
859  for(io = io_.begin() + latency + 1 + 1; io != io_.end(); io++)
860  {
861  csc::L1TrackId trkHid(endcap, sector), trkMid(endcap, sector), trkLid(endcap, sector);
862  trkHid.setMode(io->modeMemHp);
863  trkMid.setMode(io->modeMemMp);
864  trkLid.setMode(io->modeMemLp);
865 
866  csc::L1Track trkH(trkHid), trkM(trkMid), trkL(trkLid);
867 
868  ptadd LUTAddressH, LUTAddressM, LUTAddressL;
869 
870  // construct PT LUT address for all possible muons
871  LUTAddressH.delta_phi_12 = io->ptHp & 0xff;
872  LUTAddressH.delta_phi_23 = (io->ptHp >> 8) & 0xf;
873  LUTAddressH.track_eta = (io->etaPTHp>>1) & 0xf;
874  LUTAddressH.track_mode = io->modeMemHp & 0xf;
875 // Line Replaced due to removal of spbits.h, note that
876 // BWPT and MODE_ACC are now hard coded (13 and 15 respectively)
877 // LUTAddressH.delta_phi_sign = (io->ptHp >> (BWPT-1)) & 0x1;
878  LUTAddressH.delta_phi_sign = (io->ptHp >> (13-1)) & 0x1;
879  LUTAddressH.track_fr = io->FRHp & 0x1;
880 
881  LUTAddressM.delta_phi_12 = io->ptMp & 0xff;
882  LUTAddressM.delta_phi_23 = (io->ptMp >> 8) & 0xf;
883  LUTAddressM.track_eta = (io->etaPTMp>>1) & 0xf;
884  LUTAddressM.track_mode = io->modeMemMp & 0xf;
885 // LUTAddressM.delta_phi_sign = (io->ptMp >> (BWPT-1)) & 0x1;
886  LUTAddressM.delta_phi_sign = (io->ptMp >> (13-1)) & 0x1;
887  LUTAddressM.track_fr = io->FRMp & 0x1;
888 
889  LUTAddressL.delta_phi_12 = io->ptLp & 0xff;
890  LUTAddressL.delta_phi_23 = (io->ptLp >> 8) & 0xf;
891  LUTAddressL.track_eta = (io->etaPTLp>>1) & 0xf;
892  LUTAddressL.track_mode = io->modeMemLp & 0xf;
893 // LUTAddressL.delta_phi_sign = (io->ptLp >> (BWPT-1)) & 0x1;
894  LUTAddressL.delta_phi_sign = (io->ptLp >> (13-1)) & 0x1;
895  LUTAddressL.track_fr = io->FRLp & 0x1;
896 
897  // Core's input was loaded in a relative time window starting from BX=1(CSC)/0(DT)
898  // If we account for latency related shift in the core's output (as we do in this loop)
899  // then output tracks appear in the same BX as input stubs.
900  // To create new time window with perfectly timed-in tracks placed at BX=0 we introduce a shift:
901  int shift = (maxBX - minBX)/2;
902 
903  if(LUTAddressH.track_mode)
904  {
905  trkH.setPtLUTAddress(LUTAddressH.toint());
906  trkH.setChargePacked(~(io->signHp)&0x1);
907  trkH.setLocalPhi(io->phiHp);
908  trkH.setEtaPacked(io->etaPTHp);
909  trkH.setBx((int)(bx)-shift);
910  trkH.setStationIds(io->me1idH&0x7, io->me2idH&0x3, io->me3idH&0x3, io->me4idH&0x3, io->mb1idH&0x3 );
911  trkH.setTbins (io->me1idH>>3, io->me2idH>>2, io->me3idH>>2, io->me4idH>>2, io->mb1idH>>2 );
912  trkH.setOutputLink(1);
913  if( LUTAddressH.track_mode==15 ) trkH.setFineHaloPacked(1);
914  mytracks.push_back(trkH);
915  }
916  if(LUTAddressM.track_mode)
917  {
918  trkM.setPtLUTAddress(LUTAddressM.toint());
919  trkM.setChargePacked(~(io->signMp)&0x1);
920  trkM.setLocalPhi(io->phiMp);
921  trkM.setEtaPacked(io->etaPTMp);
922  trkM.setBx((int)(bx)-shift);
923  trkM.setStationIds(io->me1idM&0x7, io->me2idM&0x3, io->me3idM&0x3, io->me4idM&0x3, io->mb1idM&0x3 );
924  trkM.setTbins (io->me1idM>>3, io->me2idM>>2, io->me3idM>>2, io->me4idM>>2, io->mb1idM>>2 );
925  trkM.setOutputLink(2);
926  if( LUTAddressM.track_mode==15 ) trkM.setFineHaloPacked(1);
927  mytracks.push_back(trkM);
928  }
929  if(LUTAddressL.track_mode)
930  {
931  trkL.setPtLUTAddress(LUTAddressL.toint());
932  trkL.setChargePacked(~(io->signLp)&0x1);
933  trkL.setLocalPhi(io->phiLp);
934  trkL.setEtaPacked(io->etaPTLp);
935  trkL.setBx((int)(bx)-shift);
936  trkL.setStationIds(io->me1idL&0x7, io->me2idL&0x3, io->me3idL&0x3, io->me4idL&0x3, io->mb1idL&0x3 );
937  trkL.setTbins (io->me1idL>>3, io->me2idL>>2, io->me3idL>>2, io->me4idL>>2, io->mb1idL>>2 );
938  trkL.setOutputLink(3);
939  if( LUTAddressL.track_mode==15 ) trkL.setFineHaloPacked(1);
940  mytracks.push_back(trkL);
941  }
942  ++bx;
943  }
944  return runme;
945 }
946 
948 {
949  /*
950  These arrays define the non-linear dPhi bins used by the SP core logic.
951  dPhi is mapped to an integer value value. The integer value is remapped
952  to phi-units in CSCTFPtLUT.
953  */
954 
955  // initialize the dphi arrays to maximum possible value
956  for (int i = 0; i < 1024; i++)
957  {
958  // 5-bit words
959  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_5[i] = (1<<5)-1;
960  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_5[i] = (1<<5)-1;
961  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_5[i] = (1<<5)-1;
962 
963  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_5[i] = (1<<5)-1;
964  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_5[i] = (1<<5)-1;
965  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_5[i] = (1<<5)-1;
966 
967 
968  // 7-bit words
969  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_7[i] = (1<<7)-1;
970  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_7[i] = (1<<7)-1;
971  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_7[i] = (1<<7)-1;
972 
973  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_7[i] = (1<<7)-1;
974  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_7[i] = (1<<7)-1;
975  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_7[i] = (1<<7)-1;
976 
977  // 8-bit words
978  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_8[i] = (1<<8)-1;
979  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_8[i] = (1<<8)-1;
980  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_8[i] = (1<<8)-1;
981 
982  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_8[i] = (1<<8)-1;
983  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_8[i] = (1<<8)-1;
984  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_8[i] = (1<<8)-1;
985 
986  sp_2012_01_31_.spvpp_ptu4a_comp_dphi_8[i] = (1<<8)-1;
987  sp_2012_01_31_.spvpp_ptu4b_comp_dphi_8[i] = (1<<8)-1;
988  sp_2012_01_31_.spvpp_ptu4c_comp_dphi_8[i] = (1<<8)-1;
989  }
990 
991  // define the non-linear bin map. This takes dphi (phi-units) --> integer value
992 
993  // 5-bit table
994  int dPhiTable_5b[256] =
995  { 0 , 1 , 2 , 2 , 3 , 4 , 4 , 5 , 5 , 6 , 6 , 7 , 7 , 8 , 8 , 9 , 9 , 9 , 10 , 10 , 10 , 11 , 11 , 11 , 12 , 12 , 12 , 12 , 13 , 13 , 13 , 13 , 14 , 14 , 14 , 14 , 14 , 15 , 15 , 15 , 15 , 16 , 16 , 16 , 16 , 16 , 16 , 17 , 17 , 17 , 17 , 17 , 17 , 18 , 18 , 18 , 18 , 18 , 18 , 18 , 19 , 19 , 19 , 19 , 19 , 19 , 19 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 20 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 21 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 22 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 23 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 24 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 25 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 26 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 27 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 28 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 29 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 30 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 , 31 };
996 
997  // 7-bit table
998  int dPhiTable_7b[512] =
999  { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 6 , 7 , 8 , 9 , 10 , 11 , 11 , 12 , 13 , 14 , 15 , 15 , 16 , 17 , 18 , 18 , 19 , 20 , 20 , 21 , 22 , 22 , 23 , 24 , 24 , 25 , 26 , 26 , 27 , 27 , 28 , 29 , 29 , 30 , 30 , 31 , 31 , 32 , 33 , 33 , 34 , 34 , 35 , 35 , 36 , 36 , 37 , 37 , 38 , 38 , 39 , 39 , 40 , 40 , 41 , 41 , 42 , 42 , 43 , 43 , 44 , 44 , 44 , 45 , 45 , 46 , 46 , 47 , 47 , 47 , 48 , 48 , 49 , 49 , 50 , 50 , 50 , 51 , 51 , 52 , 52 , 52 , 53 , 53 , 53 , 54 , 54 , 55 , 55 , 55 , 56 , 56 , 56 , 57 , 57 , 57 , 58 , 58 , 59 , 59 , 59 , 60 , 60 , 60 , 61 , 61 , 61 , 62 , 62 , 62 , 63 , 63 , 63 , 63 , 64 , 64 , 64 , 65 , 65 , 65 , 66 , 66 , 66 , 67 , 67 , 67 , 67 , 68 , 68 , 68 , 69 , 69 , 69 , 69 , 70 , 70 , 70 , 71 , 71 , 71 , 71 , 72 , 72 , 72 , 73 , 73 , 73 , 73 , 74 , 74 , 74 , 74 , 75 , 75 , 75 , 75 , 76 , 76 , 76 , 76 , 77 , 77 , 77 , 77 , 78 , 78 , 78 , 78 , 79 , 79 , 79 , 79 , 80 , 80 , 80 , 80 , 81 , 81 , 81 , 81 , 81 , 82 , 82 , 82 , 82 , 83 , 83 , 83 , 83 , 83 , 84 , 84 , 84 , 84 , 85 , 85 , 85 , 85 , 85 , 86 , 86 , 86 , 86 , 87 , 87 , 87 , 87 , 87 , 88 , 88 , 88 , 88 , 88 , 89 , 89 , 89 , 89 , 89 , 90 , 90 , 90 , 90 , 90 , 91 , 91 , 91 , 91 , 91 , 92 , 92 , 92 , 92 , 92 , 92 , 93 , 93 , 93 , 93 , 93 , 94 , 94 , 94 , 94 , 94 , 95 , 95 , 95 , 95 , 95 , 95 , 96 , 96 , 96 , 96 , 96 , 96 , 97 , 97 , 97 , 97 , 97 , 98 , 98 , 98 , 98 , 98 , 98 , 99 , 99 , 99 , 99 , 99 , 99 , 100 , 100 , 100 , 100 , 100 , 100 , 101 , 101 , 101 , 101 , 101 , 101 , 102 , 102 , 102 , 102 , 102 , 102 , 102 , 103 , 103 , 103 , 103 , 103 , 103 , 104 , 104 , 104 , 104 , 104 , 104 , 104 , 105 , 105 , 105 , 105 , 105 , 105 , 106 , 106 , 106 , 106 , 106 , 106 , 106 , 107 , 107 , 107 , 107 , 107 , 107 , 107 , 108 , 108 , 108 , 108 , 108 , 108 , 108 , 109 , 109 , 109 , 109 , 109 , 109 , 109 , 110 , 110 , 110 , 110 , 110 , 110 , 110 , 111 , 111 , 111 , 111 , 111 , 111 , 111 , 111 , 112 , 112 , 112 , 112 , 112 , 112 , 112 , 113 , 113 , 113 , 113 , 113 , 113 , 113 , 113 , 114 , 114 , 114 , 114 , 114 , 114 , 114 , 115 , 115 , 115 , 115 , 115 , 115 , 115 , 115 , 116 , 116 , 116 , 116 , 116 , 116 , 116 , 116 , 117 , 117 , 117 , 117 , 117 , 117 , 117 , 117 , 117 , 118 , 118 , 118 , 118 , 118 , 118 , 118 , 118 , 119 , 119 , 119 , 119 , 119 , 119 , 119 , 119 , 119 , 120 , 120 , 120 , 120 , 120 , 120 , 120 , 120 , 121 , 121 , 121 , 121 , 121 , 121 , 121 , 121 , 121 , 122 , 122 , 122 , 122 , 122 , 122 , 122 , 122 , 122 , 123 , 123 , 123 , 123 , 123 , 123 , 123 , 123 , 123 , 124 , 124 , 124 , 124 , 124 , 124 , 124 , 124 , 124 , 125 , 125 , 125 , 125 , 125 , 125 , 125 , 125 , 125 , 125 , 126 , 126 , 126 , 126 , 126 , 126 , 126 , 126 , 126 , 126 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 , 127 };
1000 
1001  // 8-bit table
1002  int dPhiTable_8b[512] =
1003  { 0 , 1 , 2 , 3 , 4 , 5 , 6 , 7 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 14 , 15 , 16 , 17 , 18 , 19 , 20 , 21 , 22 , 23 , 24 , 24 , 25 , 26 , 27 , 28 , 29 , 30 , 31 , 31 , 32 , 33 , 34 , 35 , 36 , 37 , 37 , 38 , 39 , 40 , 41 , 42 , 42 , 43 , 44 , 45 , 46 , 46 , 47 , 48 , 49 , 50 , 50 , 51 , 52 , 53 , 54 , 54 , 55 , 56 , 57 , 57 , 58 , 59 , 60 , 61 , 61 , 62 , 63 , 64 , 64 , 65 , 66 , 66 , 67 , 68 , 69 , 69 , 70 , 71 , 72 , 72 , 73 , 74 , 74 , 75 , 76 , 77 , 77 , 78 , 79 , 79 , 80 , 81 , 81 , 82 , 83 , 83 , 84 , 85 , 86 , 86 , 87 , 88 , 88 , 89 , 90 , 90 , 91 , 91 , 92 , 93 , 93 , 94 , 95 , 95 , 96 , 97 , 97 , 98 , 99 , 99 , 100 , 100 , 101 , 102 , 102 , 103 , 104 , 104 , 105 , 105 , 106 , 107 , 107 , 108 , 109 , 109 , 110 , 110 , 111 , 112 , 112 , 113 , 113 , 114 , 115 , 115 , 116 , 116 , 117 , 117 , 118 , 119 , 119 , 120 , 120 , 121 , 122 , 122 , 123 , 123 , 124 , 124 , 125 , 125 , 126 , 127 , 127 , 128 , 128 , 129 , 129 , 130 , 130 , 131 , 132 , 132 , 133 , 133 , 134 , 134 , 135 , 135 , 136 , 136 , 137 , 138 , 138 , 139 , 139 , 140 , 140 , 141 , 141 , 142 , 142 , 143 , 143 , 144 , 144 , 145 , 145 , 146 , 146 , 147 , 147 , 148 , 148 , 149 , 149 , 150 , 150 , 151 , 151 , 152 , 152 , 153 , 153 , 154 , 154 , 155 , 155 , 156 , 156 , 157 , 157 , 158 , 158 , 159 , 159 , 160 , 160 , 161 , 161 , 162 , 162 , 163 , 163 , 164 , 164 , 165 , 165 , 165 , 166 , 166 , 167 , 167 , 168 , 168 , 169 , 169 , 170 , 170 , 171 , 171 , 172 , 172 , 172 , 173 , 173 , 174 , 174 , 175 , 175 , 176 , 176 , 176 , 177 , 177 , 178 , 178 , 179 , 179 , 180 , 180 , 180 , 181 , 181 , 182 , 182 , 183 , 183 , 183 , 184 , 184 , 185 , 185 , 186 , 186 , 186 , 187 , 187 , 188 , 188 , 189 , 189 , 189 , 190 , 190 , 191 , 191 , 192 , 192 , 192 , 193 , 193 , 194 , 194 , 194 , 195 , 195 , 196 , 196 , 196 , 197 , 197 , 198 , 198 , 199 , 199 , 199 , 200 , 200 , 201 , 201 , 201 , 202 , 202 , 203 , 203 , 203 , 204 , 204 , 204 , 205 , 205 , 206 , 206 , 206 , 207 , 207 , 208 , 208 , 208 , 209 , 209 , 210 , 210 , 210 , 211 , 211 , 211 , 212 , 212 , 213 , 213 , 213 , 214 , 214 , 214 , 215 , 215 , 216 , 216 , 216 , 217 , 217 , 217 , 218 , 218 , 219 , 219 , 219 , 220 , 220 , 220 , 221 , 221 , 221 , 222 , 222 , 223 , 223 , 223 , 224 , 224 , 224 , 225 , 225 , 225 , 226 , 226 , 227 , 227 , 227 , 228 , 228 , 228 , 229 , 229 , 229 , 230 , 230 , 230 , 231 , 231 , 231 , 232 , 232 , 232 , 233 , 233 , 233 , 234 , 234 , 235 , 235 , 235 , 236 , 236 , 236 , 237 , 237 , 237 , 238 , 238 , 238 , 239 , 239 , 239 , 240 , 240 , 240 , 241 , 241 , 241 , 242 , 242 , 242 , 243 , 243 , 243 , 244 , 244 , 244 , 245 , 245 , 245 , 246 , 246 , 246 , 247 , 247 , 247 , 247 , 248 , 248 , 248 , 249 , 249 , 249 , 250 , 250 , 250 , 251 , 251 , 251 , 252 , 252 , 252 , 253 , 253 , 253 , 254 , 254 , 254 , 254 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 , 255 };
1004 
1005  // Now set the arrays
1006 
1007  // 5-bit words
1008  for (int i = 0; i < 256; i++)
1009  {
1010  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_5[i] = dPhiTable_5b[i];
1011  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_5[i] = dPhiTable_5b[i];
1012  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_5[i] = dPhiTable_5b[i];
1013 
1014  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_5[i] = dPhiTable_5b[i];
1015  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_5[i] = dPhiTable_5b[i];
1016  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_5[i] = dPhiTable_5b[i];
1017  }
1018 
1019  // 7-bit words
1020  for (int i = 0; i < 512; i++)
1021  {
1022  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_7[i] = dPhiTable_7b[i];
1023  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_7[i] = dPhiTable_7b[i];
1024  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_7[i] = dPhiTable_7b[i];
1025 
1026  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_7[i] = dPhiTable_7b[i];
1027  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_7[i] = dPhiTable_7b[i];
1028  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_7[i] = dPhiTable_7b[i];
1029  }
1030 
1031  // 8-bit words
1032  for (int i = 0; i < 512; i++)
1033  {
1034  sp_2012_01_31_.spvpp_ptu2a_comp_dphi_8[i] = dPhiTable_8b[i];
1035  sp_2012_01_31_.spvpp_ptu2b_comp_dphi_8[i] = dPhiTable_8b[i];
1036  sp_2012_01_31_.spvpp_ptu2c_comp_dphi_8[i] = dPhiTable_8b[i];
1037 
1038  sp_2012_01_31_.spvpp_ptu3a_comp_dphi_8[i] = dPhiTable_8b[i];
1039  sp_2012_01_31_.spvpp_ptu3b_comp_dphi_8[i] = dPhiTable_8b[i];
1040  sp_2012_01_31_.spvpp_ptu3c_comp_dphi_8[i] = dPhiTable_8b[i];
1041 
1042  sp_2012_01_31_.spvpp_ptu4a_comp_dphi_8[i] = dPhiTable_8b[i];
1043  sp_2012_01_31_.spvpp_ptu4b_comp_dphi_8[i] = dPhiTable_8b[i];
1044  sp_2012_01_31_.spvpp_ptu4c_comp_dphi_8[i] = dPhiTable_8b[i];
1045  }
1046 
1047 }
1048 
1049 
1051 {
1052  return mytracks;
1053 }
1054 
1055 // LocalWords: isValid
static vpp_generated_2011_01_18 sp_2011_01_18_
void setLocalPhi(const unsigned &lphi)
Definition: L1Track.h:36
int i
Definition: DBlmapReader.cc:9
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12ovp, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12ovp, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn12ovp, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
std::vector< T > get() const
static vpp_generated_2010_12_10 sp_2010_12_10_
static vpp_generated_2010_09_01 sp_2010_09_01_
static vpp_generated_2010_10_11 sp_2010_10_11_
void push_back(const T data)
CSCTriggerContainer< csc::L1Track > mytracks
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1aCLCTp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1bCLCTp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1cCLCTp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1dCLCTp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1eCLCTp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me1fCLCTp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1aBendp, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1bBendp, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1cBendp, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned mb1dBendp, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &phdiff_aHp, unsigned &phdiff_bHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &phdiff_aMp, unsigned &phdiff_bMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &phdiff_aLp, unsigned &phdiff_bLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
void setPtLUTAddress(const unsigned &adr)
Definition: L1Track.h:58
void setMode(const unsigned &mode)
Definition: L1TrackId.h:39
static vpp_generated_2012_01_31 sp_2012_01_31_
static int maxStationId()
Definition: CSCDetId.h:241
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1aCLCTp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1bCLCTp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1cCLCTp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1dCLCTp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1eCLCTp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me1fCLCTp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1aBendp, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1bBendp, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1cBendp, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned mb1dBendp, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1aCLCTp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1bCLCTp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1cCLCTp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1dCLCTp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1eCLCTp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me1fCLCTp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1aBendp, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1bBendp, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1cBendp, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned mb1dBendp, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &phdiff_aHp, unsigned &phdiff_bHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &phdiff_aMp, unsigned &phdiff_bMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &phdiff_aLp, unsigned &phdiff_bLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
static vpp_generated_2010_01_22 sp_2010_01_22_
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12ovp, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12ovp, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn12ovp, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
void setBx(int bx)
Set Bunch Crossing.
static vpp_generated_2010_07_28 sp_2010_07_28_
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)
static int minStationId()
Definition: CSCDetId.h:240
bool run(const unsigned &endcap, const unsigned &sector, const unsigned &latency, const unsigned &etamin1, const unsigned &etamin2, const unsigned &etamin3, const unsigned &etamin4, const unsigned &etamin5, const unsigned &etamin6, const unsigned &etamin7, const unsigned &etamin8, const unsigned &etamax1, const unsigned &etamax2, const unsigned &etamax3, const unsigned &etamax4, const unsigned &etamax5, const unsigned &etamax6, const unsigned &etamax7, const unsigned &etamax8, const unsigned &etawin1, const unsigned &etawin2, const unsigned &etawin3, const unsigned &etawin4, const unsigned &etawin5, const unsigned &etawin6, const unsigned &etawin7, const unsigned &mindphip, const unsigned &mindetap, const unsigned &mindeta12_accp, const unsigned &maxdeta12_accp, const unsigned &maxdphi12_accp, const unsigned &mindeta13_accp, const unsigned &maxdeta13_accp, const unsigned &maxdphi13_accp, const unsigned &mindeta112_accp, const unsigned &maxdeta112_accp, const unsigned &maxdphi112_accp, const unsigned &mindeta113_accp, const unsigned &maxdeta113_accp, const unsigned &maxdphi113_accp, const unsigned &mindphip_halo, const unsigned &mindetap_halo, const unsigned &straightp, const unsigned &curvedp, const unsigned &mbaPhiOff, const unsigned &mbbPhiOff, const unsigned &m_extend_length, const unsigned &m_allowALCTonly, const unsigned &m_allowCLCTonly, const unsigned &m_preTrigger, const unsigned &m_widePhi, const int &minBX, const int &maxBX)
static vpp_generated_2012_03_13 sp_2012_03_13_
unsigned int GetSPFirmwareVersion()
unsigned int GetCoreFirmwareVersion()
void setChargePacked(unsigned ch)
Set Charge (0=pos, 1=neg)
class pt_address ptadd
void setOutputLink(unsigned oPL)
Definition: L1Track.h:62
static int triggerSubSectorFromLabels(int station, int chamber)
void setTbins(unsigned me1, unsigned me2, unsigned me3, unsigned me4, unsigned mb)
Definition: L1Track.h:99
void setEtaPacked(unsigned eta)
Set Eta: 6-bit code.
void setFineHaloPacked(unsigned fh)
Set Fine / Halo.
static unsigned int const shift
tuple cout
Definition: gather_cfg.py:121
void setStationIds(const unsigned &me1, const unsigned &me2, const unsigned &me3, const unsigned &me4, const unsigned &mb1)
Definition: L1Track.cc:123
void loadData(const CSCTriggerContainer< csctf::TrackStub > &, const unsigned &endcap, const unsigned &sector, const int &minBX, const int &maxBX)
std::vector< SPio > io_
CSCTriggerContainer< csc::L1Track > tracks()
void wrap(unsigned me1aValidp, unsigned me1aQp, unsigned me1aEtap, unsigned me1aPhip, unsigned me1aCSCidp, unsigned me1bValidp, unsigned me1bQp, unsigned me1bEtap, unsigned me1bPhip, unsigned me1bCSCidp, unsigned me1cValidp, unsigned me1cQp, unsigned me1cEtap, unsigned me1cPhip, unsigned me1cCSCidp, unsigned me1dValidp, unsigned me1dQp, unsigned me1dEtap, unsigned me1dPhip, unsigned me1dCSCidp, unsigned me1eValidp, unsigned me1eQp, unsigned me1eEtap, unsigned me1ePhip, unsigned me1eCSCidp, unsigned me1fValidp, unsigned me1fQp, unsigned me1fEtap, unsigned me1fPhip, unsigned me1fCSCidp, unsigned me2aValidp, unsigned me2aQp, unsigned me2aEtap, unsigned me2aPhip, unsigned me2bValidp, unsigned me2bQp, unsigned me2bEtap, unsigned me2bPhip, unsigned me2cValidp, unsigned me2cQp, unsigned me2cEtap, unsigned me2cPhip, unsigned me3aValidp, unsigned me3aQp, unsigned me3aEtap, unsigned me3aPhip, unsigned me3bValidp, unsigned me3bQp, unsigned me3bEtap, unsigned me3bPhip, unsigned me3cValidp, unsigned me3cQp, unsigned me3cEtap, unsigned me3cPhip, unsigned me4aValidp, unsigned me4aQp, unsigned me4aEtap, unsigned me4aPhip, unsigned me4bValidp, unsigned me4bQp, unsigned me4bEtap, unsigned me4bPhip, unsigned me4cValidp, unsigned me4cQp, unsigned me4cEtap, unsigned me4cPhip, unsigned mb1aValidp, unsigned mb1aQp, unsigned mb1aPhip, unsigned mb1bValidp, unsigned mb1bQp, unsigned mb1bPhip, unsigned mb1cValidp, unsigned mb1cQp, unsigned mb1cPhip, unsigned mb1dValidp, unsigned mb1dQp, unsigned mb1dPhip, unsigned &ptHp, unsigned &signHp, unsigned &modeMemHp, unsigned &etaPTHp, unsigned &FRHp, unsigned &phiHp, unsigned &ptMp, unsigned &signMp, unsigned &modeMemMp, unsigned &etaPTMp, unsigned &FRMp, unsigned &phiMp, unsigned &ptLp, unsigned &signLp, unsigned &modeMemLp, unsigned &etaPTLp, unsigned &FRLp, unsigned &phiLp, unsigned &me1idH, unsigned &me2idH, unsigned &me3idH, unsigned &me4idH, unsigned &mb1idH, unsigned &mb2idH, unsigned &me1idM, unsigned &me2idM, unsigned &me3idM, unsigned &me4idM, unsigned &mb1idM, unsigned &mb2idM, unsigned &me1idL, unsigned &me2idL, unsigned &me3idL, unsigned &me4idL, unsigned &mb1idL, unsigned &mb2idL, unsigned mneta12p, unsigned mneta13p, unsigned mneta23p, unsigned mneta24p, unsigned mneta34p, unsigned mneta12ovp, unsigned mneta12dtp, unsigned mneta14p, unsigned mxeta12p, unsigned mxeta13p, unsigned mxeta23p, unsigned mxeta24p, unsigned mxeta34p, unsigned mxeta12ovp, unsigned mxeta12dtp, unsigned mxeta14p, unsigned etawn12p, unsigned etawn13p, unsigned etawn23p, unsigned etawn24p, unsigned etawn34p, unsigned etawn12ovp, unsigned etawn14p, unsigned mindphip, unsigned mindetap, unsigned mindeta_halo12p, unsigned maxdeta_halo12p, unsigned maxdphi_halo12p, unsigned mindeta_halo13p, unsigned maxdeta_halo13p, unsigned maxdphi_halo13p, unsigned mindeta_halo112p, unsigned maxdeta_halo112p, unsigned maxdphi_halo112p, unsigned mindeta_halo113p, unsigned maxdeta_halo113p, unsigned maxdphi_halo113p, unsigned mindphi_halop, unsigned mindeta_halop, unsigned straightp, unsigned curvedp, unsigned mb1a_phi_offp, unsigned mb1b_phi_offp, unsigned controlp)