#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.
void DTTSM::addCand | ( | DTTSCand * | cand | ) |
Add a TSS candidate to the TSM, ifs is first/second track flag.
Definition at line 276 of file DTTSM.cc.
References _incand, and DTTSCand::isFirst().
Referenced by DTTSPhi::runTSPhi().
void DTTSM::clear | ( | void | ) |
|
inline |
Configuration set.
Definition at line 75 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 295 of file DTTSM.cc.
References _incand, gather_cfg::cout, gen::n, nCand(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getTracoT().
DTTSCand * DTTSM::getTrack | ( | int | n | ) | const |
Return the requested track.
Definition at line 326 of file DTTSM.cc.
References _outcand, gather_cfg::cout, gen::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 311 of file DTTSM.cc.
References gather_cfg::cout, getDTTSCand(), gen::n, nCand(), and DTTSCand::tracoTr().
|
inline |
Set a flag to skip sort2.
Definition at line 59 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 284 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 93 of file DTTSM.h.
References _outcand.
Referenced by getTrack(), and sortTSM2().
|
inline |
void DTTSM::run | ( | int | bkmod | ) |
Run the TSM algorithm.
Definition at line 70 of file DTTSM.cc.
References _incand, _outcand, begin, config(), gather_cfg::cout, debug, plotBeamSpotDB::first, nFirstT(), nSecondT(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), sortTSM1(), and sortTSM2().
|
inline |
DTTSCand * DTTSM::sortTSM1 | ( | int | bkmod | ) |
Sort 1.
Definition at line 122 of file DTTSM.cc.
References _incand, funct::abs(), begin, 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 195 of file DTTSM.cc.
References _ignoreSecondTrack, _incand, begin, 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 100 of file DTTSM.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 114 of file DTTSM.h.
Referenced by clear(), ignoreSecondTrack(), and sortTSM2().
|
private |
Definition at line 108 of file DTTSM.h.
Referenced by addCand(), clear(), DTTSM(), getDTTSCand(), nCand(), nFirstT(), nSecondT(), run(), sortTSM1(), and sortTSM2().