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
DTTSS Class Reference

#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...
 
const DTConfigTSPhiconfig () const
 Configuration set. More...
 
 DTTSS (int)
 Constructor. More...
 
DTTSCandgetCarry () const
 Return the carry (for debugging) 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...
 
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 (const DTConfigTSPhi *config)
 Set configuration. More...
 
DTTSCandsortTSS1 ()
 Sort 1. More...
 
DTTSCandsortTSS2 ()
 Sort 2. More...
 
 ~DTTSS ()
 Destructor. More...
 

Private Attributes

const DTConfigTSPhi_config
 
int _ignoreSecondTrack
 
std::string _logWord1
 
std::string _logWord2
 
int _n
 
std::vector< DTTSCand * > _outcand
 
std::vector< DTTSCand * > _tctrig [2]
 

Detailed Description

Implementation of TSS trigger algorithm

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

Definition at line 36 of file DTTSS.h.

Constructor & Destructor Documentation

DTTSS::DTTSS ( int  n)

Constructor.

Definition at line 36 of file DTTSS.cc.

DTTSS::~DTTSS ( )

Destructor.

Definition at line 51 of file DTTSS.cc.

Member Function Documentation

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.

void DTTSS::clear ( void  )

Clear.

Definition at line 61 of file DTTSS.cc.

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

Configuration set.

Definition at line 71 of file DTTSS.h.

References _config.

Referenced by DTTSCand::config(), and setConfig().

71 { return _config; }
const DTConfigTSPhi * _config
Definition: DTTSS.h:102
DTTSCand * DTTSS::getCarry ( ) const

Return the carry (for debugging)

Definition at line 349 of file DTTSS.cc.

DTTSCand * DTTSS::getDTTSCand ( int  ifs,
unsigned  n 
) const

Return requested TS candidate.

Definition at line 307 of file DTTSS.cc.

DTTSCand * DTTSS::getTrack ( int  n) const

Return the requested track.

Definition at line 338 of file DTTSS.cc.

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

Return requested TRACO trigger.

Definition at line 323 of file DTTSS.cc.

void DTTSS::ignoreSecondTrack ( )
inline

Set a flag to skip sort2.

Definition at line 53 of file DTTSS.h.

References _ignoreSecondTrack.

53 { _ignoreSecondTrack=1; }
int _ignoreSecondTrack
Definition: DTTSS.h:114
std::string DTTSS::logWord ( int  n) const

Return the requested log word.

Definition at line 357 of file DTTSS.cc.

int DTTSS::nFirstT ( ) const
inline

Return the number of input first tracks.

Definition at line 77 of file DTTSS.h.

References _tctrig.

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

Return the number of input second tracks.

Definition at line 80 of file DTTSS.h.

References _tctrig.

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

Return the number of sorted tracks.

Definition at line 92 of file DTTSS.h.

References _outcand.

92 { return _outcand.size(); }
std::vector< DTTSCand * > _outcand
Definition: DTTSS.h:111
unsigned DTTSS::nTracoT ( int  ifs) const

Return the number of input tracks (first/second)

Definition at line 297 of file DTTSS.cc.

int DTTSS::number ( ) const
inline

Return identifier.

Definition at line 68 of file DTTSS.h.

References _n.

Referenced by DTTSCand::tssNumber().

68 { return _n; }
int _n
Definition: DTTSS.h:105
void DTTSS::run ( void  )

Run the TSS algorithm.

Definition at line 76 of file DTTSS.cc.

void DTTSS::setConfig ( const DTConfigTSPhi config)
inline

Set configuration.

Definition at line 50 of file DTTSS.h.

References _config, and config().

50 { _config=config; }
const DTConfigTSPhi * _config
Definition: DTTSS.h:102
const DTConfigTSPhi * config() const
Configuration set.
Definition: DTTSS.h:71
DTTSCand * DTTSS::sortTSS1 ( )

Sort 1.

Definition at line 124 of file DTTSS.cc.

DTTSCand * DTTSS::sortTSS2 ( )

Sort 2.

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

Definition at line 202 of file DTTSS.cc.

Member Data Documentation

const DTConfigTSPhi* DTTSS::_config
private

Definition at line 102 of file DTTSS.h.

Referenced by config(), and setConfig().

int DTTSS::_ignoreSecondTrack
private

Definition at line 114 of file DTTSS.h.

Referenced by ignoreSecondTrack().

std::string DTTSS::_logWord1
private

Definition at line 117 of file DTTSS.h.

std::string DTTSS::_logWord2
private

Definition at line 118 of file DTTSS.h.

int DTTSS::_n
private

Definition at line 105 of file DTTSS.h.

Referenced by number().

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

Definition at line 111 of file DTTSS.h.

Referenced by nTracks().

std::vector<DTTSCand*> DTTSS::_tctrig[2]
private

Definition at line 108 of file DTTSS.h.

Referenced by nFirstT(), and nSecondT().