#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 268 of file DTTSM.cc.
References _incand, and DTTSCand::isFirst().
Referenced by DTTSPhi::runTSPhi(), and setConfig().
void DTTSM::clear | ( | void | ) |
Clear.
Definition at line 54 of file DTTSM.cc.
References _ignoreSecondTrack, _incand, and _outcand.
Referenced by ignoreSecondTrack(), and ~DTTSM().
|
inline |
Configuration set.
Definition at line 74 of file DTTSM.h.
References _config, and nCand().
Referenced by run(), setConfig(), sortTSM1(), and sortTSM2().
DTTSCand * DTTSM::getDTTSCand | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TS candidate.
Definition at line 285 of file DTTSM.cc.
References _incand, gather_cfg::cout, gen::n, nCand(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by getTracoT(), and nSecondT().
DTTSCand * DTTSM::getTrack | ( | int | n | ) | const |
Return the requested track.
Definition at line 314 of file DTTSM.cc.
References _outcand, gather_cfg::cout, gen::n, nTracks(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by nTracks(), and sortTSM2().
const DTTracoTrigData * DTTSM::getTracoT | ( | int | ifs, |
unsigned | n | ||
) | const |
Return requested TRACO trigger.
Definition at line 300 of file DTTSM.cc.
References gather_cfg::cout, getDTTSCand(), gen::n, nCand(), and DTTSCand::tracoTr().
Referenced by nSecondT().
|
inline |
Set a flag to skip sort2.
Definition at line 58 of file DTTSM.h.
References _ignoreSecondTrack, clear(), run(), sortTSM1(), and sortTSM2().
Referenced by DTTSPhi::ignoreSecondTrack().
unsigned DTTSM::nCand | ( | int | ifs | ) | const |
Return the number of input tracks (first/second)
Definition at line 275 of file DTTSM.cc.
References _incand, and gather_cfg::cout.
Referenced by config(), getDTTSCand(), and getTracoT().
|
inline |
|
inline |
Return the number of input second tracks.
Definition at line 83 of file DTTSM.h.
References _incand, getDTTSCand(), getTracoT(), and gen::n.
Referenced by run().
|
inline |
Return the number of sorted tracks.
Definition at line 92 of file DTTSM.h.
References _outcand, and getTrack().
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, begin, config(), gather_cfg::cout, debug, plotBeamSpotDB::first, nFirstT(), nSecondT(), AlCaHLTBitMon_ParallelJobs::p, edm::second(), sortTSM1(), and sortTSM2().
Referenced by ignoreSecondTrack().
|
inline |
DTTSCand * DTTSM::sortTSM1 | ( | int | bkmod | ) |
Sort 1.
Definition at line 117 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 ignoreSecondTrack(), and run().
DTTSCand * DTTSM::sortTSM2 | ( | int | bkmod | ) |
Sort 2.
curr->isInner() && // outer track
Definition at line 186 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 ignoreSecondTrack(), and run().
|
private |
Definition at line 98 of file DTTSM.h.
Referenced by config(), and setConfig().
|
private |
Definition at line 111 of file DTTSM.h.
Referenced by clear(), ignoreSecondTrack(), and sortTSM2().
|
private |
Definition at line 105 of file DTTSM.h.
Referenced by addCand(), clear(), DTTSM(), getDTTSCand(), nCand(), nFirstT(), nSecondT(), run(), sortTSM1(), and sortTSM2().