CMS 3D CMS Logo

DTTrig.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTTrig
4 //
5 // Description: Steering routine for L1 trigger simulation in
6 // a muon barrel station
7 //
8 //
9 // Author List:
10 // C. Grandi
11 // Modifications:
12 // S Vanini, S. Marcellini, D. Bonacorsi, C.Battilana
13 //
14 // 07/03/30 : configuration now through DTConfigManager SV
15 //-------------------------------------------------------
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
21 
27 
30 
31 //---------------
32 // C++ Headers --
33 //---------------
34 #include <iostream>
35 #include <string>
36 
37 //-------------------------------
38 // Collaborating Class Headers --
39 //-------------------------------
41 
42 //----------------
43 // Constructors --
44 //----------------
45 
47  : _inputexist(true), _configid(0), _geomid(0) {
48  // Set configuration parameters
49  _debug = params.getUntrackedParameter<bool>("debug");
50 
51  if (_debug) {
52  std::cout << std::endl;
53  std::cout << "**** Initialization of DTTrigger ****" << std::endl;
54  }
55 
56  _digitag = params.getParameter<edm::InputTag>("digiTag");
57  iC.consumes<DTDigiCollection>(_digitag);
58  dtGeomToken_ = iC.esConsumes<DTGeometry, MuonGeometryRecord>();
59  confToken_ = iC.esConsumes<DTConfigManager, DTConfigManagerRcd>();
61 }
62 
63 void DTTrig::createTUs(const edm::EventSetup& iSetup) {
64  // build up Sector Collectors and then
65  // build the trrigger units (one for each chamber)
66  for (int iwh = -2; iwh <= 2; iwh++) {
67  for (int ise = 1; ise <= 12; ise++) {
68  if (_debug) {
69  std::cout << "calling sectcollid wh sc " << iwh << " " << ise << std::endl;
70  }
71  DTSectCollId scid(iwh, ise);
72  {
73  SC_iterator it = _cache1.find(scid);
74  if (it != _cache1.end()) {
75  if (_debug) {
76  std::cout << "DTTrig::createTUs: Sector Collector unit already exists" << std::endl;
77  }
78  continue;
79  }
80  }
81  {
82  auto element = _cache1.emplace(scid, scid);
83  if (_debug) {
84  std::cout << " DTTrig::createTUs new SC sc = " << &(element.first->second) << " at scid.sector() "
85  << scid.sector() << " at scid.wheel() " << scid.wheel() << std::endl;
86  }
87  }
88  }
89  }
90 
92  for (std::vector<const DTChamber*>::const_iterator ich = dtGeom->chambers().begin(); ich != dtGeom->chambers().end();
93  ich++) {
94  const DTChamber* chamb = (*ich);
95  DTChamberId chid = chamb->id();
96  TU_iterator it = _cache.find(chid);
97  if (it != _cache.end()) {
98  if (_debug)
99  std::cout << "DTTrig::init: Trigger unit already exists" << std::endl;
100  continue;
101  }
102 
103  auto info = _cache.emplace(chid, chamb);
104  auto tru = &(info.first->second);
105 
106  //----------- add TU to corresponding SC
107  // returning correspondent SC id
108  DTSectCollId scid;
109  if (chid.sector() == 13) {
110  scid = DTSectCollId(chid.wheel(), 4);
111  } else if (chid.sector() == 14) {
112  scid = DTSectCollId(chid.wheel(), 10);
113  } else {
114  scid = DTSectCollId(chid.wheel(), chid.sector());
115  }
116 
117  SC_iterator it1 = _cache1.find(scid);
118 
119  if (it1 != _cache1.end()) {
120  auto& sc = (*it1).second;
121  if (_debug) {
122  std::cout << "DTTrig::init: adding TU in SC << "
123  << " sector = " << scid.sector() << " wheel = " << scid.wheel() << std::endl;
124  }
125  sc.addTU(tru);
126  } else {
127  std::cout << "DTTrig::createTUs: Trigger Unit not in the map: ";
128  }
129  }
130 }
131 
133  updateES(iSetup);
134  if (!_inputexist)
135  return;
136 
137  DTDigiMap digiMap;
138  //Sort digis by chamber so they can be used by BTIs
140  iEvent.getByLabel(_digitag, dtDigis);
141 
142  if (!dtDigis.isValid()) {
143  LogDebug("DTTrig") << "DTTrig::triggerReco DTDigiCollection with input tag " << _digitag
144  << "requested in configuration, but not found in the event." << std::endl;
145  _inputexist = false;
146  return;
147  }
148 
150 
151  for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end(); ++detUnitIt) {
152  const DTLayerId& layId = (*detUnitIt).first;
153  const DTChamberId chambId = layId.superlayerId().chamberId();
154  const DTDigiCollection::Range& range = (*detUnitIt).second;
155  digiMap[chambId].put(range, layId);
156  }
157 
158  //Run reconstruct for single trigger subsystem (Bti, Traco TS)
159  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
160  DTSCTrigUnit& thisTU = (*it).second;
161  if (thisTU.BtiTrigs()->size() > 0) {
162  thisTU.BtiTrigs()->clearCache();
163  thisTU.TSThTrigs()->clearCache();
164  thisTU.TracoTrigs()->clearCache();
165  thisTU.TSPhTrigs()->clearCache();
166  }
167  DTChamberId chid = thisTU.statId();
168  DTDigiMap_iterator dmit = digiMap.find(chid);
169  if (dmit != digiMap.end()) {
170  thisTU.BtiTrigs()->reconstruct((*dmit).second);
171  if (thisTU.BtiTrigs()->size() > 0) {
172  thisTU.TSThTrigs()->reconstruct();
173  thisTU.TracoTrigs()->reconstruct();
174  if (thisTU.TracoTrigs()->size() > 0)
175  thisTU.TSPhTrigs()->reconstruct();
176  }
177  }
178  }
179  //Run reconstruct for Sector Collector
180  for (SC_iterator it = _cache1.begin(); it != _cache1.end(); it++) {
181  DTSectColl& sectcoll = (*it).second;
182  DTSectCollId scid = (*it).first;
183  if (sectcoll.sizePh() > 0 || sectcoll.sizeTh() > 0)
184  sectcoll.clearCache();
185  bool mustreco = false;
186  for (int i = 1; i < 5; i++) {
187  if (sectcoll.getTSPhi(i)->size() > 0) {
188  mustreco = true;
189  break;
190  }
191  }
192  for (int i = 1; i < 4; i++) {
193  if (sectcoll.getTSTheta(i)->size() > 0) {
194  mustreco = true;
195  break;
196  }
197  }
198  if (scid.sector() == 4 || scid.sector() == 10) {
199  if (sectcoll.getTSPhi(5)->size() > 0)
200  mustreco = true;
201  }
202  if (mustreco)
203  sectcoll.reconstruct();
204  }
205 }
206 
207 void DTTrig::updateES(const edm::EventSetup& iSetup) {
208  // Check for updatets in config
210  edm::ESHandle<DTGeometry> geomHandle;
211 
212  if (iSetup.get<DTConfigManagerRcd>().cacheIdentifier() != _configid) {
213  if (_debug)
214  std::cout << "DTTrig::updateES updating DTTPG configuration" << std::endl;
215 
216  _configid = iSetup.get<DTConfigManagerRcd>().cacheIdentifier();
217  confHandle = iSetup.getHandle(confToken_);
218  _conf_manager = confHandle.product();
219  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
220  (*it).second.setConfig(_conf_manager);
221  }
222  for (SC_iterator it = _cache1.begin(); it != _cache1.end(); it++) {
223  (*it).second.setConfig(_conf_manager);
224  }
225  }
226 
227  if (iSetup.get<MuonGeometryRecord>().cacheIdentifier() != _configid) {
228  if (_debug)
229  std::cout << "DTTrig::updateES updating muon geometry" << std::endl;
230 
231  _geomid = iSetup.get<MuonGeometryRecord>().cacheIdentifier();
232  geomHandle = iSetup.getHandle(dtGeomToken_);
233  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
234  (*it).second.setGeom(geomHandle->chamber((*it).second.statId()));
235  }
236  }
237 }
238 
240  // Delete the map
241  _cache.clear();
242  _cache1.clear();
243 }
244 
246  return const_cast<DTSCTrigUnit*>(constTrigUnit(chid));
247 }
248 
250  // std::cout << " SC: running DTTrig::constTrigUnit(DTChamberId chid)" << std::endl;
251  TU_const_iterator it = _cache.find(chid);
252  if (it == _cache.end()) {
253  std::cout << "DTTrig::trigUnit: Trigger Unit not in the map: ";
254  std::cout << " wheel=" << chid.wheel();
255  std::cout << ", station=" << chid.station();
256  std::cout << ", sector=" << chid.sector();
257  std::cout << std::endl;
258  return nullptr;
259  }
260 
261  return &(*it).second;
262 }
263 
265  SC_const_iterator it = _cache1.find(scid);
266  if (it == _cache1.end()) {
267  std::cout << "DTTrig::SCUnit: Trigger Unit not in the map: ";
268  std::cout << " wheel=" << scid.wheel();
269  std::cout << ", sector=" << scid.sector();
270  std::cout << std::endl;
271  return nullptr;
272  }
273 
274  return &(*it).second;
275 }
276 
277 DTSCTrigUnit* DTTrig::trigUnit(int wheel, int stat, int sect) {
278  return const_cast<DTSCTrigUnit*>(constTrigUnit(wheel, stat, sect));
279 }
280 
281 DTSectColl const* DTTrig::SCUnit(int wheel, int sect) const {
282  sect++;
283  return SCUnit(DTSectCollId(wheel, sect));
284 }
285 
286 DTSCTrigUnit const* DTTrig::constTrigUnit(int wheel, int stat, int sect) const {
287  sect++; // offset 1 for sector number ([0,11] --> [1,12])
288  return constTrigUnit(DTChamberId(wheel, stat, sect));
289 }
290 
292  if (unit == nullptr)
293  return nullptr;
294  if (unit->nPhiSegm(step) < 1)
295  return nullptr;
296  return const_cast<DTChambPhSegm*>(unit->phiSegment(step, 1));
297 }
298 
300  if (unit == nullptr)
301  return nullptr;
302  if (unit->nPhiSegm(step) < 2)
303  return nullptr;
304  return const_cast<DTChambPhSegm*>(unit->phiSegment(step, 2));
305 }
306 
308  if (unit == nullptr)
309  return nullptr;
310  if (unit->nThetaSegm(step) < 1)
311  return nullptr;
312  return const_cast<DTChambThSegm*>(unit->thetaSegment(step, 1));
313 }
314 
316 
318 
320  if (sid.station() == 4)
321  return nullptr;
322  return chThetaSegm(trigUnit(sid), step);
323 }
324 
325 DTChambPhSegm* DTTrig::chPhiSegm1(int wheel, int stat, int sect, int step) {
326  return chPhiSegm1(trigUnit(wheel, stat, sect), step);
327  // to make it transparent to the outside world
328  // return chSectCollSegm1(wheel,stat,sect,step);
329 }
330 
331 DTChambPhSegm* DTTrig::chPhiSegm2(int wheel, int stat, int sect, int step) {
332  // if(stat==4&&(sect==3||sect==9)) {
333  // if hrizontal chambers of MB4 get first track of twin chamber (flag=1)
334  // return chPhiSegm1(trigUnit(wheel,stat,sect,1),step);
335  // } else {
336  return chPhiSegm2(trigUnit(wheel, stat, sect), step);
337  // to make it transparent to the outside world
338  // return chSectCollSegm2(wheel,stat,sect,step);
339  //}
340 }
341 
342 DTChambThSegm* DTTrig::chThetaSegm(int wheel, int stat, int sect, int step) {
343  if (stat == 4)
344  return nullptr;
345  return chThetaSegm(trigUnit(wheel, stat, sect), step);
346 }
347 
348 // SM sector collector section
350  if (unit == nullptr)
351  return nullptr;
352  if (unit->nSegmPh(step) < 1)
353  return nullptr;
354  return const_cast<DTSectCollPhSegm*>(unit->SectCollPhSegment(step, 1));
355 }
356 
358  if (unit == nullptr)
359  return nullptr;
360  if (unit->nSegmPh(step) < 2)
361  return nullptr;
362  return const_cast<DTSectCollPhSegm*>(unit->SectCollPhSegment(step, 2));
363 }
364 
366  return chSectCollPhSegm1(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
367 }
368 
370  // if(stat==4&&(sect==3||sect==9)) {
371  // if hrizontal chambers of MB4 get first track of twin chamber (flag=1)
372  //return chSectCollSegm1(trigUnit(wheel,stat,sect,1),step);
373  //} else {
374  return chSectCollPhSegm2(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
375  //}
376 }
377 
379  if (unit == nullptr)
380  return nullptr;
381  if (unit->nSegmTh(step) < 1)
382  return nullptr;
383  return const_cast<DTSectCollThSegm*>(unit->SectCollThSegment(step));
384 }
385 
387  return chSectCollThSegm(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
388 }
389 
390 // end SM
391 
392 void DTTrig::dumpGeom() const {
393  /*check();*/
394  for (TU_const_iterator it = _cache.begin(); it != _cache.end(); it++) {
395  ((*it).second).dumpGeom();
396  }
397 }
398 
399 void DTTrig::dumpLuts(short int lut_btic, const DTConfigManager* conf) const {
400  for (TU_const_iterator it = _cache.begin(); it != _cache.end(); it++) {
401  const DTSCTrigUnit& thisTU = (*it).second;
402 
403  // dump lut command file from geometry
404  thisTU.dumpLUT(lut_btic);
405 
406  // dump lut command file from parameters (DB or CMSSW)
407  DTChamberId chid = thisTU.statId();
408  conf->dumpLUTParam(chid);
409  }
410 
411  return;
412 }
413 
414 std::vector<DTBtiTrigData> DTTrig::BtiTrigs() const {
415  /*check();*/
416  std::vector<DTBtiTrigData> trigs;
417  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
418  const DTSCTrigUnit& tu = (*ptu).second;
419  auto peb = tu.BtiTrigs()->end();
420  for (auto p = tu.BtiTrigs()->begin(); p != peb; p++) {
421  trigs.push_back(*p);
422  }
423  }
424  return trigs;
425 }
426 
427 std::vector<DTTracoTrigData> DTTrig::TracoTrigs() const {
428  std::vector<DTTracoTrigData> trigs;
429  /*check();*/
430  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
431  const DTSCTrigUnit& tu = (*ptu).second;
432  auto peb = tu.TracoTrigs()->end();
433  for (auto p = tu.TracoTrigs()->begin(); p != peb; p++) {
434  trigs.push_back(*p);
435  }
436  }
437  return trigs;
438 }
439 
440 std::vector<DTChambPhSegm> DTTrig::TSPhTrigs() const {
441  /*check();*/
442  std::vector<DTChambPhSegm> trigs;
443  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
444  const DTSCTrigUnit& tu = (*ptu).second;
445  auto peb = tu.TSPhTrigs()->end();
446  for (auto p = tu.TSPhTrigs()->begin(); p != peb; p++) {
447  trigs.push_back(*p);
448  }
449  }
450  return trigs;
451 }
452 
453 std::vector<DTChambThSegm> DTTrig::TSThTrigs() const {
454  /*check();*/
455  std::vector<DTChambThSegm> trigs;
456  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
457  const DTSCTrigUnit& tu = (*ptu).second;
458  auto peb = tu.TSThTrigs()->end();
459  for (auto p = tu.TSThTrigs()->begin(); p != peb; p++) {
460  trigs.push_back(*p);
461  }
462  }
463  return trigs;
464 }
465 
466 std::vector<DTSectCollPhSegm> DTTrig::SCPhTrigs() const {
467  /*check();*/
468  std::vector<DTSectCollPhSegm> trigs;
469  for (auto psc = _cache1.begin(); psc != _cache1.end(); psc++) {
470  // DTSCTrigUnit* tu = (*ptu).second;
471  //
472  // old SMDB:
473  // DTSectColl* tu = (*ptu).second;
474  // std::vector<DTChambPhSegm>::const_iterator p=0;
475  // std::vector<DTChambPhSegm>::const_iterator peb=tu->SCTrigs()->end();
476  // for(p=tu->SCTrigs()->begin();p!=peb;p++){
477  // trigs.push_back(*p);
478  // }
479 
480  const DTSectColl& sc = (*psc).second;
481  auto peb = sc.endPh();
482  for (auto p = sc.beginPh(); p != peb; p++) {
483  trigs.push_back(*p);
484  }
485  }
486  return trigs;
487 }
488 
489 std::vector<DTSectCollThSegm> DTTrig::SCThTrigs() const {
490  /*check();*/
491  std::vector<DTSectCollThSegm> trigs;
492  for (auto psc = _cache1.begin(); psc != _cache1.end(); psc++) {
493  const DTSectColl& sc = (*psc).second;
494  auto peb = sc.endTh();
495  for (auto p = sc.beginTh(); p != peb; p++) {
496  trigs.push_back(*p);
497  }
498  }
499  return trigs;
500 }
DTChamber::id
DTChamberId id() const
Return the DTChamberId of this chamber.
Definition: DTChamber.cc:32
DTGeometry
Definition: DTGeometry.h:28
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
DTTrig::_inputexist
bool _inputexist
Definition: DTTrig.h:267
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
Handle.h
DTTrig::TSThTrigs
std::vector< DTChambThSegm > TSThTrigs() const
Return a copy of all the Trigger Server (Theta) triggers.
Definition: DTTrig.cc:453
mps_fire.i
i
Definition: mps_fire.py:428
MessageLogger.h
DTTrig::SCUnit
DTSectColl const * SCUnit(DTSectCollId scid) const
Return a SC unit - Muon numbering - const version.
Definition: DTTrig.cc:264
DTCache::size
int size() const
Get cache vector's size.
Definition: DTCache.h:44
ESHandle.h
DTTrig::TU_iterator
TUcontainer::iterator TU_iterator
Definition: DTTrig.h:62
step
step
Definition: StallMonitor.cc:94
DTSectColl
Definition: DTSectColl.h:56
DTSectColl::beginPh
std::vector< DTSectCollPhSegm >::const_iterator beginPh() const
Return iterator to the beghin of Phi cache.
Definition: DTSectColl.h:148
DTTrig::_cache
TUcontainer _cache
Definition: DTTrig.h:259
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
DTTrig::clear
void clear()
Clear the trigger units cache.
Definition: DTTrig.cc:239
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTChamber
Definition: DTChamber.h:24
DTTrig::_configid
unsigned long long _configid
Definition: DTTrig.h:269
DTTrig::SC_const_iterator
SCcontainer::const_iterator SC_const_iterator
Definition: DTTrig.h:66
DTTrig::chPhiSegm1
DTChambPhSegm * chPhiSegm1(DTChamberId sid, int step)
Return the first phi track segment in req. chamber/step.
Definition: DTTrig.cc:315
DTConfigManager::dumpLUTParam
void dumpLUTParam(DTChamberId &chambid) const
Dump luts string commands from configuration parameters.
Definition: DTConfigManager.cc:188
DTTrig::SCPhTrigs
std::vector< DTSectCollPhSegm > SCPhTrigs() const
Return a copy of all the Sector Collector (Phi) triggers.
Definition: DTTrig.cc:466
DTTrig::BtiTrigs
std::vector< DTBtiTrigData > BtiTrigs() const
Return a copy of all the BTI triggers.
Definition: DTTrig.cc:414
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:153
DTTrig::constTrigUnit
DTSCTrigUnit const * constTrigUnit(DTChamberId sid) const
Return a trigger unit - Muon numbering - const version.
Definition: DTTrig.cc:249
DTTracoCard::reconstruct
void reconstruct() override
Load BTIs triggers and run TRACOs algorithm.
Definition: DTTracoCard.h:101
DTSectCollThSegm
Definition: DTSectCollThSegm.h:38
DTCache::begin
const_iterator begin() const
Get first cache element.
Definition: DTCache.h:38
DTTrig::TracoTrigs
std::vector< DTTracoTrigData > TracoTrigs() const
Return a copy of all the TRACO triggers.
Definition: DTTrig.cc:427
edm::Handle< DTDigiCollection >
DTSectColl::endPh
std::vector< DTSectCollPhSegm >::const_iterator endPh() const
Return iterator to the end of Phi cache.
Definition: DTSectColl.h:154
DTGeometry::chamber
const DTChamber * chamber(const DTChamberId &id) const
Return a DTChamber given its id.
Definition: DTGeometry.cc:90
DTTrig::updateES
void updateES(const edm::EventSetup &iSetup)
update the eventsetup info
Definition: DTTrig.cc:207
DTTrig::_cache1
SCcontainer _cache1
Definition: DTTrig.h:260
DTTrig::DTDigiMap
std::map< DTChamberId, DTDigiCollection, std::less< DTChamberId > > DTDigiMap
Definition: DTTrig.h:69
DTTrig::_debug
bool _debug
Definition: DTTrig.h:266
DTSectColl::reconstruct
void reconstruct() override
Load Trigger Units triggers and run Sector Collector algorithm.
Definition: DTSectColl.h:178
DTTrig::triggerReco
void triggerReco(const edm::Event &iEvent, const edm::EventSetup &iSetup)
Run the whole trigger reconstruction chain.
Definition: DTTrig.cc:132
DTTrig::TSPhTrigs
std::vector< DTChambPhSegm > TSPhTrigs() const
Return a copy of all the Trigger Server (Phi) triggers.
Definition: DTTrig.cc:440
edm::EventSetup::get
T get() const
Definition: EventSetup.h:87
DTTrig::chPhiSegm2
DTChambPhSegm * chPhiSegm2(DTChamberId sid, int step)
Return the second phi track segment in req. chamber/step.
Definition: DTTrig.cc:317
DTTSPhi::reconstruct
void reconstruct() override
Load TRACO triggers and run TSPhi algorithm.
Definition: DTTSPhi.h:80
DTChambThSegm
Definition: DTChambThSegm.h:39
DTTrig::chSectCollPhSegm2
DTSectCollPhSegm * chSectCollPhSegm2(DTSectColl *unit, int step)
Return the second phi track segment in req. chamber/step [SC step].
Definition: DTTrig.cc:357
DTGeometry::chambers
const std::vector< const DTChamber * > & chambers() const
Return a vector of all Chamber.
Definition: DTGeometry.cc:84
edm::ESHandle< DTGeometry >
DTSectCollId
Definition: DTSectCollId.h:18
DTTrig::DTTrig
DTTrig(const edm::ParameterSet &params, edm::ConsumesCollector &&ix)
Constructors.
Definition: DTTrig.cc:46
DTTrig::trigUnit
DTSCTrigUnit * trigUnit(DTChamberId sid)
Return a trigger unit - Muon numbering.
Definition: DTTrig.cc:245
DTLayerId
Definition: DTLayerId.h:12
DTConfigManagerRcd
Definition: DTConfigManagerRcd.h:31
DTSectColl::sizePh
int sizePh() const
Return Phi cache size.
Definition: DTSectColl.h:151
DTLayer.h
DTTrig::_geomid
unsigned long long _geomid
Definition: DTTrig.h:270
DTSectColl::beginTh
std::vector< DTSectCollThSegm >::const_iterator beginTh() const
Return iterator to the begni of Theta cache.
Definition: DTSectColl.h:157
funct::true
true
Definition: Factorize.h:173
DTTrig::chSectCollPhSegm1
DTSectCollPhSegm * chSectCollPhSegm1(DTSectColl *unit, int step)
Return the first phi track segment in req. chamber/step [SC step].
Definition: DTTrig.cc:349
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:233
edm::ParameterSet
Definition: ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
Event.h
DTTrig::chThetaSegm
DTChambThSegm * chThetaSegm(DTChamberId sid, int step)
Return the theta candidates in req. chamber/step.
Definition: DTTrig.cc:319
DTSuperLayerId::chamberId
DTChamberId chamberId() const
Return the corresponding ChamberId.
Definition: DTSuperLayerId.h:45
DTDigiCollection
DTCache::end
const_iterator end() const
Get last cache element.
Definition: DTCache.h:41
makeMuonMisalignmentScenario.wheel
wheel
Definition: makeMuonMisalignmentScenario.py:319
DTSectColl::getTSPhi
DTTSPhi * getTSPhi(int istat) const
Return TSPhi.
Definition: DTSectColl.h:69
DTTrig::dtGeomBeginRunToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomBeginRunToken_
Definition: DTTrig.h:264
iEvent
int iEvent
Definition: GenABIO.cc:224
DTSectCollId::wheel
int wheel() const
Definition: DTSectCollId.h:30
DTCache::clearCache
void clearCache()
Clear cache vector.
Definition: DTCache.h:47
DTSectColl::endTh
std::vector< DTSectCollThSegm >::const_iterator endTh() const
Return iterator to the end of Theta cache.
Definition: DTSectColl.h:163
edm::EventSetup::getHandle
ESHandle< T > getHandle(const ESGetToken< T, R > &iToken) const
Definition: EventSetup.h:155
DTTrig::_digitag
edm::InputTag _digitag
Definition: DTTrig.h:262
DTSectCollPhSegm
Definition: DTSectCollPhSegm.h:39
DTSectColl::clearCache
void clearCache()
Local position in chamber of a trigger-data object.
Definition: DTSectColl.h:172
DTTrig::SCThTrigs
std::vector< DTSectCollThSegm > SCThTrigs() const
Return a copy of all the Sector Collector (Theta) triggers.
Definition: DTTrig.cc:489
edm::EventSetup
Definition: EventSetup.h:58
DTSCTrigUnit::BtiTrigs
DTBtiCard * BtiTrigs() const
Return container of BTI triggers.
Definition: DTSCTrigUnit.h:84
DTSCTrigUnit::dumpLUT
void dumpLUT(short int btic) const
Dump the Lut file.
Definition: DTSCTrigUnit.h:117
DTConfigManager
Definition: DTConfigManager.h:49
DTTrig::dumpGeom
void dumpGeom() const
Dump the geometry.
Definition: DTTrig.cc:392
DTSCTrigUnit
Definition: DTSCTrigUnit.h:50
DTTrig::chSectCollThSegm
DTSectCollThSegm * chSectCollThSegm(DTSectColl *unit, int step)
Return the theta track segment in req. chamber/step [SC step].
Definition: DTTrig.cc:378
DTTrig::dumpLuts
void dumpLuts(short int lut_btic, const DTConfigManager *conf) const
Dump the LUT files.
Definition: DTTrig.cc:399
InputTag.h
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
DTBtiCard::clearCache
void clearCache()
Clear all BTI stuff (map & cache)
Definition: DTBtiCard.cc:85
DTTrig::dtGeomToken_
edm::ESGetToken< DTGeometry, MuonGeometryRecord > dtGeomToken_
Definition: DTTrig.h:263
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTTrig::createTUs
void createTUs(const edm::EventSetup &iSetup)
Create the trigger units and store them in the cache.
Definition: DTTrig.cc:63
edm::Transition::BeginRun
DTLayerId::superlayerId
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:45
DTSectCollId::sector
int sector() const
Definition: DTSectCollId.h:31
DTChambPhSegm
Definition: DTChambPhSegm.h:41
DTTrig::DTDigiMap_iterator
DTDigiMap::iterator DTDigiMap_iterator
Definition: DTTrig.h:70
DTSCTrigUnit::TSThTrigs
DTTSTheta * TSThTrigs() const
Return the chamber Trigger Server (Theta)
Definition: DTSCTrigUnit.h:93
MuonDigiCollection::Range
std::pair< const_iterator, const_iterator > Range
Definition: MuonDigiCollection.h:95
DTTrig::confToken_
edm::ESGetToken< DTConfigManager, DTConfigManagerRcd > confToken_
Definition: DTTrig.h:265
DTTrig::TU_const_iterator
TUcontainer::const_iterator TU_const_iterator
Definition: DTTrig.h:63
DTChamber.h
DTSectColl::getTSTheta
DTTSTheta * getTSTheta(int istat) const
Return TSTheta.
Definition: DTSectColl.h:72
DTSCTrigUnit::statId
DTChamberId statId() const
Identifier of the associated chamber.
Definition: DTSCTrigUnit.h:72
edm::eventsetup::EventSetupRecord::cacheIdentifier
unsigned long long cacheIdentifier() const
Definition: EventSetupRecord.h:187
DTChamberId
Definition: DTChamberId.h:14
DTTSTheta::reconstruct
void reconstruct() override
Load BTIs triggers and run TSTheta algoritm.
Definition: DTTSTheta.h:81
DTTrig::SC_iterator
SCcontainer::iterator SC_iterator
Definition: DTTrig.h:65
edm_modernize_messagelogger.stat
stat
Definition: edm_modernize_messagelogger.py:27
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
DigiContainerIterator
Definition: MuonDigiCollection.h:30
edm::Event
Definition: Event.h:73
MuonGeometryRecord
Definition: MuonGeometryRecord.h:34
DTBtiCard::reconstruct
virtual void reconstruct(const DTDigiCollection dtDigis)
Definition: DTBtiCard.h:101
DTChamberId::wheel
int wheel() const
Return the wheel number.
Definition: DTChamberId.h:39
DTSCTrigUnit::TracoTrigs
DTTracoCard * TracoTrigs() const
Return container of TRACO triggers.
Definition: DTSCTrigUnit.h:87
edm::InputTag
Definition: InputTag.h:15
DTSectColl::sizeTh
int sizeTh() const
Return Theta cache size.
Definition: DTSectColl.h:160
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
DTSCTrigUnit::TSPhTrigs
DTTSPhi * TSPhTrigs() const
Return the chamber Trigger Server (Phi)
Definition: DTSCTrigUnit.h:90
DTTrig::_conf_manager
const DTConfigManager * _conf_manager
Definition: DTTrig.h:261
DTTrig.h
DTTracoCard::clearCache
void clearCache()
Clear all traco stuff (cache & map)
Definition: DTTracoCard.cc:61
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42