#include <DTSectColl.h>
Classes | |
class | h |
Public Member Functions | |
void | addTSPhi (int step, const DTChambPhSegm *tsmsegm, int ifs, int istat) |
Add a TSM candidate (step is TSM step not SC one) More... | |
void | addTSTheta (int step, const DTChambThSegm *tsmsegm, int istat) |
Add a TS Theta candidate (step is TSTheta step not sc one) More... | |
void | addTU (DTSCTrigUnit *tru) |
Add a Trigger Unit to the Sector Collector. More... | |
std::vector< DTSectCollPhSegm > ::const_iterator | beginPh () |
Return iterator to the beghin of Phi cache. More... | |
std::vector< DTSectCollThSegm > ::const_iterator | beginTh () |
Return iterator to the begni of Theta cache. More... | |
void | clearCache () |
Local position in chamber of a trigger-data object. More... | |
const DTConfigSectColl * | config () const |
Configuration. More... | |
DTSectColl (DTSectCollId id) | |
Constructor. More... | |
std::vector< DTSectCollPhSegm > ::const_iterator | endPh () |
Return iterator to the end of Phi cache. More... | |
std::vector< DTSectCollThSegm > ::const_iterator | endTh () |
Return iterator to the end of Theta cache. More... | |
DTSC * | getDTSC (int step, int istat) const |
Get a Sector Collector (step is TS one) More... | |
DTSectCollPhCand * | getDTSectCollPhCand (int ifs, unsigned n) const |
Get a Phi Candidate for Sector Collector. More... | |
DTSectCollThCand * | getDTSectCollThCand (unsigned n) const |
Get a Candidate for Sector Collector. More... | |
DTSectCollPhCand * | getTrackPh (int n) const |
Return the requested Phi track. More... | |
DTSectCollThCand * | getTrackTh (int n) const |
Return the requested Theta track. More... | |
DTTSPhi * | getTSPhi (int istat) const |
Return TSPhi. More... | |
DTTSTheta * | getTSTheta (int istat) const |
Return TSTheta. More... | |
void | loadSectColl () |
Load a Sector Collector. More... | |
void | localClear () |
Local Clear. More... | |
unsigned | nCandPh (int ifs) const |
Return the number of Phi input tracks (first/second) More... | |
unsigned | nCandTh () const |
Return the number of Theta input tracks. More... | |
int | nSegmPh (int step) |
Return number of DTSectCollPhi segments (SC step) More... | |
int | nSegmTh (int step) |
Return number of DTSectCollTheta segments (SC step) More... | |
int | nTracksPh () const |
Return the number of output Phi tracks. More... | |
int | nTracksTh () const |
Return the number of output Theta tracks. More... | |
virtual void | reconstruct () |
Load Trigger Units triggers and run Sector Collector algorithm. More... | |
void | runSectColl () |
Run Sector Collector. More... | |
DTSectCollId | SectCollId () |
Return the Sector Collector Id. More... | |
const DTSectCollPhSegm * | SectCollPhSegment (int step, unsigned n) |
Return requested Sector Collector Phi Segment 1st/2nd. More... | |
const DTSectCollThSegm * | SectCollThSegment (int step) |
Return requested Sector Collector Theta Segment. More... | |
void | setConfig (const DTConfigManager *conf) |
Set configuration. More... | |
int | sizePh () |
Return Phi cache size. More... | |
int | sizeTh () |
Return Theta cache size. More... | |
~DTSectColl () | |
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... | |
Private Attributes | |
const DTConfigSectColl * | _config |
std::vector< DTSectCollPhCand * > | _incand_ph [2] |
std::vector< DTSectCollThCand * > | _incand_th |
std::vector< DTSectCollPhCand * > | _outcand_ph |
std::vector< DTSectCollThCand * > | _outcand_th |
DTSectCollId | _sectcollid |
DTSC * | _tsc [DTConfigSectColl::NSTEPL-DTConfigSectColl::NSTEPF+1][DTConfigSectColl::NDTSC] |
DTTSPhi * | _tsphi [DTConfigSectColl::NTSPSC] |
DTTSTheta * | _tstheta [DTConfigSectColl::NTSTSC] |
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 |
Definition at line 56 of file DTSectColl.h.
DTSectColl::DTSectColl | ( | DTSectCollId | id | ) |
Constructor.
Definition at line 48 of file DTSectColl.cc.
References _tsc, _tsphi, _tstheta, DTConfig::NSTEPF, and DTConfig::NSTEPL.
DTSectColl::~DTSectColl | ( | ) |
Destructor.
Definition at line 66 of file DTSectColl.cc.
References _tsc, localClear(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
void DTSectColl::addTSPhi | ( | int | step, |
const DTChambPhSegm * | tsmsegm, | ||
int | ifs, | ||
int | istat | ||
) |
Add a TSM candidate (step is TSM step not SC one)
Definition at line 230 of file DTSectColl.cc.
References _incand_ph, DTSC::addDTSectCollPhCand(), config(), gather_cfg::cout, debug, getDTSC(), DTConfig::NSTEPL, DTChambPhSegm::oldCode(), and relval_parameters_module::step.
Referenced by loadSectColl().
void DTSectColl::addTSTheta | ( | int | step, |
const DTChambThSegm * | tsmsegm, | ||
int | istat | ||
) |
Add a TS Theta candidate (step is TSTheta step not sc one)
Definition at line 274 of file DTSectColl.cc.
References _incand_th, DTSC::addThCand(), config(), gather_cfg::cout, debug, getDTSC(), i, utils::is_empty(), DTConfig::NSTEPL, DTChambThSegm::position(), and relval_parameters_module::step.
Referenced by loadSectColl().
void DTSectColl::addTU | ( | DTSCTrigUnit * | tru | ) |
Add a Trigger Unit to the Sector Collector.
Definition at line 128 of file DTSectColl.cc.
References _sectcollid, _tsphi, _tstheta, gather_cfg::cout, DTSCTrigUnit::sector(), DTSCTrigUnit::station(), DTSCTrigUnit::TSPhTrigs(), DTSCTrigUnit::TSThTrigs(), and DTSCTrigUnit::wheel().
Referenced by DTTrig::createTUs().
|
inline |
Return iterator to the beghin of Phi cache.
Definition at line 150 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::SCPhTrigs().
|
inline |
Return iterator to the begni of Theta cache.
Definition at line 159 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::SCThTrigs().
|
inline |
Local position in chamber of a trigger-data object.
Local direction in chamber of a trigger-data object Clear both (Phi and Theta) caches
Definition at line 174 of file DTSectColl.h.
References DTCache< T, Coll >::clearCache().
Referenced by DTTrig::triggerReco().
|
inline |
Configuration.
Definition at line 77 of file DTSectColl.h.
References _config.
Referenced by addTSPhi(), addTSTheta(), runSectColl(), and setConfig().
|
inline |
Return iterator to the end of Phi cache.
Definition at line 156 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::SCPhTrigs().
|
inline |
Return iterator to the end of Theta cache.
Definition at line 165 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::SCThTrigs().
DTSC * DTSectColl::getDTSC | ( | int | step, |
int | istat | ||
) | const |
Get a Sector Collector (step is TS one)
Definition at line 319 of file DTSectColl.cc.
References _tsc, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and relval_parameters_module::step.
Referenced by addTSPhi(), and addTSTheta().
DTSectCollPhCand * DTSectColl::getDTSectCollPhCand | ( | int | ifs, |
unsigned | n | ||
) | const |
Get a Phi Candidate for Sector Collector.
Definition at line 400 of file DTSectColl.cc.
References _incand_ph, gather_cfg::cout, gen::n, nCandPh(), and AlCaHLTBitMon_ParallelJobs::p.
DTSectCollThCand * DTSectColl::getDTSectCollThCand | ( | unsigned | n | ) | const |
Get a Candidate for Sector Collector.
Definition at line 419 of file DTSectColl.cc.
References _incand_th, gather_cfg::cout, gen::n, nCandTh(), and AlCaHLTBitMon_ParallelJobs::p.
DTSectCollPhCand * DTSectColl::getTrackPh | ( | int | n | ) | const |
Return the requested Phi track.
Definition at line 434 of file DTSectColl.cc.
References _outcand_ph, gather_cfg::cout, gen::n, nTracksPh(), and AlCaHLTBitMon_ParallelJobs::p.
DTSectCollThCand * DTSectColl::getTrackTh | ( | int | n | ) | const |
Return the requested Theta track.
Definition at line 448 of file DTSectColl.cc.
References _outcand_th, gather_cfg::cout, gen::n, nTracksTh(), and AlCaHLTBitMon_ParallelJobs::p.
|
inline |
Return TSPhi.
Definition at line 71 of file DTSectColl.h.
References _tsphi.
Referenced by DTTrig::triggerReco().
|
inline |
Return TSTheta.
Definition at line 74 of file DTSectColl.h.
References _tstheta.
Referenced by DTTrig::triggerReco().
void DTSectColl::loadSectColl | ( | ) |
Load a Sector Collector.
Definition at line 188 of file DTSectColl.cc.
References _tsphi, _tstheta, addTSPhi(), addTSTheta(), DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), localClear(), AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.
Referenced by reconstruct().
void DTSectColl::localClear | ( | ) |
Local Clear.
Definition at line 84 of file DTSectColl.cc.
References _incand_ph, _incand_th, _outcand_ph, _outcand_th, _tsc, DTSC::clear(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by loadSectColl(), and ~DTSectColl().
unsigned DTSectColl::nCandPh | ( | int | ifs | ) | const |
Return the number of Phi input tracks (first/second)
Definition at line 463 of file DTSectColl.cc.
References _incand_ph, and gather_cfg::cout.
Referenced by getDTSectCollPhCand().
unsigned DTSectColl::nCandTh | ( | ) | const |
Return the number of Theta input tracks.
Definition at line 476 of file DTSectColl.cc.
References _incand_th.
Referenced by getDTSectCollThCand(), and runSectColl().
int DTSectColl::nSegmPh | ( | int | step | ) |
Return number of DTSectCollPhi segments (SC step)
Definition at line 483 of file DTSectColl.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), gen::n, AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.
Referenced by DTTrig::chSectCollPhSegm1(), and DTTrig::chSectCollPhSegm2().
int DTSectColl::nSegmTh | ( | int | step | ) |
Return number of DTSectCollTheta segments (SC step)
Definition at line 497 of file DTSectColl.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), gen::n, AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.
Referenced by DTTrig::chSectCollThSegm().
|
inline |
Return the number of output Phi tracks.
Definition at line 138 of file DTSectColl.h.
References _outcand_ph.
Referenced by getTrackPh(), and runSectColl().
|
inline |
Return the number of output Theta tracks.
Definition at line 141 of file DTSectColl.h.
References _outcand_th.
Referenced by getTrackTh(), and runSectColl().
|
inlinevirtual |
Load Trigger Units triggers and run Sector Collector algorithm.
Reimplemented from DTCache< T, Coll >.
Definition at line 177 of file DTSectColl.h.
References loadSectColl(), and runSectColl().
Referenced by DTTrig::triggerReco().
void DTSectColl::runSectColl | ( | ) |
Run Sector Collector.
Definition at line 339 of file DTSectColl.cc.
References DTCache< T, Coll >::_cache, _outcand_ph, _outcand_th, _tsc, DTCache< T, Coll >::begin(), DTSectCollThCand::CoarseSync(), DTSectCollPhCand::CoarseSync(), config(), gather_cfg::cout, debug, DTSC::getTrackPh(), DTSC::getTrackTh(), nCandTh(), DTConfig::NSTEPF, DTConfig::NSTEPL, nTracksPh(), nTracksTh(), DTSC::run(), SectCollId(), DTCache< T, Coll >::size(), DTSectCollThCand::tsTr(), and DTSectCollPhCand::tsTr().
Referenced by reconstruct().
|
inline |
Return the Sector Collector Id.
Definition at line 180 of file DTSectColl.h.
References _sectcollid.
Referenced by runSectColl().
const DTSectCollPhSegm * DTSectColl::SectCollPhSegment | ( | int | step, |
unsigned | n | ||
) |
Return requested Sector Collector Phi Segment 1st/2nd.
Definition at line 512 of file DTSectColl.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by DTTrig::chSectCollPhSegm1(), and DTTrig::chSectCollPhSegm2().
const DTSectCollThSegm * DTSectColl::SectCollThSegment | ( | int | step | ) |
Return requested Sector Collector Theta Segment.
Definition at line 526 of file DTSectColl.cc.
References DTCache< T, Coll >::begin(), DTCache< T, Coll >::end(), AlCaHLTBitMon_ParallelJobs::p, and relval_parameters_module::step.
Referenced by DTTrig::chSectCollThSegm().
void DTSectColl::setConfig | ( | const DTConfigManager * | conf | ) |
Set configuration.
Definition at line 114 of file DTSectColl.cc.
References _config, _sectcollid, _tsc, config(), DTConfigManager::getDTConfigSectColl(), DTConfig::NSTEPF, DTConfig::NSTEPL, and DTSC::setConfig().
|
inline |
Return Phi cache size.
Definition at line 153 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::triggerReco().
|
inline |
Return Theta cache size.
Definition at line 162 of file DTSectColl.h.
References DTCache< T, Coll >::_cache.
Referenced by DTTrig::triggerReco().
|
private |
Definition at line 185 of file DTSectColl.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 197 of file DTSectColl.h.
Referenced by addTSPhi(), getDTSectCollPhCand(), localClear(), and nCandPh().
|
private |
Definition at line 203 of file DTSectColl.h.
Referenced by addTSTheta(), getDTSectCollThCand(), localClear(), and nCandTh().
|
private |
Definition at line 200 of file DTSectColl.h.
Referenced by getTrackPh(), localClear(), nTracksPh(), and runSectColl().
|
private |
Definition at line 206 of file DTSectColl.h.
Referenced by getTrackTh(), localClear(), nTracksTh(), and runSectColl().
|
private |
Definition at line 188 of file DTSectColl.h.
Referenced by addTU(), SectCollId(), and setConfig().
|
private |
Definition at line 194 of file DTSectColl.h.
Referenced by DTSectColl(), getDTSC(), localClear(), runSectColl(), setConfig(), and ~DTSectColl().
|
private |
Definition at line 190 of file DTSectColl.h.
Referenced by addTU(), DTSectColl(), getTSPhi(), and loadSectColl().
|
private |
Definition at line 191 of file DTSectColl.h.
Referenced by addTU(), DTSectColl(), getTSTheta(), and loadSectColl().