#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... | |
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 (DTConfigTSPhi *config) |
Set configuration. More... | |
DTTSCand * | sortTSS1 () |
Sort 1. More... | |
DTTSCand * | sortTSS2 () |
Sort 2. More... | |
~DTTSS () | |
Destructor. More... | |
Private Attributes | |
DTConfigTSPhi * | _config |
int | _ignoreSecondTrack |
std::string | _logWord1 |
std::string | _logWord2 |
int | _n |
std::vector< DTTSCand * > | _outcand |
std::vector< DTTSCand * > | _tctrig [2] |
Implementation of TSS trigger algorithm
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 290 of file DTTSS.cc.
References _tctrig, and DTTSCand::isFirst().
Referenced by DTTSPhi::addTracoT().
void DTTSS::clear | ( | void | ) |
|
inline |
Configuration set.
Definition at line 73 of file DTTSS.h.
References _config.
Referenced by DTTSCand::config(), run(), setConfig(), sortTSS1(), and sortTSS2().
DTTSCand * DTTSS::getCarry | ( | ) | const |
Return the carry (for debugging)
Definition at line 349 of file DTTSS.cc.
References _tctrig, begin, and AlCaHLTBitMon_ParallelJobs::p.
DTTSCand * DTTSS::getDTTSCand | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TS candidate.
Definition at line 307 of file DTTSS.cc.
References _tctrig, gather_cfg::cout, n, nTracoT(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getTracoT().
DTTSCand * DTTSS::getTrack | ( | int | n | ) | const |
Return the requested track.
Definition at line 338 of file DTTSS.cc.
References _outcand, gather_cfg::cout, n, nTracks(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by sortTSS2().
const DTTracoTrigData * DTTSS::getTracoT | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TRACO trigger.
Definition at line 323 of file DTTSS.cc.
References gather_cfg::cout, getDTTSCand(), n, nTracoT(), and DTTSCand::tracoTr().
|
inline |
Set a flag to skip sort2.
Definition at line 55 of file DTTSS.h.
References _ignoreSecondTrack.
Referenced by DTTSPhi::ignoreSecondTrack().
std::string DTTSS::logWord | ( | int | n | ) | const |
|
inline |
|
inline |
|
inline |
Return the number of sorted tracks.
Definition at line 94 of file DTTSS.h.
References _outcand.
Referenced by getTrack(), and sortTSS2().
unsigned DTTSS::nTracoT | ( | int | ifs | ) | const |
Return the number of input tracks (first/second)
Definition at line 297 of file DTTSS.cc.
References _tctrig, and gather_cfg::cout.
Referenced by getDTTSCand(), and getTracoT().
|
inline |
Return identifier.
Definition at line 70 of file DTTSS.h.
References _n.
Referenced by DTTSPhi::addTracoT(), and DTTSCand::tssNumber().
void DTTSS::run | ( | void | ) |
Run the TSS algorithm.
Definition at line 76 of file DTTSS.cc.
References _n, _outcand, _tctrig, begin, config(), gather_cfg::cout, debug, first, nFirstT(), nSecondT(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), sortTSS1(), and sortTSS2().
|
inline |
DTTSCand * DTTSS::sortTSS1 | ( | ) |
Sort 1.
Definition at line 124 of file DTTSS.cc.
References _logWord1, _tctrig, 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 run().
DTTSCand * DTTSS::sortTSS2 | ( | ) |
Sort 2.
curr->isInner() && // outer track
Definition at line 202 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 run().
|
private |
Definition at line 104 of file DTTSS.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 116 of file DTTSS.h.
Referenced by clear(), ignoreSecondTrack(), and sortTSS2().
|
private |
|
private |
|
private |
|
private |
Definition at line 110 of file DTTSS.h.
Referenced by addDTTSCand(), clear(), getCarry(), getDTTSCand(), nFirstT(), nSecondT(), nTracoT(), run(), sortTSS1(), and sortTSS2().