#include <DTTSM.h>
Public Member Functions | |
void | addCand (DTTSCand *cand) |
Add a TSS candidate to the TSM, ifs is first/second track flag. More... | |
void | clear () |
Clear. More... | |
const DTConfigTSPhi * | config () const |
Configuration set. More... | |
DTTSM (int) | |
Constructor. 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... | |
unsigned | nCand (int ifs) const |
Return the number of input tracks (first/second) 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... | |
int | number () const |
Return identifier. More... | |
void | run (int bkmod) |
Run the TSM algorithm. More... | |
void | setConfig (const DTConfigTSPhi *config) |
Set configuration. More... | |
DTTSCand * | sortTSM1 (int bkmod) |
Sort 1. More... | |
DTTSCand * | sortTSM2 (int bkmod) |
Sort 2. More... | |
~DTTSM () | |
Destructor. More... | |
Private Attributes | |
const DTConfigTSPhi * | _config |
int | _ignoreSecondTrack |
std::vector< DTTSCand * > | _incand [2] |
int | _n |
std::vector< DTTSCand * > | _outcand |
DTTSM::DTTSM | ( | int | n | ) |
Constructor.
Definition at line 38 of file DTTSM.cc.
References _incand, _outcand, and DTConfigTSPhi::NTSSTSM.
DTTSM::~DTTSM | ( | ) |
void DTTSM::addCand | ( | DTTSCand * | cand | ) |
Add a TSS candidate to the TSM, ifs is first/second track flag.
Definition at line 256 of file DTTSM.cc.
References _incand.
Referenced by DTTSPhi::runTSPhi().
void DTTSM::clear | ( | void | ) |
|
inline |
Configuration set.
Definition at line 73 of file DTTSM.h.
References _config.
Referenced by run(), setConfig(), sortTSM1(), and sortTSM2().
DTTSCand * DTTSM::getDTTSCand | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TS candidate.
Definition at line 273 of file DTTSM.cc.
References _incand, gather_cfg::cout, dqmiodumpmetadata::n, nCand(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getTracoT().
DTTSCand * DTTSM::getTrack | ( | int | n | ) | const |
Return the requested track.
Definition at line 302 of file DTTSM.cc.
References _outcand, gather_cfg::cout, dqmiodumpmetadata::n, nTracks(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by sortTSM2().
const DTTracoTrigData * DTTSM::getTracoT | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TRACO trigger.
Definition at line 288 of file DTTSM.cc.
References gather_cfg::cout, getDTTSCand(), dqmiodumpmetadata::n, nCand(), and DTTSCand::tracoTr().
|
inline |
Set a flag to skip sort2.
Definition at line 57 of file DTTSM.h.
References _ignoreSecondTrack.
Referenced by DTTSPhi::ignoreSecondTrack().
unsigned DTTSM::nCand | ( | int | ifs | ) | const |
Return the number of input tracks (first/second)
Definition at line 263 of file DTTSM.cc.
References _incand, and gather_cfg::cout.
Referenced by getDTTSCand(), and getTracoT().
|
inline |
|
inline |
|
inline |
Return the number of sorted tracks.
Definition at line 91 of file DTTSM.h.
References _outcand.
Referenced by getTrack(), and sortTSM2().
|
inline |
void DTTSM::run | ( | int | bkmod | ) |
Run the TSM algorithm.
Definition at line 64 of file DTTSM.cc.
References _incand, _outcand, config(), gather_cfg::cout, debug, dqmdumpme::first, nFirstT(), nSecondT(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), sortTSM1(), and sortTSM2().
|
inline |
DTTSCand * DTTSM::sortTSM1 | ( | int | bkmod | ) |
Sort 1.
Definition at line 113 of file DTTSM.cc.
References _incand, funct::abs(), config(), gather_cfg::cout, DTTSCand::isCorr(), DTTSCand::isInner(), DTConfig::NTCTSS, AlCaHLTBitMon_ParallelJobs::p, DTTSCand::setBitsBkmod(), DTTSCand::setBitsTss(), DTTSCand::setSecondTrack(), DTTSCand::TcPos(), DTConfigTSPhi::TsmGhost1Flag(), and DTTSCand::tssNumber().
Referenced by run().
DTTSCand * DTTSM::sortTSM2 | ( | int | bkmod | ) |
Sort 2.
curr->isInner() && // outer track
Definition at line 179 of file DTTSM.cc.
References _ignoreSecondTrack, _incand, config(), gather_cfg::cout, getTrack(), DTTSCand::isCorr(), DTTSCand::isInner(), nTracks(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), DTTSCand::setBitsBkmod(), DTTSCand::setBitsTss(), DTTSCand::TcPos(), DTConfigTSPhi::TsmGhost2Corr(), DTConfigTSPhi::TsmGhost2Flag(), and DTTSCand::tssNumber().
Referenced by run().
|
private |
Definition at line 97 of file DTTSM.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 110 of file DTTSM.h.
Referenced by clear(), ignoreSecondTrack(), and sortTSM2().
|
private |
Definition at line 104 of file DTTSM.h.
Referenced by addCand(), clear(), DTTSM(), getDTTSCand(), nCand(), nFirstT(), nSecondT(), run(), sortTSM1(), and sortTSM2().