#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 () |
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 () |
Dump the geometry. More... | |
void | dumpLuts (short int lut_btic, const DTConfigManager *conf) |
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 () |
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 () |
Return a copy of all the Sector Collector (Phi) triggers. More... | |
std::vector< DTSectCollThSegm > | SCThTrigs () |
Return a copy of all the Sector Collector (Theta) triggers. More... | |
int | size () |
Size of the trigger units store. More... | |
int | size1 () |
Size of the sector collector store. More... | |
std::vector< DTTracoTrigData > | TracoTrigs () |
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 () |
Return a copy of all the Trigger Server (Phi) triggers. More... | |
std::vector< DTChambThSegm > | TSThTrigs () |
Return a copy of all the Trigger Server (Theta) triggers. More... | |
void | updateES (const edm::EventSetup &iSetup) |
update the eventsetup info More... | |
~DTTrig () | |
Destructor. More... | |
Private Member Functions | |
DTSCTrigUnit * | constTrigUnit (DTChamberId sid) const |
Return a trigger unit - Muon numbering - const version. More... | |
DTSCTrigUnit * | constTrigUnit (int wheel, int stat, int sect) const |
Return a trigger unit - Muon numbering, MTTF numbering - const version. More... | |
DTSectColl * | SCUnit (DTSectCollId scid) const |
Return a SC unit - Muon numbering - const version. More... | |
DTSectColl * | 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 |
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 50 of file DTTrig.cc.
References _debug, _digitag, gather_cfg::cout, edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().
|
inline |
|
inline |
std::vector< DTBtiTrigData > DTTrig::BtiTrigs | ( | ) |
Return a copy of all the BTI triggers.
Definition at line 487 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 368 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 347 of file DTTrig.cc.
References DTSCTrigUnit::nPhiSegm(), and DTSCTrigUnit::phiSegment().
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 384 of file DTTrig.cc.
References chPhiSegm1(), and trigUnit().
DTChambPhSegm * DTTrig::chPhiSegm2 | ( | DTChamberId | sid, |
int | step | ||
) |
Return the second phi track segment in req. chamber/step.
Definition at line 373 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 354 of file DTTrig.cc.
References DTSCTrigUnit::nPhiSegm(), and DTSCTrigUnit::phiSegment().
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 392 of file DTTrig.cc.
References chPhiSegm2(), and trigUnit().
DTSectCollPhSegm * DTTrig::chSectCollPhSegm1 | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the first phi track segment in req. chamber/step [SC step].
Definition at line 411 of file DTTrig.cc.
References DTSectColl::nSegmPh(), and DTSectColl::SectCollPhSegment().
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 427 of file DTTrig.cc.
References chSectCollPhSegm1(), and SCUnit().
DTSectCollPhSegm * DTTrig::chSectCollPhSegm2 | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the second phi track segment in req. chamber/step [SC step].
Definition at line 419 of file DTTrig.cc.
References DTSectColl::nSegmPh(), and DTSectColl::SectCollPhSegment().
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 433 of file DTTrig.cc.
References chSectCollPhSegm2(), and SCUnit().
DTSectCollThSegm * DTTrig::chSectCollThSegm | ( | DTSectColl * | unit, |
int | step | ||
) |
Return the theta track segment in req. chamber/step [SC step].
Definition at line 443 of file DTTrig.cc.
References DTSectColl::nSegmTh(), and DTSectColl::SectCollThSegment().
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 451 of file DTTrig.cc.
References chSectCollThSegm(), and SCUnit().
DTChambThSegm * DTTrig::chThetaSegm | ( | DTChamberId | sid, |
int | step | ||
) |
Return the theta candidates in req. chamber/step.
Definition at line 378 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 361 of file DTTrig.cc.
References DTSCTrigUnit::nThetaSegm(), and DTSCTrigUnit::thetaSegment().
DTChambThSegm * DTTrig::chThetaSegm | ( | int | wheel, |
int | stat, | ||
int | sect, | ||
int | step | ||
) |
Return the theta candidates in req. chamber/step, MTTF numbering.
Definition at line 404 of file DTTrig.cc.
References chThetaSegm(), and trigUnit().
void DTTrig::clear | ( | void | ) |
|
inline |
Direction of a trigger-data object in CMS frame.
Definition at line 221 of file DTTrig.h.
References DTTrigData::ChamberId(), and constTrigUnit().
Referenced by DTTrigTest::analyze().
|
inline |
Coordinate of a trigger-data object in CMS frame.
Definition at line 211 of file DTTrig.h.
References DTTrigData::ChamberId(), and constTrigUnit().
Referenced by DTTrigTest::analyze().
|
private |
Return a trigger unit - Muon numbering - const version.
Definition at line 297 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 339 of file DTTrig.cc.
References constTrigUnit(), and DTChamberId.
void DTTrig::createTUs | ( | const edm::EventSetup & | iSetup | ) |
Create the trigger units and store them in the cache.
Definition at line 76 of file DTTrig.cc.
References _cache, _cache1, _debug, DTSectColl::addTU(), gather_cfg::cout, edm::EventSetup::get(), DTChamber::id(), SimDataFormats::CaloAnalysis::sc, DTSectCollId::sector(), DTChamberId::sector(), DTSectCollId::wheel(), and DTChamberId::wheel().
Referenced by DTTrigProd::beginRun(), and DTTrigTest::beginRun().
void DTTrig::dumpGeom | ( | ) |
void DTTrig::dumpLuts | ( | short int | lut_btic, |
const DTConfigManager * | conf | ||
) |
Dump the LUT files.
Definition at line 468 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 183 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 216 of file DTTrig.h.
References DTTrigData::ChamberId(), and constTrigUnit().
|
inline |
Coordinate of a trigger-data object in chamber frame.
Definition at line 206 of file DTTrig.h.
References DTTrigData::ChamberId(), and constTrigUnit().
|
inline |
Print a trigger-data object.
Definition at line 226 of file DTTrig.h.
References DTTrigData::ChamberId(), and constTrigUnit().
std::vector< DTSectCollPhSegm > DTTrig::SCPhTrigs | ( | ) |
Return a copy of all the Sector Collector (Phi) triggers.
Definition at line 551 of file DTTrig.cc.
References _cache1, DTSectColl::beginPh(), DTSectColl::endPh(), AlCaHLTBitMon_ParallelJobs::p, and SimDataFormats::CaloAnalysis::sc.
Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().
std::vector< DTSectCollThSegm > DTTrig::SCThTrigs | ( | ) |
Return a copy of all the Sector Collector (Theta) triggers.
Definition at line 580 of file DTTrig.cc.
References _cache1, DTSectColl::beginTh(), DTSectColl::endTh(), AlCaHLTBitMon_ParallelJobs::p, and SimDataFormats::CaloAnalysis::sc.
Referenced by DTTrigTest::analyze(), and DTTrigProd::produce().
|
private |
Return a SC unit - Muon numbering - const version.
Definition at line 313 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 332 of file DTTrig.cc.
References SCUnit().
|
inline |
Size of the trigger units store.
Definition at line 90 of file DTTrig.h.
References _cache.
Referenced by ntuple._Collection::__iter__(), and ntuple._Collection::__len__().
|
inline |
std::vector< DTTracoTrigData > DTTrig::TracoTrigs | ( | ) |
Return a copy of all the TRACO triggers.
Definition at line 503 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 150 of file DTTrig.cc.
References _cache, _cache1, _digitag, _inputexist, DTSCTrigUnit::BtiTrigs(), DTSuperLayerId::chamberId(), DTCache< T, Coll >::clearCache(), DTTracoCard::clearCache(), DTBtiCard::clearCache(), DTSectColl::clearCache(), edm::Event::getByLabel(), DTSectColl::getTSPhi(), DTSectColl::getTSTheta(), i, edm::HandleBase::isValid(), LogDebug, 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 289 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 327 of file DTTrig.cc.
References constTrigUnit().
std::vector< DTChambPhSegm > DTTrig::TSPhTrigs | ( | ) |
Return a copy of all the Trigger Server (Phi) triggers.
Definition at line 519 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 | ( | ) |
Return a copy of all the Trigger Server (Theta) triggers.
Definition at line 535 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 232 of file DTTrig.cc.
References _cache, _cache1, _conf_manager, _configid, _debug, _geomid, edm::eventsetup::EventSetupRecord::cacheIdentifier(), gather_cfg::cout, edm::EventSetup::get(), and edm::ESHandle< class >::product().
Referenced by triggerReco().
|
private |
Definition at line 247 of file DTTrig.h.
Referenced by begin(), BtiTrigs(), cache(), clear(), constTrigUnit(), createTUs(), dumpGeom(), dumpLuts(), end(), find(), size(), TracoTrigs(), triggerReco(), TSPhTrigs(), TSThTrigs(), and updateES().
|
private |
Definition at line 248 of file DTTrig.h.
Referenced by begin1(), cache1(), clear(), createTUs(), end1(), find1(), SCPhTrigs(), SCThTrigs(), SCUnit(), size1(), triggerReco(), and updateES().
|
private |
Definition at line 249 of file DTTrig.h.
Referenced by getBXOffset(), and updateES().
|
private |
Definition at line 254 of file DTTrig.h.
Referenced by updateES().
|
private |
Definition at line 251 of file DTTrig.h.
Referenced by createTUs(), DTTrig(), cmsPerfSuite.PerfSuite::optionParse(), cmsPerfSuite.PerfSuite::runCmsReport(), and updateES().
|
private |
Definition at line 250 of file DTTrig.h.
Referenced by DTTrig(), and triggerReco().
|
private |
Definition at line 255 of file DTTrig.h.
Referenced by updateES().
|
private |
Definition at line 252 of file DTTrig.h.
Referenced by triggerReco().