CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTTSM Class Reference

#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 DTConfigTSPhiconfig () const
 Configuration set. More...
 
 DTTSM (int)
 Constructor. More...
 
DTTSCandgetDTTSCand (int ifs, unsigned n) const
 Return requested TS candidate. More...
 
DTTSCandgetTrack (int n) const
 Return the requested track. More...
 
const DTTracoTrigDatagetTracoT (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...
 
DTTSCandsortTSM1 (int bkmod)
 Sort 1. More...
 
DTTSCandsortTSM2 (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
 

Detailed Description

Implementation of TSM trigger algorithm

Author
C. Grandi, D. Bonacorsi, S. Marcellini

Definition at line 38 of file DTTSM.h.

Constructor & Destructor Documentation

DTTSM::DTTSM ( int  n)

Constructor.

Definition at line 38 of file DTTSM.cc.

DTTSM::~DTTSM ( )

Destructor.

Definition at line 49 of file DTTSM.cc.

Member Function Documentation

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.

void DTTSM::clear ( void  )

Clear.

Definition at line 59 of file DTTSM.cc.

const DTConfigTSPhi* DTTSM::config ( void  ) const
inline

Configuration set.

Definition at line 75 of file DTTSM.h.

References _config.

Referenced by setConfig().

75 { return _config; }
const DTConfigTSPhi * _config
Definition: DTTSM.h:100
DTTSCand * DTTSM::getDTTSCand ( int  ifs,
unsigned  n 
) const

Return requested TS candidate.

Definition at line 295 of file DTTSM.cc.

DTTSCand * DTTSM::getTrack ( int  n) const

Return the requested track.

Definition at line 326 of file DTTSM.cc.

const DTTracoTrigData * DTTSM::getTracoT ( int  ifs,
unsigned  n 
) const

Return requested TRACO trigger.

Definition at line 311 of file DTTSM.cc.

void DTTSM::ignoreSecondTrack ( )
inline

Set a flag to skip sort2.

Definition at line 59 of file DTTSM.h.

References _ignoreSecondTrack.

59 { _ignoreSecondTrack=1; }
int _ignoreSecondTrack
Definition: DTTSM.h:114
unsigned DTTSM::nCand ( int  ifs) const

Return the number of input tracks (first/second)

Definition at line 284 of file DTTSM.cc.

int DTTSM::nFirstT ( ) const
inline

Return the number of input first tracks.

Definition at line 81 of file DTTSM.h.

References _incand.

81 { return _incand[0].size(); }
std::vector< DTTSCand * > _incand[2]
Definition: DTTSM.h:108
int DTTSM::nSecondT ( ) const
inline

Return the number of input second tracks.

Definition at line 84 of file DTTSM.h.

References _incand.

84 { return _incand[1].size(); }
std::vector< DTTSCand * > _incand[2]
Definition: DTTSM.h:108
int DTTSM::nTracks ( ) const
inline

Return the number of sorted tracks.

Definition at line 93 of file DTTSM.h.

References _outcand.

93 { return _outcand.size(); }
std::vector< DTTSCand * > _outcand
Definition: DTTSM.h:111
int DTTSM::number ( ) const
inline

Return identifier.

Definition at line 50 of file DTTSM.h.

References _n.

50 { return _n; }
int _n
Definition: DTTSM.h:105
void DTTSM::run ( int  bkmod)

Run the TSM algorithm.

Definition at line 70 of file DTTSM.cc.

void DTTSM::setConfig ( const DTConfigTSPhi config)
inline

Set configuration.

Definition at line 53 of file DTTSM.h.

References _config, and config().

53 { _config=config; }
const DTConfigTSPhi * _config
Definition: DTTSM.h:100
const DTConfigTSPhi * config() const
Configuration set.
Definition: DTTSM.h:75
DTTSCand * DTTSM::sortTSM1 ( int  bkmod)

Sort 1.

Definition at line 122 of file DTTSM.cc.

DTTSCand * DTTSM::sortTSM2 ( int  bkmod)

Sort 2.

curr->isInner() && // outer track

Definition at line 195 of file DTTSM.cc.

Member Data Documentation

const DTConfigTSPhi* DTTSM::_config
private

Definition at line 100 of file DTTSM.h.

Referenced by config(), and setConfig().

int DTTSM::_ignoreSecondTrack
private

Definition at line 114 of file DTTSM.h.

Referenced by ignoreSecondTrack().

std::vector<DTTSCand*> DTTSM::_incand[2]
private

Definition at line 108 of file DTTSM.h.

Referenced by nFirstT(), and nSecondT().

int DTTSM::_n
private

Definition at line 105 of file DTTSM.h.

Referenced by number().

std::vector<DTTSCand*> DTTSM::_outcand
private

Definition at line 111 of file DTTSM.h.

Referenced by nTracks().