#include <DTTSS.h>
Public Member Functions | |
void | addDTTSCand (DTTSCand *cand) |
Add a TS candidate to the TSS, ifs is first/second track flag. More... | |
void | clear () |
Clear. More... | |
const DTConfigTSPhi * | config () const |
Configuration set. More... | |
DTTSS (int) | |
Constructor. More... | |
DTTSCand * | getCarry () const |
Return the carry (for debugging) More... | |
DTTSCand * | getDTTSCand (int ifs, unsigned n) const |
Return requested TS candidate. More... | |
DTTSCand * | getTrack (int n) const |
Return the requested track. More... | |
const DTTracoTrigData * | getTracoT (int ifs, unsigned n) const |
Return requested TRACO trigger. More... | |
void | ignoreSecondTrack () |
Set a flag to skip sort2. More... | |
std::string | logWord (int n) const |
Return the requested log word. More... | |
int | nFirstT () const |
Return the number of input first tracks. More... | |
int | nSecondT () const |
Return the number of input second tracks. More... | |
int | nTracks () const |
Return the number of sorted tracks. More... | |
unsigned | nTracoT (int ifs) const |
Return the number of input tracks (first/second) More... | |
int | number () const |
Return identifier. More... | |
void | run () |
Run the TSS algorithm. More... | |
void | setConfig (const DTConfigTSPhi *config) |
Set configuration. More... | |
DTTSCand * | sortTSS1 () |
Sort 1. More... | |
DTTSCand * | sortTSS2 () |
Sort 2. More... | |
~DTTSS () | |
Destructor. More... | |
Private Attributes | |
const DTConfigTSPhi * | _config |
int | _ignoreSecondTrack |
std::string | _logWord1 |
std::string | _logWord2 |
int | _n |
std::vector< DTTSCand * > | _outcand |
std::vector< DTTSCand * > | _tctrig [2] |
DTTSS::DTTSS | ( | int | n | ) |
void DTTSS::addDTTSCand | ( | DTTSCand * | cand | ) |
Add a TS candidate to the TSS, ifs is first/second track flag.
Definition at line 283 of file DTTSS.cc.
References _tctrig, and DTTSCand::isFirst().
Referenced by DTTSPhi::addTracoT().
void DTTSS::clear | ( | void | ) |
Clear.
Definition at line 55 of file DTTSS.cc.
References _ignoreSecondTrack, _logWord1, _logWord2, _outcand, and _tctrig.
Referenced by ignoreSecondTrack(), and ~DTTSS().
|
inline |
Configuration set.
Definition at line 70 of file DTTSS.h.
References _config, and nTracoT().
Referenced by DTTSCand::config(), run(), setConfig(), sortTSS1(), and sortTSS2().
DTTSCand * DTTSS::getCarry | ( | ) | const |
Return the carry (for debugging)
Definition at line 337 of file DTTSS.cc.
References _tctrig, begin, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by nSecondT().
DTTSCand * DTTSS::getDTTSCand | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TS candidate.
Definition at line 298 of file DTTSS.cc.
References _tctrig, gather_cfg::cout, gen::n, nTracoT(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getTracoT(), and nSecondT().
DTTSCand * DTTSS::getTrack | ( | int | n | ) | const |
Return the requested track.
Definition at line 327 of file DTTSS.cc.
References _outcand, gather_cfg::cout, gen::n, nTracks(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by nTracks(), and sortTSS2().
const DTTracoTrigData * DTTSS::getTracoT | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TRACO trigger.
Definition at line 313 of file DTTSS.cc.
References gather_cfg::cout, getDTTSCand(), gen::n, nTracoT(), and DTTSCand::tracoTr().
Referenced by nSecondT().
|
inline |
Set a flag to skip sort2.
Definition at line 52 of file DTTSS.h.
References _ignoreSecondTrack, clear(), run(), sortTSS1(), and sortTSS2().
Referenced by DTTSPhi::ignoreSecondTrack().
std::string DTTSS::logWord | ( | int | n | ) | const |
Return the requested log word.
Definition at line 345 of file DTTSS.cc.
References _logWord1, _logWord2, gather_cfg::cout, gen::n, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by nTracks().
|
inline |
|
inline |
Return the number of input second tracks.
Definition at line 79 of file DTTSS.h.
References _tctrig, getCarry(), getDTTSCand(), getTracoT(), and gen::n.
Referenced by run().
|
inline |
Return the number of sorted tracks.
Definition at line 91 of file DTTSS.h.
References _outcand, getTrack(), logWord(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by getTrack(), and sortTSS2().
unsigned DTTSS::nTracoT | ( | int | ifs | ) | const |
Return the number of input tracks (first/second)
Definition at line 289 of file DTTSS.cc.
References _tctrig, and gather_cfg::cout.
Referenced by config(), getDTTSCand(), and getTracoT().
|
inline |
Return identifier.
Definition at line 67 of file DTTSS.h.
References _n.
Referenced by DTTSPhi::addTracoT(), and DTTSCand::tssNumber().
void DTTSS::run | ( | ) |
Run the TSS algorithm.
Definition at line 69 of file DTTSS.cc.
References _n, _outcand, _tctrig, begin, config(), gather_cfg::cout, debug, plotBeamSpotDB::first, nFirstT(), nSecondT(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), sortTSS1(), and sortTSS2().
Referenced by ignoreSecondTrack().
|
inline |
DTTSCand * DTTSS::sortTSS1 | ( | ) |
Sort 1.
Definition at line 119 of file DTTSS.cc.
References _logWord1, _tctrig, funct::abs(), begin, config(), DTTSCand::dataword(), DTTSCand::isCorr(), DTTSCand::isFirst(), DTTSCand::isInner(), AlCaHLTBitMon_ParallelJobs::p, DTTSCand::setBitsTss(), DTTSCand::setSecondTrack(), DTTSCand::TcPos(), and DTConfigTSPhi::TssGhost1Corr().
Referenced by ignoreSecondTrack(), and run().
DTTSCand * DTTSS::sortTSS2 | ( | ) |
Sort 2.
curr->isInner() && // outer track
Definition at line 193 of file DTTSS.cc.
References _ignoreSecondTrack, _logWord2, _tctrig, begin, config(), gather_cfg::cout, DTTSCand::dataword(), getTrack(), DTTSCand::isCarry(), DTTSCand::isCorr(), DTTSCand::isFirst(), DTTSCand::isInner(), nTracks(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), DTTSCand::setBitsTss(), DTTSCand::TcPos(), DTConfigTSPhi::TssGhost2Corr(), and DTConfigTSPhi::TssGhost2Flag().
Referenced by ignoreSecondTrack(), and run().
|
private |
Definition at line 100 of file DTTSS.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 112 of file DTTSS.h.
Referenced by clear(), ignoreSecondTrack(), and sortTSS2().
|
private |
|
private |
|
private |
|
private |
Definition at line 106 of file DTTSS.h.
Referenced by addDTTSCand(), clear(), getCarry(), getDTTSCand(), nFirstT(), nSecondT(), nTracoT(), run(), sortTSS1(), and sortTSS2().