#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_iterator > | Range |
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_iterator > | SCRange |
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< DTBtiTrigData > | BtiTrigs () 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... | |
DTChambPhSegm * | chPhiSegm1 (DTChamberId sid, int step) |
Return the first phi track segment in req. chamber/step. More... | |
DTChambPhSegm * | chPhiSegm1 (DTSCTrigUnit *unit, int step) |
Return the first phi track segment in req. chamber/step. More... | |
DTChambPhSegm * | chPhiSegm1 (int wheel, int stat, int sect, int step) |
Return the first phi track segment in req. chamber/step, MTTF numbering. More... | |
DTChambPhSegm * | chPhiSegm2 (DTChamberId sid, int step) |
Return the second phi track segment in req. chamber/step. More... | |
DTChambPhSegm * | chPhiSegm2 (DTSCTrigUnit *unit, int step) |
Return the second phi track segment in req. chamber/step. More... | |
DTChambPhSegm * | chPhiSegm2 (int wheel, int stat, int sect, int step) |
Return the second phi track segment in req. chamber/step, MTTF numbering. More... | |
DTSectCollPhSegm * | chSectCollPhSegm1 (DTSectColl *unit, int step) |
Return the first phi track segment in req. chamber/step [SC step]. More... | |
DTSectCollPhSegm * | chSectCollPhSegm1 (int wheel, int sect, int step) |
Return the first phi track segment in req. chamber/step, [MTTF numbering & SC step]. More... | |
DTSectCollPhSegm * | chSectCollPhSegm2 (DTSectColl *unit, int step) |
Return the second phi track segment in req. chamber/step [SC step]. More... | |
DTSectCollPhSegm * | chSectCollPhSegm2 (int wheel, int sect, int step) |
Return the second phi track segment in req. chamber/step, [MTTF numbering & SC step]. More... | |
DTSectCollThSegm * | chSectCollThSegm (DTSectColl *unit, int step) |
Return the theta track segment in req. chamber/step [SC step]. More... | |
DTSectCollThSegm * | chSectCollThSegm (int wheel, int sect, int step) |
Return the theta track segment in req. chamber/step, [MTTF numbering & SC step]. More... | |
DTChambThSegm * | chThetaSegm (DTChamberId sid, int step) |
Return the theta candidates in req. chamber/step. More... | |
DTChambThSegm * | chThetaSegm (DTSCTrigUnit *unit, int step) |
Return the theta candidates in req. chamber/step. More... | |
DTChambThSegm * | chThetaSegm (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 ¶ms, 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< DTSectCollPhSegm > | SCPhTrigs () const |
Return a copy of all the Sector Collector (Phi) triggers. More... | |
std::vector< DTSectCollThSegm > | SCThTrigs () 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< DTTracoTrigData > | TracoTrigs () 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... | |
DTSCTrigUnit * | trigUnit (DTChamberId sid) |
Return a trigger unit - Muon numbering. More... | |
DTSCTrigUnit * | trigUnit (int wheel, int stat, int sect) |
Return a trigger unit - Muon numbering, MTTF numbering. More... | |
std::vector< DTChambPhSegm > | TSPhTrigs () const |
Return a copy of all the Trigger Server (Phi) triggers. More... | |
std::vector< DTChambThSegm > | TSThTrigs () 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 |
edm::ESGetToken< DTConfigManager, DTConfigManagerRcd > | confToken_ |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | dtGeomBeginRunToken_ |
edm::ESGetToken< DTGeometry, MuonGeometryRecord > | dtGeomToken_ |
Steering routine for L1 trigger simulation in a muon barrel station
typedef std::map<DTChamberId, DTDigiCollection, std::less<DTChamberId> > DTTrig::DTDigiMap |
typedef DTDigiMap::const_iterator DTTrig::DTDigiMap_const_iterator |
typedef DTDigiMap::iterator DTTrig::DTDigiMap_iterator |
typedef std::pair<TU_iterator, TU_iterator> DTTrig::Range |
typedef SCcontainer::const_iterator DTTrig::SC_const_iterator |
typedef SCcontainer::iterator DTTrig::SC_iterator |
typedef std::map<DTSectCollId, DTSectColl, std::less<DTSectCollId> > DTTrig::SCcontainer |
typedef std::pair<SC_iterator, SC_iterator> DTTrig::SCRange |
typedef TUcontainer::const_iterator DTTrig::TU_const_iterator |
typedef TUcontainer::iterator DTTrig::TU_iterator |
typedef std::map<DTChamberId, DTSCTrigUnit, std::less<DTChamberId> > DTTrig::TUcontainer |
DTTrig::DTTrig | ( | const edm::ParameterSet & | params, |
edm::ConsumesCollector && | ix | ||
) |
Constructors.
Definition at line 46 of file DTTrig.cc.
References _debug, _digitag, edm::BeginRun, confToken_, gather_cfg::cout, dtGeomBeginRunToken_, dtGeomToken_, and submitPVValidationJobs::params.
|
inline |
|
inline |
std::vector< DTBtiTrigData > DTTrig::BtiTrigs | ( | ) | const |
Return a copy of all the BTI triggers.
Definition at line 414 of file DTTrig.cc.
References _cache, DTCache< T, Coll >::begin(), DTSCTrigUnit::BtiTrigs(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTTrigTest::analyze().
|
inline |
|
inline |
DTChambPhSegm * DTTrig::chPhiSegm1 | ( | DTChamberId | sid, |
int | step | ||
) |
Return the first phi track segment in req. chamber/step.
Definition at line 315 of file DTTrig.cc.
References trigUnit().
Referenced by chPhiSegm1().
DTChambPhSegm * DTTrig::chPhiSegm1 | ( | DTSCTrigUnit * | unit, |
int | step | ||
) |
Return the first phi track segment in req. chamber/step.
Definition at line 291 of file DTTrig.cc.
References unit().
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 325 of file DTTrig.cc.
References chPhiSegm1(), trigUnit(), and makeMuonMisalignmentScenario::wheel.
DTChambPhSegm * DTTrig::chPhiSegm2 | ( | DTChamberId | sid, |
int | step | ||
) |
Return the second phi track segment in req. chamber/step.
Definition at line 317 of file DTTrig.cc.
References trigUnit().
Referenced by chPhiSegm2().
DTChambPhSegm * DTTrig::chPhiSegm2 | ( | DTSCTrigUnit * | unit, |
int | step | ||
) |
Return the second phi track segment in req. chamber/step.
Definition at line 299 of file DTTrig.cc.
References unit().
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 331 of file DTTrig.cc.
References chPhiSegm2(), trigUnit(), and makeMuonMisalignmentScenario::wheel.
DTSectCollPhSegm * DTTrig::chSectCollPhSegm1 | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the first phi track segment in req. chamber/step [SC step].
Definition at line 349 of file DTTrig.cc.
References unit().
Referenced by chSectCollPhSegm1().
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 365 of file DTTrig.cc.
References chSectCollPhSegm1(), SCUnit(), and makeMuonMisalignmentScenario::wheel.
DTSectCollPhSegm * DTTrig::chSectCollPhSegm2 | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the second phi track segment in req. chamber/step [SC step].
Definition at line 357 of file DTTrig.cc.
References unit().
Referenced by chSectCollPhSegm2().
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 369 of file DTTrig.cc.
References chSectCollPhSegm2(), SCUnit(), and makeMuonMisalignmentScenario::wheel.
DTSectCollThSegm * DTTrig::chSectCollThSegm | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the theta track segment in req. chamber/step [SC step].
Definition at line 378 of file DTTrig.cc.
References unit().
Referenced by chSectCollThSegm().
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 386 of file DTTrig.cc.
References chSectCollThSegm(), SCUnit(), and makeMuonMisalignmentScenario::wheel.
DTChambThSegm * DTTrig::chThetaSegm | ( | DTChamberId | sid, |
int | step | ||
) |
Return the theta candidates in req. chamber/step.
Definition at line 319 of file DTTrig.cc.
References DTChamberId::station(), and trigUnit().
Referenced by chThetaSegm().
DTChambThSegm * DTTrig::chThetaSegm | ( | DTSCTrigUnit * | unit, |
int | step | ||
) |
Return the theta candidates in req. chamber/step.
Definition at line 307 of file DTTrig.cc.
References unit().
DTChambThSegm * DTTrig::chThetaSegm | ( | int | wheel, |
int | stat, | ||
int | sect, | ||
int | step | ||
) |
Return the theta candidates in req. chamber/step, MTTF numbering.
Definition at line 342 of file DTTrig.cc.
References chThetaSegm(), trigUnit(), and makeMuonMisalignmentScenario::wheel.
void DTTrig::clear | ( | void | ) |
|
inline |
Direction of a trigger-data object in CMS frame.
Definition at line 237 of file DTTrig.h.
References constTrigUnit(), and ClusterTask_cfi::trig.
Referenced by DTTrigTest::analyze().
|
inline |
Coordinate of a trigger-data object in CMS frame.
Definition at line 229 of file DTTrig.h.
References CMSPosition(), constTrigUnit(), and ClusterTask_cfi::trig.
Referenced by DTTrigTest::analyze(), and CMSPosition().
|
private |
Return a trigger unit - Muon numbering - const version.
Definition at line 249 of file DTTrig.cc.
References _cache, gather_cfg::cout, DTChamberId::sector(), DTChamberId::station(), and DTChamberId::wheel().
Referenced by CMSDirection(), CMSPosition(), constTrigUnit(), localDirection(), localPosition(), print(), and trigUnit().
|
private |
Return a trigger unit - Muon numbering, MTTF numbering - const version.
Definition at line 286 of file DTTrig.cc.
References constTrigUnit(), and makeMuonMisalignmentScenario::wheel.
void DTTrig::createTUs | ( | const edm::EventSetup & | iSetup | ) |
Create the trigger units and store them in the cache.
Definition at line 63 of file DTTrig.cc.
References _cache, _cache1, _debug, DTGeometry::chambers(), gather_cfg::cout, dtGeomBeginRunToken_, edm::EventSetup::getHandle(), DTChamber::id(), info(), DTSectCollId::sector(), DTChamberId::sector(), DTSectCollId::wheel(), and DTChamberId::wheel().
Referenced by DTTrigTest::beginRun(), and DTTrigProd::beginRun().
void DTTrig::dumpGeom | ( | ) | const |
void DTTrig::dumpLuts | ( | short int | lut_btic, |
const DTConfigManager * | conf | ||
) | const |
Dump the LUT files.
Definition at line 399 of file DTTrig.cc.
References _cache, DTSCTrigUnit::dumpLUT(), DTConfigManager::dumpLUTParam(), and DTSCTrigUnit::statId().
Referenced by DTTrigProd::beginRun().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get BX Offset.
Definition at line 201 of file DTTrig.h.
References _conf_manager, and DTConfigManager::getBXOffset().
Referenced by DTTrigProd::produce().
|
inline |
Direction of a trigger-data object in chamber frame.
Definition at line 232 of file DTTrig.h.
References constTrigUnit(), and ClusterTask_cfi::trig.
|
inline |
Coordinate of a trigger-data object in chamber frame.
Definition at line 224 of file DTTrig.h.
References constTrigUnit(), and ClusterTask_cfi::trig.
|
inline |
Print a trigger-data object.
Definition at line 242 of file DTTrig.h.
References constTrigUnit(), print(), and ClusterTask_cfi::trig.
Referenced by print().
std::vector< DTSectCollPhSegm > DTTrig::SCPhTrigs | ( | ) | const |
Return a copy of all the Sector Collector (Phi) triggers.
Definition at line 466 of file DTTrig.cc.
References _cache1, DTSectColl::beginPh(), DTSectColl::endPh(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().
std::vector< DTSectCollThSegm > DTTrig::SCThTrigs | ( | ) | const |
Return a copy of all the Sector Collector (Theta) triggers.
Definition at line 489 of file DTTrig.cc.
References _cache1, DTSectColl::beginTh(), DTSectColl::endTh(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().
|
private |
Return a SC unit - Muon numbering - const version.
Definition at line 264 of file DTTrig.cc.
References _cache1, gather_cfg::cout, DTSectCollId::sector(), and DTSectCollId::wheel().
Referenced by chSectCollPhSegm1(), chSectCollPhSegm2(), chSectCollThSegm(), and SCUnit().
|
private |
Return a SC Unit Muon Numbering, MTTF numbering - const version.
Definition at line 281 of file DTTrig.cc.
References SCUnit(), and makeMuonMisalignmentScenario::wheel.
|
inline |
Size of the trigger units store.
Definition at line 90 of file DTTrig.h.
References _cache.
Referenced by ntupleDataFormat._Collection::__iter__(), and ntupleDataFormat._Collection::__len__().
|
inline |
std::vector< DTTracoTrigData > DTTrig::TracoTrigs | ( | ) | const |
Return a copy of all the TRACO triggers.
Definition at line 427 of file DTTrig.cc.
References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TracoTrigs().
Referenced by DTTrigTest::analyze().
void DTTrig::triggerReco | ( | const edm::Event & | iEvent, |
const edm::EventSetup & | iSetup | ||
) |
Run the whole trigger reconstruction chain.
Definition at line 132 of file DTTrig.cc.
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().
DTSCTrigUnit * DTTrig::trigUnit | ( | DTChamberId | sid | ) |
Return a trigger unit - Muon numbering.
Definition at line 245 of file DTTrig.cc.
References constTrigUnit().
Referenced by chPhiSegm1(), chPhiSegm2(), and chThetaSegm().
DTSCTrigUnit * DTTrig::trigUnit | ( | int | wheel, |
int | stat, | ||
int | sect | ||
) |
Return a trigger unit - Muon numbering, MTTF numbering.
Definition at line 277 of file DTTrig.cc.
References constTrigUnit(), and makeMuonMisalignmentScenario::wheel.
std::vector< DTChambPhSegm > DTTrig::TSPhTrigs | ( | ) | const |
Return a copy of all the Trigger Server (Phi) triggers.
Definition at line 440 of file DTTrig.cc.
References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TSPhTrigs().
Referenced by DTTrigTest::analyze().
std::vector< DTChambThSegm > DTTrig::TSThTrigs | ( | ) | const |
Return a copy of all the Trigger Server (Theta) triggers.
Definition at line 453 of file DTTrig.cc.
References _cache, DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and DTSCTrigUnit::TSThTrigs().
Referenced by DTTrigTest::analyze().
void DTTrig::updateES | ( | const edm::EventSetup & | iSetup | ) |
update the eventsetup info
Definition at line 207 of file DTTrig.cc.
References _cache, _cache1, _conf_manager, _configid, _debug, _geomid, edm::eventsetup::EventSetupRecord::cacheIdentifier(), DTGeometry::chamber(), confToken_, gather_cfg::cout, dtGeomToken_, edm::EventSetup::get(), edm::EventSetup::getHandle(), and edm::ESHandle< T >::product().
Referenced by triggerReco().
|
private |
Definition at line 259 of file DTTrig.h.
Referenced by trackingPlots.TrackingIterationOrder::__call__(), datamodel.Collection::__getitem__(), begin(), BtiTrigs(), cache(), clear(), constTrigUnit(), trackingPlots.TimePerEventPlot::create(), createTUs(), dumpGeom(), dumpLuts(), end(), find(), size(), TracoTrigs(), triggerReco(), TSPhTrigs(), TSThTrigs(), and updateES().
|
private |
Definition at line 260 of file DTTrig.h.
Referenced by begin1(), cache1(), clear(), createTUs(), end1(), find1(), SCPhTrigs(), SCThTrigs(), SCUnit(), size1(), triggerReco(), and updateES().
|
private |
Definition at line 261 of file DTTrig.h.
Referenced by getBXOffset(), and updateES().
|
private |
Definition at line 269 of file DTTrig.h.
Referenced by updateES().
|
private |
Definition at line 266 of file DTTrig.h.
Referenced by createTUs(), DTTrig(), and updateES().
|
private |
Definition at line 262 of file DTTrig.h.
Referenced by DTTrig(), and triggerReco().
|
private |
Definition at line 270 of file DTTrig.h.
Referenced by updateES().
|
private |
Definition at line 267 of file DTTrig.h.
Referenced by triggerReco().
|
private |
Definition at line 265 of file DTTrig.h.
Referenced by DTTrig(), and updateES().
|
private |
Definition at line 264 of file DTTrig.h.
Referenced by createTUs(), and DTTrig().
|
private |
Definition at line 263 of file DTTrig.h.
Referenced by DTTrig(), and updateES().