#include <DTTSPhi.h>
Public Member Functions | |
DTConfigTSPhi * | config () const |
Return the configuration class. More... | |
DTTSPhi (DTTrigGeom *, DTTracoCard *) | |
Constructor. More... | |
LocalVector | localDirection (const DTTrigData *) const |
Local direction in chamber of a trigger-data object. More... | |
LocalPoint | localPosition (const DTTrigData *) const |
Local position in chamber of a trigger-data object. More... | |
int | nSegm (int step) |
Return number of DTTSPhi segments. More... | |
virtual void | reconstruct () |
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 () | |
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) |
Add a DTTracoChip trigger to the DTTSPhi, ifs is track number (first or second) More... | |
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 | |
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 |
Implementation of TS Phi trigger algorithm
DTTSPhi::DTTSPhi | ( | DTTrigGeom * | geom, |
DTTracoCard * | tracocard | ||
) |
Constructor.
Definition at line 44 of file DTTSPhi.cc.
References _tsm, _tss, i, DTConfig::NSTEPF, DTConfig::NSTEPL, DTConfigTSPhi::NTSMD, and DTConfigTSPhi::NTSSTSM.
DTTSPhi::~DTTSPhi | ( | ) |
Destructor.
Definition at line 75 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 181 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(), pos, DTTracoTrigData::print(), DTTracoTrigData::pvCode(), relval_parameters_module::step, and DTTracoTrigData::tracoNumber().
Referenced by loadTSPhi().
|
inline |
Return the configuration class.
Definition at line 66 of file DTTSPhi.h.
References _config.
Referenced by addTracoT(), ignoreSecondTrack(), loadTSPhi(), runTSPhi(), and setConfig().
|
private |
Definition at line 481 of file DTTSPhi.cc.
References _tsm, gather_cfg::cout, n, DTConfig::NSTEPF, DTConfig::NSTEPL, DTCache< T, Coll >::size(), and relval_parameters_module::step.
Referenced by ignoreSecondTrack(), and runTSPhi().
|
private |
Definition at line 460 of file DTTSPhi.cc.
References _tss, gather_cfg::cout, n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, DTCache< T, Coll >::size(), and relval_parameters_module::step.
Referenced by addTracoT(), and ignoreSecondTrack().
|
private |
Set a flag to ignore second tracks (if first track at following BX)
Definition at line 428 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(), relval_parameters_module::step, DTConfigTSPhi::TsmStatus(), and DTConfigTSPhi::TSSinTSMD().
Referenced by loadTSPhi().
|
private |
store DTTracoChip triggers in the DTTSS's
Definition at line 150 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(), relval_parameters_module::step, DTConfigTSPhi::usedTraco(), and DTGeomSupplier::wheel().
Referenced by reconstruct().
|
private |
Clear.
Definition at line 105 of file DTTSPhi.cc.
References _tctrig, _tsm, _tss, DTCache< T, Coll >::begin(), DTConfig::NSTEPF, DTConfig::NSTEPL, and p1.
Referenced by loadTSPhi(), and ~DTTSPhi().
|
virtual |
Local direction in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 532 of file DTTSPhi.cc.
References _tracocard, gather_cfg::cout, DTTracoCard::localDirection(), and DTChambPhSegm::tracoTrig().
|
virtual |
Local position in chamber of a trigger-data object.
Implements DTGeomSupplier.
Definition at line 520 of file DTTSPhi.cc.
References _tracocard, gather_cfg::cout, DTTracoCard::localPosition(), and DTChambPhSegm::tracoTrig().
int DTTSPhi::nSegm | ( | int | step | ) |
Return number of DTTSPhi segments.
Definition at line 500 of file DTTSPhi.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), n, AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.
Referenced by DTSCTrigUnit::nPhiSegm().
|
inlinevirtual |
Load TRACO triggers and run TSPhi algorithm.
Reimplemented from DTCache< T, Coll >.
Definition at line 84 of file DTTSPhi.h.
References loadTSPhi(), and runTSPhi().
Referenced by DTTrig::triggerReco().
|
private |
run DTTSPhi algorithm (DTTSS+DTTSM)
Definition at line 235 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(), 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 510 of file DTTSPhi.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTSCTrigUnit::phiSegment().
void DTTSPhi::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 127 of file DTTSPhi.cc.
References _config, _tsm, _tss, DTCache< T, Coll >::begin(), DTGeomSupplier::ChamberId(), config(), DTConfigManager::getDTConfigTSPhi(), DTConfig::NSTEPF, DTConfig::NSTEPL, and evf::utils::sid.
Referenced by DTSCTrigUnit::setConfig().
|
private |
Definition at line 116 of file DTTSPhi.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 124 of file DTTSPhi.h.
Referenced by addTracoT(), and localClear().
|
private |
Definition at line 114 of file DTTSPhi.h.
Referenced by loadTSPhi(), localDirection(), and localPosition().
|
private |
Definition at line 121 of file DTTSPhi.h.
Referenced by DTTSPhi(), getDTTSM(), localClear(), runTSPhi(), setConfig(), and ~DTTSPhi().
|
private |
Definition at line 119 of file DTTSPhi.h.
Referenced by DTTSPhi(), getDTTSS(), localClear(), runTSPhi(), setConfig(), and ~DTTSPhi().