CMS 3D CMS Logo

List of all members | Public Types | Public Member Functions | Private Member Functions | Private Attributes
DTTrig Class Reference

#include <DTTrig.h>

Public Types

typedef std::map< DTChamberId, DTDigiCollection, std::less< DTChamberId > > DTDigiMap
 
typedef DTDigiMap::const_iterator DTDigiMap_const_iterator
 
typedef DTDigiMap::iterator DTDigiMap_iterator
 
typedef std::pair< TU_iterator, TU_iteratorRange
 
typedef SCcontainer::const_iterator SC_const_iterator
 
typedef SCcontainer::iterator SC_iterator
 
typedef std::map< DTSectCollId, DTSectColl, std::less< DTSectCollId > > SCcontainer
 
typedef std::pair< SC_iterator, SC_iteratorSCRange
 
typedef TUcontainer::const_iterator TU_const_iterator
 
typedef TUcontainer::iterator TU_iterator
 
typedef std::map< DTChamberId, DTSCTrigUnit, std::less< DTChamberId > > TUcontainer
 

Public Member Functions

TU_iterator begin ()
 Begin of the trigger units store. More...
 
SC_iterator begin1 ()
 Begin of the sector collector store. More...
 
std::vector< DTBtiTrigDataBtiTrigs () const
 Return a copy of all the BTI triggers. More...
 
Range cache ()
 Begin of the trigger units store. More...
 
SCRange cache1 ()
 Range of the sector collector store. More...
 
DTChambPhSegmchPhiSegm1 (DTChamberId sid, int step)
 Return the first phi track segment in req. chamber/step. More...
 
DTChambPhSegmchPhiSegm1 (DTSCTrigUnit *unit, int step)
 Return the first phi track segment in req. chamber/step. More...
 
DTChambPhSegmchPhiSegm1 (int wheel, int stat, int sect, int step)
 Return the first phi track segment in req. chamber/step, MTTF numbering. More...
 
DTChambPhSegmchPhiSegm2 (DTChamberId sid, int step)
 Return the second phi track segment in req. chamber/step. More...
 
DTChambPhSegmchPhiSegm2 (DTSCTrigUnit *unit, int step)
 Return the second phi track segment in req. chamber/step. More...
 
DTChambPhSegmchPhiSegm2 (int wheel, int stat, int sect, int step)
 Return the second phi track segment in req. chamber/step, MTTF numbering. More...
 
DTSectCollPhSegmchSectCollPhSegm1 (DTSectColl *unit, int step)
 Return the first phi track segment in req. chamber/step [SC step]. More...
 
DTSectCollPhSegmchSectCollPhSegm1 (int wheel, int sect, int step)
 Return the first phi track segment in req. chamber/step, [MTTF numbering & SC step]. More...
 
DTSectCollPhSegmchSectCollPhSegm2 (DTSectColl *unit, int step)
 Return the second phi track segment in req. chamber/step [SC step]. More...
 
DTSectCollPhSegmchSectCollPhSegm2 (int wheel, int sect, int step)
 Return the second phi track segment in req. chamber/step, [MTTF numbering & SC step]. More...
 
DTSectCollThSegmchSectCollThSegm (DTSectColl *unit, int step)
 Return the theta track segment in req. chamber/step [SC step]. More...
 
DTSectCollThSegmchSectCollThSegm (int wheel, int sect, int step)
 Return the theta track segment in req. chamber/step, [MTTF numbering & SC step]. More...
 
DTChambThSegmchThetaSegm (DTChamberId sid, int step)
 Return the theta candidates in req. chamber/step. More...
 
DTChambThSegmchThetaSegm (DTSCTrigUnit *unit, int step)
 Return the theta candidates in req. chamber/step. More...
 
DTChambThSegmchThetaSegm (int wheel, int stat, int sect, int step)
 Return the theta candidates in req. chamber/step, MTTF numbering. More...
 
void clear ()
 Clear the trigger units cache. More...
 
GlobalVector CMSDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in CMS frame. More...
 
GlobalPoint CMSPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in CMS frame. More...
 
void createTUs (const edm::EventSetup &iSetup)
 Create the trigger units and store them in the cache. More...
 
 DTTrig (const edm::ParameterSet &params, edm::ConsumesCollector &&ix)
 Constructors. More...
 
void dumpGeom () const
 Dump the geometry. More...
 
void dumpLuts (short int lut_btic, const DTConfigManager *conf) const
 Dump the LUT files. More...
 
TU_iterator end ()
 End of the trigger units store. More...
 
SC_iterator end1 ()
 End of the sectoor collector store. More...
 
TU_iterator find (DTChamberId id)
 Find a trigger unit in the map. More...
 
SC_iterator find1 (DTSectCollId id)
 Find a Sector Collector in the map. More...
 
int getBXOffset () const
 Get BX Offset. More...
 
LocalVector localDirection (const DTTrigData *trig) const
 Direction of a trigger-data object in chamber frame. More...
 
LocalPoint localPosition (const DTTrigData *trig) const
 Coordinate of a trigger-data object in chamber frame. More...
 
void print (DTTrigData *trig) const
 Print a trigger-data object. More...
 
std::vector< DTSectCollPhSegmSCPhTrigs () const
 Return a copy of all the Sector Collector (Phi) triggers. More...
 
std::vector< DTSectCollThSegmSCThTrigs () const
 Return a copy of all the Sector Collector (Theta) triggers. More...
 
int size () const
 Size of the trigger units store. More...
 
int size1 () const
 Size of the sector collector store. More...
 
std::vector< DTTracoTrigDataTracoTrigs () const
 Return a copy of all the TRACO triggers. More...
 
void triggerReco (const edm::Event &iEvent, const edm::EventSetup &iSetup)
 Run the whole trigger reconstruction chain. More...
 
DTSCTrigUnittrigUnit (DTChamberId sid)
 Return a trigger unit - Muon numbering. More...
 
DTSCTrigUnittrigUnit (int wheel, int stat, int sect)
 Return a trigger unit - Muon numbering, MTTF numbering. More...
 
std::vector< DTChambPhSegmTSPhTrigs () const
 Return a copy of all the Trigger Server (Phi) triggers. More...
 
std::vector< DTChambThSegmTSThTrigs () const
 Return a copy of all the Trigger Server (Theta) triggers. More...
 
void updateES (const edm::EventSetup &iSetup)
 update the eventsetup info More...
 

Private Member Functions

DTSCTrigUnit const * constTrigUnit (DTChamberId sid) const
 Return a trigger unit - Muon numbering - const version. More...
 
DTSCTrigUnit const * constTrigUnit (int wheel, int stat, int sect) const
 Return a trigger unit - Muon numbering, MTTF numbering - const version. More...
 
DTSectColl const * SCUnit (DTSectCollId scid) const
 Return a SC unit - Muon numbering - const version. More...
 
DTSectColl const * SCUnit (int wheel, int sect) const
 Return a SC Unit Muon Numbering, MTTF numbering - const version. More...
 

Private Attributes

TUcontainer _cache
 
SCcontainer _cache1
 
const DTConfigManager_conf_manager
 
unsigned long long _configid
 
bool _debug
 
edm::InputTag _digitag
 
unsigned long long _geomid
 
bool _inputexist
 

Detailed Description

Steering routine for L1 trigger simulation in a muon barrel station

Author
C.Grandi

Definition at line 54 of file DTTrig.h.

Member Typedef Documentation

◆ DTDigiMap

typedef std::map<DTChamberId, DTDigiCollection, std::less<DTChamberId> > DTTrig::DTDigiMap

Definition at line 64 of file DTTrig.h.

◆ DTDigiMap_const_iterator

typedef DTDigiMap::const_iterator DTTrig::DTDigiMap_const_iterator

Definition at line 66 of file DTTrig.h.

◆ DTDigiMap_iterator

typedef DTDigiMap::iterator DTTrig::DTDigiMap_iterator

Definition at line 65 of file DTTrig.h.

◆ Range

typedef std::pair<TU_iterator, TU_iterator> DTTrig::Range

Definition at line 62 of file DTTrig.h.

◆ SC_const_iterator

typedef SCcontainer::const_iterator DTTrig::SC_const_iterator

Definition at line 61 of file DTTrig.h.

◆ SC_iterator

typedef SCcontainer::iterator DTTrig::SC_iterator

Definition at line 60 of file DTTrig.h.

◆ SCcontainer

typedef std::map<DTSectCollId, DTSectColl, std::less<DTSectCollId> > DTTrig::SCcontainer

Definition at line 59 of file DTTrig.h.

◆ SCRange

Definition at line 63 of file DTTrig.h.

◆ TU_const_iterator

typedef TUcontainer::const_iterator DTTrig::TU_const_iterator

Definition at line 58 of file DTTrig.h.

◆ TU_iterator

typedef TUcontainer::iterator DTTrig::TU_iterator

Definition at line 57 of file DTTrig.h.

◆ TUcontainer

typedef std::map<DTChamberId, DTSCTrigUnit, std::less<DTChamberId> > DTTrig::TUcontainer

Definition at line 56 of file DTTrig.h.

Constructor & Destructor Documentation

◆ DTTrig()

DTTrig::DTTrig ( const edm::ParameterSet params,
edm::ConsumesCollector &&  ix 
)

Constructors.

Definition at line 50 of file DTTrig.cc.

51  : _inputexist(true), _configid(0), _geomid(0) {
52  // Set configuration parameters
53  _debug = params.getUntrackedParameter<bool>("debug");
54 
55  if (_debug) {
56  std::cout << std::endl;
57  std::cout << "**** Initialization of DTTrigger ****" << std::endl;
58  }
59 
60  _digitag = params.getParameter<edm::InputTag>("digiTag");
61  iC.consumes<DTDigiCollection>(_digitag);
62 }

References _debug, _digitag, gather_cfg::cout, and CalibrationSummaryClient_cfi::params.

Member Function Documentation

◆ begin()

TU_iterator DTTrig::begin ( void  )
inline

Begin of the trigger units store.

Definition at line 88 of file DTTrig.h.

88  { /*check();*/
89  return _cache.begin();
90  }

References _cache.

◆ begin1()

SC_iterator DTTrig::begin1 ( )
inline

Begin of the sector collector store.

Definition at line 115 of file DTTrig.h.

115  { /*check();*/
116  return _cache1.begin();
117  }

References _cache1.

◆ BtiTrigs()

std::vector< DTBtiTrigData > DTTrig::BtiTrigs ( ) const

Return a copy of all the BTI triggers.

Definition at line 416 of file DTTrig.cc.

416  {
417  /*check();*/
418  std::vector<DTBtiTrigData> trigs;
419  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
420  const DTSCTrigUnit& tu = (*ptu).second;
421  auto peb = tu.BtiTrigs()->end();
422  for (auto p = tu.BtiTrigs()->begin(); p != peb; p++) {
423  trigs.push_back(*p);
424  }
425  }
426  return trigs;
427 }

References _cache, DTCache< T, Coll >::begin(), DTSCTrigUnit::BtiTrigs(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by DTTrigTest::analyze().

◆ cache()

Range DTTrig::cache ( )
inline

Begin of the trigger units store.

Definition at line 103 of file DTTrig.h.

103  { /*check();*/
104  return Range(_cache.begin(), _cache.end());
105  }

References _cache.

◆ cache1()

SCRange DTTrig::cache1 ( )
inline

Range of the sector collector store.

Definition at line 130 of file DTTrig.h.

130  { /*check();*/
131  return SCRange(_cache1.begin(), _cache1.end());
132  }

References _cache1.

◆ chPhiSegm1() [1/3]

DTChambPhSegm * DTTrig::chPhiSegm1 ( DTChamberId  sid,
int  step 
)

Return the first phi track segment in req. chamber/step.

Definition at line 317 of file DTTrig.cc.

317 { return chPhiSegm1(trigUnit(sid), step); }

References trigUnit().

Referenced by chPhiSegm1().

◆ chPhiSegm1() [2/3]

DTChambPhSegm * DTTrig::chPhiSegm1 ( DTSCTrigUnit unit,
int  step 
)

Return the first phi track segment in req. chamber/step.

Definition at line 293 of file DTTrig.cc.

293  {
294  if (unit == nullptr)
295  return nullptr;
296  if (unit->nPhiSegm(step) < 1)
297  return nullptr;
298  return const_cast<DTChambPhSegm*>(unit->phiSegment(step, 1));
299 }

References unit().

◆ chPhiSegm1() [3/3]

DTChambPhSegm * DTTrig::chPhiSegm1 ( int  wheel,
int  stat,
int  sect,
int  step 
)

Return the first phi track segment in req. chamber/step, MTTF numbering.

Definition at line 327 of file DTTrig.cc.

327  {
328  return chPhiSegm1(trigUnit(wheel, stat, sect), step);
329  // to make it transparent to the outside world
330  // return chSectCollSegm1(wheel,stat,sect,step);
331 }

References chPhiSegm1(), hgcalPlots::stat, trigUnit(), and makeMuonMisalignmentScenario::wheel.

◆ chPhiSegm2() [1/3]

DTChambPhSegm * DTTrig::chPhiSegm2 ( DTChamberId  sid,
int  step 
)

Return the second phi track segment in req. chamber/step.

Definition at line 319 of file DTTrig.cc.

319 { return chPhiSegm2(trigUnit(sid), step); }

References trigUnit().

Referenced by chPhiSegm2().

◆ chPhiSegm2() [2/3]

DTChambPhSegm * DTTrig::chPhiSegm2 ( DTSCTrigUnit unit,
int  step 
)

Return the second phi track segment in req. chamber/step.

Definition at line 301 of file DTTrig.cc.

301  {
302  if (unit == nullptr)
303  return nullptr;
304  if (unit->nPhiSegm(step) < 2)
305  return nullptr;
306  return const_cast<DTChambPhSegm*>(unit->phiSegment(step, 2));
307 }

References unit().

◆ chPhiSegm2() [3/3]

DTChambPhSegm * DTTrig::chPhiSegm2 ( int  wheel,
int  stat,
int  sect,
int  step 
)

Return the second phi track segment in req. chamber/step, MTTF numbering.

Definition at line 333 of file DTTrig.cc.

333  {
334  // if(stat==4&&(sect==3||sect==9)) {
335  // if hrizontal chambers of MB4 get first track of twin chamber (flag=1)
336  // return chPhiSegm1(trigUnit(wheel,stat,sect,1),step);
337  // } else {
338  return chPhiSegm2(trigUnit(wheel, stat, sect), step);
339  // to make it transparent to the outside world
340  // return chSectCollSegm2(wheel,stat,sect,step);
341  //}
342 }

References chPhiSegm2(), hgcalPlots::stat, trigUnit(), and makeMuonMisalignmentScenario::wheel.

◆ chSectCollPhSegm1() [1/2]

DTSectCollPhSegm * DTTrig::chSectCollPhSegm1 ( DTSectColl unit,
int  step 
)

Return the first phi track segment in req. chamber/step [SC step].

Definition at line 351 of file DTTrig.cc.

351  {
352  if (unit == nullptr)
353  return nullptr;
354  if (unit->nSegmPh(step) < 1)
355  return nullptr;
356  return const_cast<DTSectCollPhSegm*>(unit->SectCollPhSegment(step, 1));
357 }

References unit().

Referenced by chSectCollPhSegm1().

◆ chSectCollPhSegm1() [2/2]

DTSectCollPhSegm * DTTrig::chSectCollPhSegm1 ( int  wheel,
int  sect,
int  step 
)

Return the first phi track segment in req. chamber/step, [MTTF numbering & SC step].

Definition at line 367 of file DTTrig.cc.

367  {
368  return chSectCollPhSegm1(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
369 }

References chSectCollPhSegm1(), SCUnit(), and makeMuonMisalignmentScenario::wheel.

◆ chSectCollPhSegm2() [1/2]

DTSectCollPhSegm * DTTrig::chSectCollPhSegm2 ( DTSectColl unit,
int  step 
)

Return the second phi track segment in req. chamber/step [SC step].

Definition at line 359 of file DTTrig.cc.

359  {
360  if (unit == nullptr)
361  return nullptr;
362  if (unit->nSegmPh(step) < 2)
363  return nullptr;
364  return const_cast<DTSectCollPhSegm*>(unit->SectCollPhSegment(step, 2));
365 }

References unit().

Referenced by chSectCollPhSegm2().

◆ chSectCollPhSegm2() [2/2]

DTSectCollPhSegm * DTTrig::chSectCollPhSegm2 ( int  wheel,
int  sect,
int  step 
)

Return the second phi track segment in req. chamber/step, [MTTF numbering & SC step].

Definition at line 371 of file DTTrig.cc.

371  {
372  // if(stat==4&&(sect==3||sect==9)) {
373  // if hrizontal chambers of MB4 get first track of twin chamber (flag=1)
374  //return chSectCollSegm1(trigUnit(wheel,stat,sect,1),step);
375  //} else {
376  return chSectCollPhSegm2(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
377  //}
378 }

References chSectCollPhSegm2(), SCUnit(), and makeMuonMisalignmentScenario::wheel.

◆ chSectCollThSegm() [1/2]

DTSectCollThSegm * DTTrig::chSectCollThSegm ( DTSectColl unit,
int  step 
)

Return the theta track segment in req. chamber/step [SC step].

Definition at line 380 of file DTTrig.cc.

380  {
381  if (unit == nullptr)
382  return nullptr;
383  if (unit->nSegmTh(step) < 1)
384  return nullptr;
385  return const_cast<DTSectCollThSegm*>(unit->SectCollThSegment(step));
386 }

References unit().

Referenced by chSectCollThSegm().

◆ chSectCollThSegm() [2/2]

DTSectCollThSegm * DTTrig::chSectCollThSegm ( int  wheel,
int  sect,
int  step 
)

Return the theta track segment in req. chamber/step, [MTTF numbering & SC step].

Definition at line 388 of file DTTrig.cc.

388  {
389  return chSectCollThSegm(const_cast<DTSectColl*>(SCUnit(wheel, sect)), step);
390 }

References chSectCollThSegm(), SCUnit(), and makeMuonMisalignmentScenario::wheel.

◆ chThetaSegm() [1/3]

DTChambThSegm * DTTrig::chThetaSegm ( DTChamberId  sid,
int  step 
)

Return the theta candidates in req. chamber/step.

Definition at line 321 of file DTTrig.cc.

321  {
322  if (sid.station() == 4)
323  return nullptr;
324  return chThetaSegm(trigUnit(sid), step);
325 }

References DTChamberId::station(), and trigUnit().

Referenced by chThetaSegm().

◆ chThetaSegm() [2/3]

DTChambThSegm * DTTrig::chThetaSegm ( DTSCTrigUnit unit,
int  step 
)

Return the theta candidates in req. chamber/step.

Definition at line 309 of file DTTrig.cc.

309  {
310  if (unit == nullptr)
311  return nullptr;
312  if (unit->nThetaSegm(step) < 1)
313  return nullptr;
314  return const_cast<DTChambThSegm*>(unit->thetaSegment(step, 1));
315 }

References unit().

◆ chThetaSegm() [3/3]

DTChambThSegm * DTTrig::chThetaSegm ( int  wheel,
int  stat,
int  sect,
int  step 
)

Return the theta candidates in req. chamber/step, MTTF numbering.

Definition at line 344 of file DTTrig.cc.

344  {
345  if (stat == 4)
346  return nullptr;
347  return chThetaSegm(trigUnit(wheel, stat, sect), step);
348 }

References chThetaSegm(), hgcalPlots::stat, trigUnit(), and makeMuonMisalignmentScenario::wheel.

◆ clear()

void DTTrig::clear ( void  )

Clear the trigger units cache.

Definition at line 241 of file DTTrig.cc.

241  {
242  // Delete the map
243  _cache.clear();
244  _cache1.clear();
245 }

References _cache, and _cache1.

◆ CMSDirection()

GlobalVector DTTrig::CMSDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in CMS frame.

Definition at line 232 of file DTTrig.h.

232  {
233  return constTrigUnit(trig->ChamberId())->CMSDirection(trig);
234  }

References constTrigUnit(), and ClusterTask_cfi::trig.

Referenced by DTTrigTest::analyze().

◆ CMSPosition()

GlobalPoint DTTrig::CMSPosition ( const DTTrigData trig) const
inline

Coordinate of a trigger-data object in CMS frame.

Definition at line 224 of file DTTrig.h.

224 { return constTrigUnit(trig->ChamberId())->CMSPosition(trig); }

References CMSPosition(), constTrigUnit(), and ClusterTask_cfi::trig.

Referenced by DTTrigTest::analyze(), and CMSPosition().

◆ constTrigUnit() [1/2]

DTSCTrigUnit const * DTTrig::constTrigUnit ( DTChamberId  sid) const
private

Return a trigger unit - Muon numbering - const version.

Definition at line 251 of file DTTrig.cc.

251  {
252  // std::cout << " SC: running DTTrig::constTrigUnit(DTChamberId chid)" << std::endl;
253  TU_const_iterator it = _cache.find(chid);
254  if (it == _cache.end()) {
255  std::cout << "DTTrig::trigUnit: Trigger Unit not in the map: ";
256  std::cout << " wheel=" << chid.wheel();
257  std::cout << ", station=" << chid.station();
258  std::cout << ", sector=" << chid.sector();
259  std::cout << std::endl;
260  return nullptr;
261  }
262 
263  return &(*it).second;
264 }

References _cache, gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().

Referenced by CMSDirection(), CMSPosition(), constTrigUnit(), localDirection(), localPosition(), print(), and trigUnit().

◆ constTrigUnit() [2/2]

DTSCTrigUnit const * DTTrig::constTrigUnit ( int  wheel,
int  stat,
int  sect 
) const
private

Return a trigger unit - Muon numbering, MTTF numbering - const version.

Definition at line 288 of file DTTrig.cc.

288  {
289  sect++; // offset 1 for sector number ([0,11] --> [1,12])
290  return constTrigUnit(DTChamberId(wheel, stat, sect));
291 }

References constTrigUnit(), hgcalPlots::stat, and makeMuonMisalignmentScenario::wheel.

◆ createTUs()

void DTTrig::createTUs ( const edm::EventSetup iSetup)

Create the trigger units and store them in the cache.

Definition at line 64 of file DTTrig.cc.

64  {
65  // build up Sector Collectors and then
66  // build the trrigger units (one for each chamber)
67  for (int iwh = -2; iwh <= 2; iwh++) {
68  for (int ise = 1; ise <= 12; ise++) {
69  if (_debug) {
70  std::cout << "calling sectcollid wh sc " << iwh << " " << ise << std::endl;
71  }
72  DTSectCollId scid(iwh, ise);
73  {
74  SC_iterator it = _cache1.find(scid);
75  if (it != _cache1.end()) {
76  if (_debug) {
77  std::cout << "DTTrig::createTUs: Sector Collector unit already exists" << std::endl;
78  }
79  continue;
80  }
81  }
82  {
83  auto element = _cache1.emplace(scid, scid);
84  if (_debug) {
85  std::cout << " DTTrig::createTUs new SC sc = " << &(element.first->second) << " at scid.sector() "
86  << scid.sector() << " at scid.wheel() " << scid.wheel() << std::endl;
87  }
88  }
89  }
90  }
91 
93  iSetup.get<MuonGeometryRecord>().get(dtGeom);
94  for (std::vector<const DTChamber*>::const_iterator ich = dtGeom->chambers().begin(); ich != dtGeom->chambers().end();
95  ich++) {
96  const DTChamber* chamb = (*ich);
97  DTChamberId chid = chamb->id();
98  TU_iterator it = _cache.find(chid);
99  if (it != _cache.end()) {
100  if (_debug)
101  std::cout << "DTTrig::init: Trigger unit already exists" << std::endl;
102  continue;
103  }
104 
105  auto info = _cache.emplace(chid, chamb);
106  auto tru = &(info.first->second);
107 
108  //----------- add TU to corresponding SC
109  // returning correspondent SC id
110  DTSectCollId scid;
111  if (chid.sector() == 13) {
112  scid = DTSectCollId(chid.wheel(), 4);
113  } else if (chid.sector() == 14) {
114  scid = DTSectCollId(chid.wheel(), 10);
115  } else {
116  scid = DTSectCollId(chid.wheel(), chid.sector());
117  }
118 
119  SC_iterator it1 = _cache1.find(scid);
120 
121  if (it1 != _cache1.end()) {
122  auto& sc = (*it1).second;
123  if (_debug) {
124  std::cout << "DTTrig::init: adding TU in SC << "
125  << " sector = " << scid.sector() << " wheel = " << scid.wheel() << std::endl;
126  }
127  sc.addTU(tru);
128  } else {
129  std::cout << "DTTrig::createTUs: Trigger Unit not in the map: ";
130  }
131  }
132 }

References _cache, _cache1, _debug, DTGeometry::chambers(), gather_cfg::cout, edm::EventSetup::get(), get, DTChamber::id(), info(), DTSectCollId::sector(), DTChamberId::sector(), DTSectCollId::wheel(), and DTChamberId::wheel().

Referenced by DTTrigTest::beginRun(), and DTTrigProd::beginRun().

◆ dumpGeom()

void DTTrig::dumpGeom ( ) const

Dump the geometry.

Definition at line 394 of file DTTrig.cc.

394  {
395  /*check();*/
396  for (TU_const_iterator it = _cache.begin(); it != _cache.end(); it++) {
397  ((*it).second).dumpGeom();
398  }
399 }

References _cache.

◆ dumpLuts()

void DTTrig::dumpLuts ( short int  lut_btic,
const DTConfigManager conf 
) const

Dump the LUT files.

Definition at line 401 of file DTTrig.cc.

401  {
402  for (TU_const_iterator it = _cache.begin(); it != _cache.end(); it++) {
403  const DTSCTrigUnit& thisTU = (*it).second;
404 
405  // dump lut command file from geometry
406  thisTU.dumpLUT(lut_btic);
407 
408  // dump lut command file from parameters (DB or CMSSW)
409  DTChamberId chid = thisTU.statId();
410  conf->dumpLUTParam(chid);
411  }
412 
413  return;
414 }

References _cache, DTSCTrigUnit::dumpLUT(), DTConfigManager::dumpLUTParam(), and DTSCTrigUnit::statId().

Referenced by DTTrigProd::beginRun().

◆ end()

TU_iterator DTTrig::end ( void  )
inline

End of the trigger units store.

Definition at line 93 of file DTTrig.h.

93  { /*check();*/
94  return _cache.end();
95  }

References _cache.

◆ end1()

SC_iterator DTTrig::end1 ( )
inline

End of the sectoor collector store.

Definition at line 120 of file DTTrig.h.

120  { /*check();*/
121  return _cache1.end();
122  }

References _cache1.

◆ find()

TU_iterator DTTrig::find ( DTChamberId  id)
inline

Find a trigger unit in the map.

Definition at line 98 of file DTTrig.h.

98  { /*check();*/
99  return _cache.find(id);
100  }

References _cache.

◆ find1()

SC_iterator DTTrig::find1 ( DTSectCollId  id)
inline

Find a Sector Collector in the map.

Definition at line 125 of file DTTrig.h.

125  { /*check();*/
126  return _cache1.find(id);
127  }

References _cache1.

◆ getBXOffset()

int DTTrig::getBXOffset ( ) const
inline

Get BX Offset.

Definition at line 196 of file DTTrig.h.

196 { return _conf_manager->getBXOffset(); }

References _conf_manager, and DTConfigManager::getBXOffset().

Referenced by DTTrigProd::produce().

◆ localDirection()

LocalVector DTTrig::localDirection ( const DTTrigData trig) const
inline

Direction of a trigger-data object in chamber frame.

Definition at line 227 of file DTTrig.h.

227  {
228  return constTrigUnit(trig->ChamberId())->localDirection(trig);
229  }

References constTrigUnit(), and ClusterTask_cfi::trig.

◆ localPosition()

LocalPoint DTTrig::localPosition ( const DTTrigData trig) const
inline

Coordinate of a trigger-data object in chamber frame.

Definition at line 219 of file DTTrig.h.

219  {
220  return constTrigUnit(trig->ChamberId())->localPosition(trig);
221  }

References constTrigUnit(), and ClusterTask_cfi::trig.

◆ print()

void DTTrig::print ( DTTrigData trig) const
inline

Print a trigger-data object.

Definition at line 237 of file DTTrig.h.

237 { constTrigUnit(trig->ChamberId())->print(trig); }

References constTrigUnit(), print(), and ClusterTask_cfi::trig.

Referenced by print().

◆ SCPhTrigs()

std::vector< DTSectCollPhSegm > DTTrig::SCPhTrigs ( ) const

Return a copy of all the Sector Collector (Phi) triggers.

Definition at line 468 of file DTTrig.cc.

468  {
469  /*check();*/
470  std::vector<DTSectCollPhSegm> trigs;
471  for (auto psc = _cache1.begin(); psc != _cache1.end(); psc++) {
472  // DTSCTrigUnit* tu = (*ptu).second;
473  //
474  // old SMDB:
475  // DTSectColl* tu = (*ptu).second;
476  // std::vector<DTChambPhSegm>::const_iterator p=0;
477  // std::vector<DTChambPhSegm>::const_iterator peb=tu->SCTrigs()->end();
478  // for(p=tu->SCTrigs()->begin();p!=peb;p++){
479  // trigs.push_back(*p);
480  // }
481 
482  const DTSectColl& sc = (*psc).second;
483  auto peb = sc.endPh();
484  for (auto p = sc.beginPh(); p != peb; p++) {
485  trigs.push_back(*p);
486  }
487  }
488  return trigs;
489 }

References _cache1, DTSectColl::beginPh(), DTSectColl::endPh(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().

◆ SCThTrigs()

std::vector< DTSectCollThSegm > DTTrig::SCThTrigs ( ) const

Return a copy of all the Sector Collector (Theta) triggers.

Definition at line 491 of file DTTrig.cc.

491  {
492  /*check();*/
493  std::vector<DTSectCollThSegm> trigs;
494  for (auto psc = _cache1.begin(); psc != _cache1.end(); psc++) {
495  const DTSectColl& sc = (*psc).second;
496  auto peb = sc.endTh();
497  for (auto p = sc.beginTh(); p != peb; p++) {
498  trigs.push_back(*p);
499  }
500  }
501  return trigs;
502 }

References _cache1, DTSectColl::beginTh(), DTSectColl::endTh(), and AlCaHLTBitMon_ParallelJobs::p.

Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().

◆ SCUnit() [1/2]

DTSectColl const * DTTrig::SCUnit ( DTSectCollId  scid) const
private

Return a SC unit - Muon numbering - const version.

Definition at line 266 of file DTTrig.cc.

266  {
267  SC_const_iterator it = _cache1.find(scid);
268  if (it == _cache1.end()) {
269  std::cout << "DTTrig::SCUnit: Trigger Unit not in the map: ";
270  std::cout << " wheel=" << scid.wheel();
271  std::cout << ", sector=" << scid.sector();
272  std::cout << std::endl;
273  return nullptr;
274  }
275 
276  return &(*it).second;
277 }

References _cache1, gather_cfg::cout, DTSectCollId::sector(), and DTSectCollId::wheel().

Referenced by chSectCollPhSegm1(), chSectCollPhSegm2(), chSectCollThSegm(), and SCUnit().

◆ SCUnit() [2/2]

DTSectColl const * DTTrig::SCUnit ( int  wheel,
int  sect 
) const
private

Return a SC Unit Muon Numbering, MTTF numbering - const version.

Definition at line 283 of file DTTrig.cc.

283  {
284  sect++;
285  return SCUnit(DTSectCollId(wheel, sect));
286 }

References SCUnit(), and makeMuonMisalignmentScenario::wheel.

◆ size()

int DTTrig::size ( void  ) const
inline

Size of the trigger units store.

Definition at line 85 of file DTTrig.h.

85 { return _cache.size(); }

References _cache.

Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().

◆ size1()

int DTTrig::size1 ( ) const
inline

Size of the sector collector store.

Definition at line 110 of file DTTrig.h.

110  { /*check();*/
111  return _cache1.size();
112  }

References _cache1.

◆ TracoTrigs()

std::vector< DTTracoTrigData > DTTrig::TracoTrigs ( ) const

Return a copy of all the TRACO triggers.

Definition at line 429 of file DTTrig.cc.

429  {
430  std::vector<DTTracoTrigData> trigs;
431  /*check();*/
432  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
433  const DTSCTrigUnit& tu = (*ptu).second;
434  auto peb = tu.TracoTrigs()->end();
435  for (auto p = tu.TracoTrigs()->begin(); p != peb; p++) {
436  trigs.push_back(*p);
437  }
438  }
439  return trigs;
440 }

References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TracoTrigs().

Referenced by DTTrigTest::analyze().

◆ triggerReco()

void DTTrig::triggerReco ( const edm::Event iEvent,
const edm::EventSetup iSetup 
)

Run the whole trigger reconstruction chain.

Definition at line 134 of file DTTrig.cc.

134  {
135  updateES(iSetup);
136  if (!_inputexist)
137  return;
138 
139  DTDigiMap digiMap;
140  //Sort digis by chamber so they can be used by BTIs
142  iEvent.getByLabel(_digitag, dtDigis);
143 
144  if (!dtDigis.isValid()) {
145  LogDebug("DTTrig") << "DTTrig::triggerReco DTDigiCollection with input tag " << _digitag
146  << "requested in configuration, but not found in the event." << std::endl;
147  _inputexist = false;
148  return;
149  }
150 
152 
153  for (detUnitIt = dtDigis->begin(); detUnitIt != dtDigis->end(); ++detUnitIt) {
154  const DTLayerId& layId = (*detUnitIt).first;
155  const DTChamberId chambId = layId.superlayerId().chamberId();
156  const DTDigiCollection::Range& range = (*detUnitIt).second;
157  digiMap[chambId].put(range, layId);
158  }
159 
160  //Run reconstruct for single trigger subsystem (Bti, Traco TS)
161  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
162  DTSCTrigUnit& thisTU = (*it).second;
163  if (thisTU.BtiTrigs()->size() > 0) {
164  thisTU.BtiTrigs()->clearCache();
165  thisTU.TSThTrigs()->clearCache();
166  thisTU.TracoTrigs()->clearCache();
167  thisTU.TSPhTrigs()->clearCache();
168  }
169  DTChamberId chid = thisTU.statId();
170  DTDigiMap_iterator dmit = digiMap.find(chid);
171  if (dmit != digiMap.end()) {
172  thisTU.BtiTrigs()->reconstruct((*dmit).second);
173  if (thisTU.BtiTrigs()->size() > 0) {
174  thisTU.TSThTrigs()->reconstruct();
175  thisTU.TracoTrigs()->reconstruct();
176  if (thisTU.TracoTrigs()->size() > 0)
177  thisTU.TSPhTrigs()->reconstruct();
178  }
179  }
180  }
181  //Run reconstruct for Sector Collector
182  for (SC_iterator it = _cache1.begin(); it != _cache1.end(); it++) {
183  DTSectColl& sectcoll = (*it).second;
184  DTSectCollId scid = (*it).first;
185  if (sectcoll.sizePh() > 0 || sectcoll.sizeTh() > 0)
186  sectcoll.clearCache();
187  bool mustreco = false;
188  for (int i = 1; i < 5; i++) {
189  if (sectcoll.getTSPhi(i)->size() > 0) {
190  mustreco = true;
191  break;
192  }
193  }
194  for (int i = 1; i < 4; i++) {
195  if (sectcoll.getTSTheta(i)->size() > 0) {
196  mustreco = true;
197  break;
198  }
199  }
200  if (scid.sector() == 4 || scid.sector() == 10) {
201  if (sectcoll.getTSPhi(5)->size() > 0)
202  mustreco = true;
203  }
204  if (mustreco)
205  sectcoll.reconstruct();
206  }
207 }

References _cache, _cache1, _digitag, _inputexist, DTSCTrigUnit::BtiTrigs(), DTSuperLayerId::chamberId(), DTCache< T, Coll >::clearCache(), DTTracoCard::clearCache(), DTBtiCard::clearCache(), DTSectColl::clearCache(), DTSectColl::getTSPhi(), DTSectColl::getTSTheta(), mps_fire::i, iEvent, edm::HandleBase::isValid(), LogDebug, FastTimerService_cff::range, DTTSPhi::reconstruct(), DTTSTheta::reconstruct(), DTBtiCard::reconstruct(), DTTracoCard::reconstruct(), DTSectColl::reconstruct(), DTSectCollId::sector(), DTCache< T, Coll >::size(), DTSectColl::sizePh(), DTSectColl::sizeTh(), DTSCTrigUnit::statId(), DTLayerId::superlayerId(), DTSCTrigUnit::TracoTrigs(), DTSCTrigUnit::TSPhTrigs(), DTSCTrigUnit::TSThTrigs(), and updateES().

Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().

◆ trigUnit() [1/2]

DTSCTrigUnit * DTTrig::trigUnit ( DTChamberId  sid)

Return a trigger unit - Muon numbering.

Definition at line 247 of file DTTrig.cc.

247  { /*check();*/
248  return const_cast<DTSCTrigUnit*>(constTrigUnit(chid));
249 }

References constTrigUnit().

Referenced by chPhiSegm1(), chPhiSegm2(), and chThetaSegm().

◆ trigUnit() [2/2]

DTSCTrigUnit * DTTrig::trigUnit ( int  wheel,
int  stat,
int  sect 
)

Return a trigger unit - Muon numbering, MTTF numbering.

Definition at line 279 of file DTTrig.cc.

279  {
280  return const_cast<DTSCTrigUnit*>(constTrigUnit(wheel, stat, sect));
281 }

References constTrigUnit(), hgcalPlots::stat, and makeMuonMisalignmentScenario::wheel.

◆ TSPhTrigs()

std::vector< DTChambPhSegm > DTTrig::TSPhTrigs ( ) const

Return a copy of all the Trigger Server (Phi) triggers.

Definition at line 442 of file DTTrig.cc.

442  {
443  /*check();*/
444  std::vector<DTChambPhSegm> trigs;
445  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
446  const DTSCTrigUnit& tu = (*ptu).second;
447  auto peb = tu.TSPhTrigs()->end();
448  for (auto p = tu.TSPhTrigs()->begin(); p != peb; p++) {
449  trigs.push_back(*p);
450  }
451  }
452  return trigs;
453 }

References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TSPhTrigs().

Referenced by DTTrigTest::analyze().

◆ TSThTrigs()

std::vector< DTChambThSegm > DTTrig::TSThTrigs ( ) const

Return a copy of all the Trigger Server (Theta) triggers.

Definition at line 455 of file DTTrig.cc.

455  {
456  /*check();*/
457  std::vector<DTChambThSegm> trigs;
458  for (auto ptu = _cache.begin(); ptu != _cache.end(); ptu++) {
459  const DTSCTrigUnit& tu = (*ptu).second;
460  auto peb = tu.TSThTrigs()->end();
461  for (auto p = tu.TSThTrigs()->begin(); p != peb; p++) {
462  trigs.push_back(*p);
463  }
464  }
465  return trigs;
466 }

References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TSThTrigs().

Referenced by DTTrigTest::analyze().

◆ updateES()

void DTTrig::updateES ( const edm::EventSetup iSetup)

update the eventsetup info

Definition at line 209 of file DTTrig.cc.

209  {
210  // Check for updatets in config
212  edm::ESHandle<DTGeometry> geomHandle;
213 
214  if (iSetup.get<DTConfigManagerRcd>().cacheIdentifier() != _configid) {
215  if (_debug)
216  std::cout << "DTTrig::updateES updating DTTPG configuration" << std::endl;
217 
218  _configid = iSetup.get<DTConfigManagerRcd>().cacheIdentifier();
219  iSetup.get<DTConfigManagerRcd>().get(confHandle);
220  _conf_manager = confHandle.product();
221  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
222  (*it).second.setConfig(_conf_manager);
223  }
224  for (SC_iterator it = _cache1.begin(); it != _cache1.end(); it++) {
225  (*it).second.setConfig(_conf_manager);
226  }
227  }
228 
229  if (iSetup.get<MuonGeometryRecord>().cacheIdentifier() != _configid) {
230  if (_debug)
231  std::cout << "DTTrig::updateES updating muon geometry" << std::endl;
232 
233  _geomid = iSetup.get<MuonGeometryRecord>().cacheIdentifier();
234  iSetup.get<MuonGeometryRecord>().get(geomHandle);
235  for (TU_iterator it = _cache.begin(); it != _cache.end(); it++) {
236  (*it).second.setGeom(geomHandle->chamber((*it).second.statId()));
237  }
238  }
239 }

References _cache, _cache1, _conf_manager, _configid, _debug, _geomid, edm::eventsetup::EventSetupRecord::cacheIdentifier(), DTGeometry::chamber(), gather_cfg::cout, edm::EventSetup::get(), get, and edm::ESHandle< T >::product().

Referenced by triggerReco().

Member Data Documentation

◆ _cache

TUcontainer DTTrig::_cache
private

◆ _cache1

SCcontainer DTTrig::_cache1
private

◆ _conf_manager

const DTConfigManager* DTTrig::_conf_manager
private

Definition at line 256 of file DTTrig.h.

Referenced by getBXOffset(), and updateES().

◆ _configid

unsigned long long DTTrig::_configid
private

Definition at line 261 of file DTTrig.h.

Referenced by updateES().

◆ _debug

bool DTTrig::_debug
private

Definition at line 258 of file DTTrig.h.

Referenced by createTUs(), DTTrig(), and updateES().

◆ _digitag

edm::InputTag DTTrig::_digitag
private

Definition at line 257 of file DTTrig.h.

Referenced by DTTrig(), and triggerReco().

◆ _geomid

unsigned long long DTTrig::_geomid
private

Definition at line 262 of file DTTrig.h.

Referenced by updateES().

◆ _inputexist

bool DTTrig::_inputexist
private

Definition at line 259 of file DTTrig.h.

Referenced by triggerReco().

DTChamber::id
DTChamberId id() const
Return the DTChamberId of this chamber.
Definition: DTChamber.cc:32
edm::ESHandle::product
T const * product() const
Definition: ESHandle.h:86
DTTrig::_inputexist
bool _inputexist
Definition: DTTrig.h:259
FastTimerService_cff.range
range
Definition: FastTimerService_cff.py:34
mps_fire.i
i
Definition: mps_fire.py:355
DTTrig::SCUnit
DTSectColl const * SCUnit(DTSectCollId scid) const
Return a SC unit - Muon numbering - const version.
Definition: DTTrig.cc:266
DTCache::size
int size() const
Get cache vector's size.
Definition: DTCache.h:44
DTTrig::Range
std::pair< TU_iterator, TU_iterator > Range
Definition: DTTrig.h:62
DTTrig::TU_iterator
TUcontainer::iterator TU_iterator
Definition: DTTrig.h:57
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:254
CalibrationSummaryClient_cfi.params
params
Definition: CalibrationSummaryClient_cfi.py:14
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTChamber
Definition: DTChamber.h:24
DTTrig::_configid
unsigned long long _configid
Definition: DTTrig.h:261
DTTrig::SC_const_iterator
SCcontainer::const_iterator SC_const_iterator
Definition: DTTrig.h:61
DTTrig::chPhiSegm1
DTChambPhSegm * chPhiSegm1(DTChamberId sid, int step)
Return the first phi track segment in req. chamber/step.
Definition: DTTrig.cc:317
DTConfigManager::dumpLUTParam
void dumpLUTParam(DTChamberId &chambid) const
Dump luts string commands from configuration parameters.
Definition: DTConfigManager.cc:188
info
static const TGPicture * info(bool iBackgroundIsBlack)
Definition: FWCollectionSummaryWidget.cc:152
DTTrig::constTrigUnit
DTSCTrigUnit const * constTrigUnit(DTChamberId sid) const
Return a trigger unit - Muon numbering - const version.
Definition: DTTrig.cc:251
DTTracoCard::reconstruct
void reconstruct() override
Load BTIs triggers and run TRACOs algorithm.
Definition: DTTracoCard.h:101
DTCache::begin
const_iterator begin() const
Get first cache element.
Definition: DTCache.h:38
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:209
DTTrig::_cache1
SCcontainer _cache1
Definition: DTTrig.h:255
DTTrig::DTDigiMap
std::map< DTChamberId, DTDigiCollection, std::less< DTChamberId > > DTDigiMap
Definition: DTTrig.h:64
DTTrig::_debug
bool _debug
Definition: DTTrig.h:258
DTSectColl::reconstruct
void reconstruct() override
Load Trigger Units triggers and run Sector Collector algorithm.
Definition: DTSectColl.h:178
edm::EventSetup::get
T get() const
Definition: EventSetup.h:73
DTTrig::chPhiSegm2
DTChambPhSegm * chPhiSegm2(DTChamberId sid, int step)
Return the second phi track segment in req. chamber/step.
Definition: DTTrig.cc:319
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1111
DTTSPhi::reconstruct
void reconstruct() override
Load TRACO triggers and run TSPhi algorithm.
Definition: DTTSPhi.h:80
DTTrig::chSectCollPhSegm2
DTSectCollPhSegm * chSectCollPhSegm2(DTSectColl *unit, int step)
Return the second phi track segment in req. chamber/step [SC step].
Definition: DTTrig.cc:359
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::trigUnit
DTSCTrigUnit * trigUnit(DTChamberId sid)
Return a trigger unit - Muon numbering.
Definition: DTTrig.cc:247
DTTrig::CMSPosition
GlobalPoint CMSPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in CMS frame.
Definition: DTTrig.h:224
DTLayerId
Definition: DTLayerId.h:12
DTConfigManagerRcd
Definition: DTConfigManagerRcd.h:31
DTSectColl::sizePh
int sizePh() const
Return Phi cache size.
Definition: DTSectColl.h:151
DTTrig::_geomid
unsigned long long _geomid
Definition: DTTrig.h:262
DTSectColl::beginTh
std::vector< DTSectCollThSegm >::const_iterator beginTh() const
Return iterator to the begni of Theta cache.
Definition: DTSectColl.h:157
DTTrig::chSectCollPhSegm1
DTSectCollPhSegm * chSectCollPhSegm1(DTSectColl *unit, int step)
Return the first phi track segment in req. chamber/step [SC step].
Definition: DTTrig.cc:351
DTConfigManager::getBXOffset
int getBXOffset() const
Get BX Offset for a given vdrift config.
Definition: DTConfigManager.cc:173
LogDebug
#define LogDebug(id)
Definition: MessageLogger.h:670
DTTrig::localPosition
LocalPoint localPosition(const DTTrigData *trig) const
Coordinate of a trigger-data object in chamber frame.
Definition: DTTrig.h:219
DTTrig::chThetaSegm
DTChambThSegm * chThetaSegm(DTChamberId sid, int step)
Return the theta candidates in req. chamber/step.
Definition: DTTrig.cc:321
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
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
DTTrig::localDirection
LocalVector localDirection(const DTTrigData *trig) const
Direction of a trigger-data object in chamber frame.
Definition: DTTrig.h:227
DTTrig::_digitag
edm::InputTag _digitag
Definition: DTTrig.h:257
DTSectColl::clearCache
void clearCache()
Local position in chamber of a trigger-data object.
Definition: DTSectColl.h:172
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
get
#define get
ClusterTask_cfi.trig
trig
Definition: ClusterTask_cfi.py:336
DTTrig::dumpGeom
void dumpGeom() const
Dump the geometry.
Definition: DTTrig.cc:394
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:380
unit
Basic3DVector unit() const
Definition: Basic3DVectorLD.h:162
DTBtiCard::clearCache
void clearCache()
Clear all BTI stuff (map & cache)
Definition: DTBtiCard.cc:85
DTTrig::SCRange
std::pair< SC_iterator, SC_iterator > SCRange
Definition: DTTrig.h:63
DTChamberId::sector
int sector() const
Definition: DTChamberId.h:49
DTLayerId::superlayerId
DTSuperLayerId superlayerId() const
Return the corresponding SuperLayerId.
Definition: DTLayerId.h:45
DTSectCollId::sector
int sector() const
Definition: DTSectCollId.h:31
DTTrig::DTDigiMap_iterator
DTDigiMap::iterator DTDigiMap_iterator
Definition: DTTrig.h:65
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::TU_const_iterator
TUcontainer::const_iterator TU_const_iterator
Definition: DTTrig.h:58
DTSectColl::getTSTheta
DTTSTheta * getTSTheta(int istat) const
Return TSTheta.
Definition: DTSectColl.h:72
DTTrig::print
void print(DTTrigData *trig) const
Print a trigger-data object.
Definition: DTTrig.h:237
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:185
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:60
edm::HandleBase::isValid
bool isValid() const
Definition: HandleBase.h:70
DigiContainerIterator
Definition: MuonDigiCollection.h:30
DTTrig::CMSDirection
GlobalVector CMSDirection(const DTTrigData *trig) const
Direction of a trigger-data object in CMS frame.
Definition: DTTrig.h:232
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
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:256
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