#include <DTTSPhi.h>
Public Member Functions | |
const DTConfigTSPhi * | config () const |
Return the configuration class. More... | |
DTTSPhi (DTTrigGeom *, DTTracoCard *) | |
Constructor. More... | |
LocalVector | localDirection (const DTTrigData *) const override |
Local direction in chamber of a trigger-data object. More... | |
LocalPoint | localPosition (const DTTrigData *) const override |
Local position in chamber of a trigger-data object. More... | |
int | nSegm (int step) |
Return number of DTTSPhi segments. More... | |
void | reconstruct () override |
Load TRACO triggers and run TSPhi algorithm. More... | |
const DTChambPhSegm * | segment (int step, unsigned n) |
Return the requested DTTSPhi segment. More... | |
void | setConfig (const DTConfigManager *conf) |
Set configuration. More... | |
~DTTSPhi () override | |
Destructor. More... | |
Public Member Functions inherited from DTCache< T, Coll > | |
const_iterator | begin () const |
Get first cache element. More... | |
void | clearCache () |
Clear cache vector. More... | |
DTCache () | |
Constructor. More... | |
const_iterator | end () const |
Get last cache element. More... | |
int | size () const |
Get cache vector's size. More... | |
virtual | ~DTCache () |
Destructor. More... | |
Public Member Functions inherited from DTGeomSupplier | |
DTChamberId | ChamberId () const |
Identifier of the associated chamber. More... | |
GlobalVector | CMSDirection (const DTTrigData *trig) const |
CMS direction in chamber of a trigger -data object. More... | |
GlobalPoint | CMSPosition (const DTTrigData *trig) const |
CMS position in chamber of a trigger-data object. More... | |
DTGeomSupplier (DTTrigGeom *geom) | |
Constructor. More... | |
DTTrigGeom * | geom () const |
Associated geometry. More... | |
virtual void | print (const DTTrigData *trig) const |
Print a trigger-data object with also local and global position/direction. More... | |
int | sector () const |
Return sector number. More... | |
const DTChamber * | stat () const |
Associated chamber. More... | |
int | station () const |
Return station number. More... | |
int | wheel () const |
Return wheel number. More... | |
virtual | ~DTGeomSupplier () |
Destructor. More... | |
Private Member Functions | |
void | addTracoT (int step, const DTTracoTrigData *tracotrig, int ifs) |
DTTSM * | getDTTSM (int step, unsigned n) const |
DTTSS * | getDTTSS (int step, unsigned n) const |
void | ignoreSecondTrack (int step, int tracon) |
Set a flag to ignore second tracks (if first track at following BX) More... | |
void | loadTSPhi () |
store DTTracoChip triggers in the DTTSS's More... | |
void | localClear () |
Clear. More... | |
void | runTSPhi () |
run DTTSPhi algorithm (DTTSS+DTTSM) More... | |
Private Attributes | |
const DTConfigTSPhi * | _config |
std::vector< DTTSCand * > | _tctrig [DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1] |
DTTracoCard * | _tracocard |
std::vector< DTTSM * > | _tsm [DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1] |
std::vector< DTTSS * > | _tss [DTConfigTSPhi::NSTEPL-DTConfigTSPhi::NSTEPF+1] |
Additional Inherited Members | |
Public Types inherited from DTCache< T, Coll > | |
typedef my_collection::const_iterator | const_iterator |
typedef my_collection::iterator | iterator |
typedef Coll | my_collection |
typedef T | my_type |
Protected Attributes inherited from DTCache< T, Coll > | |
my_collection | _cache |
Protected Attributes inherited from DTGeomSupplier | |
DTTrigGeom * | _geom |
DTTSPhi::DTTSPhi | ( | DTTrigGeom * | geom, |
DTTracoCard * | tracocard | ||
) |
Constructor.
Definition at line 44 of file DTTSPhi.cc.
References _tsm, _tss, mps_fire::i, DTConfig::NSTEPF, DTConfig::NSTEPL, DTConfigTSPhi::NTSMD, and DTConfigTSPhi::NTSSTSM.
|
override |
Destructor.
Definition at line 76 of file DTTSPhi.cc.
References _tsm, _tss, DTCache< T, Coll >::begin(), localClear(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
|
private |
Add a DTTracoChip trigger to the DTTSPhi, ifs is track number (first or second)
Definition at line 177 of file DTTSPhi.cc.
References _tctrig, DTTSS::addDTTSCand(), DTTracoTrigData::code(), config(), gather_cfg::cout, debug, getDTTSS(), DTConfig::NSTEPF, DTConfig::NSTEPL, DTConfig::NTCTSS, DTConfigTSPhi::NTSSTSM, DTTSS::number(), DTTracoTrigData::print(), DTTracoTrigData::pvCode(), and DTTracoTrigData::tracoNumber().
Referenced by loadTSPhi(), and reconstruct().
|
inline |
Return the configuration class.
Definition at line 63 of file DTTSPhi.h.
References _config, localDirection(), localPosition(), gen::n, nSegm(), segment(), and setConfig().
Referenced by addTracoT(), ignoreSecondTrack(), loadTSPhi(), runTSPhi(), and setConfig().
|
private |
Definition at line 529 of file DTTSPhi.cc.
References _tsm, gather_cfg::cout, gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, and DTCache< T, Coll >::size().
Referenced by ignoreSecondTrack(), reconstruct(), and runTSPhi().
|
private |
Definition at line 511 of file DTTSPhi.cc.
References _tss, gather_cfg::cout, gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and DTCache< T, Coll >::size().
Referenced by addTracoT(), ignoreSecondTrack(), and reconstruct().
|
private |
Set a flag to ignore second tracks (if first track at following BX)
Definition at line 481 of file DTTSPhi.cc.
References config(), gather_cfg::cout, BitArray< N >::element(), getDTTSM(), getDTTSS(), DTTSS::ignoreSecondTrack(), DTTSM::ignoreSecondTrack(), DTConfig::NSTEPL, DTConfig::NTCTSS, DTConfigTSPhi::NTSSTSM, DTGeomSupplier::sector(), DTGeomSupplier::station(), DTConfigTSPhi::TsmStatus(), and DTConfigTSPhi::TSSinTSMD().
Referenced by loadTSPhi(), and reconstruct().
|
private |
store DTTracoChip triggers in the DTTSS's
Definition at line 146 of file DTTSPhi.cc.
References _tracocard, addTracoT(), DTCache< T, Coll >::begin(), config(), gather_cfg::cout, debug, DTCache< T, Coll >::end(), ignoreSecondTrack(), localClear(), DTConfig::NSTEPF, AlCaHLTBitMon_ParallelJobs::p, DTGeomSupplier::sector(), DTGeomSupplier::station(), DTConfigTSPhi::usedTraco(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
|
private |
Clear.
Definition at line 103 of file DTTSPhi.cc.
References _tctrig, _tsm, _tss, DTCache< T, Coll >::begin(), DTConfig::NSTEPF, DTConfig::NSTEPL, and p1.
Referenced by loadTSPhi(), reconstruct(), and ~DTTSPhi().
|
overridevirtual |
Local direction in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 579 of file DTTSPhi.cc.
References _tracocard, gather_cfg::cout, DTTracoCard::localDirection(), and DTChambPhSegm::tracoTrig().
Referenced by config().
|
overridevirtual |
Local position in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 566 of file DTTSPhi.cc.
References _tracocard, gather_cfg::cout, DTTracoCard::localPosition(), and DTChambPhSegm::tracoTrig().
Referenced by config().
int DTTSPhi::nSegm | ( | int | step | ) |
Return number of DTTSPhi segments.
Definition at line 546 of file DTTSPhi.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), gen::n, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by config(), and DTSCTrigUnit::nPhiSegm().
|
inlineoverridevirtual |
Load TRACO triggers and run TSPhi algorithm.
Reimplemented from DTCache< T, Coll >.
Definition at line 81 of file DTTSPhi.h.
References addTracoT(), getDTTSM(), getDTTSS(), ignoreSecondTrack(), loadTSPhi(), localClear(), and runTSPhi().
Referenced by DTTrig::triggerReco().
|
private |
run DTTSPhi algorithm (DTTSS+DTTSM)
Definition at line 232 of file DTTSPhi.cc.
References DTCache< T, Coll >::_cache, _tsm, _tss, DTTSM::addCand(), DTCache< T, Coll >::begin(), DTGeomSupplier::ChamberId(), DTTracoTrigData::code(), config(), gather_cfg::cout, DTConfigTSPhi::debug(), BitArray< N >::element(), plotBeamSpotDB::first, getDTTSM(), DTTSCand::isCorr(), DTTSCand::isHtrig(), DTTSCand::isInner(), DTConfig::NSTEPF, DTConfig::NSTEPL, DTConfigTSPhi::NTSMD, DTConfigTSPhi::NTSSTSMD, AlCaHLTBitMon_ParallelJobs::p, DTGeomSupplier::sector(), DTGeomSupplier::station(), DTTSCand::tracoTr(), DTConfigTSPhi::TsmGetCarryFlag(), DTConfigTSPhi::TsmStatus(), and DTConfigTSPhi::TSSinTSMD().
Referenced by reconstruct().
const DTChambPhSegm * DTTSPhi::segment | ( | int | step, |
unsigned | n | ||
) |
Return the requested DTTSPhi segment.
Definition at line 556 of file DTTSPhi.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by config(), and DTSCTrigUnit::phiSegment().
void DTTSPhi::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 125 of file DTTSPhi.cc.
References _config, _tsm, _tss, DTCache< T, Coll >::begin(), DTGeomSupplier::ChamberId(), config(), DTConfigManager::getDTConfigTSPhi(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by config(), and DTSCTrigUnit::setConfig().
|
private |
Definition at line 113 of file DTTSPhi.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 122 of file DTTSPhi.h.
Referenced by addTracoT(), and localClear().
|
private |
Definition at line 111 of file DTTSPhi.h.
Referenced by loadTSPhi(), localDirection(), and localPosition().
|
private |
Definition at line 118 of file DTTSPhi.h.
Referenced by DTTSPhi(), getDTTSM(), localClear(), runTSPhi(), setConfig(), and ~DTTSPhi().
|
private |
Definition at line 116 of file DTTSPhi.h.
Referenced by DTTSPhi(), getDTTSS(), localClear(), runTSPhi(), setConfig(), and ~DTTSPhi().