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 Member Functions | Private Attributes
DTTracoChip Class Reference

#include <DTTracoChip.h>

Public Member Functions

void add_btiT (int step, int pos, const DTBtiTrigData *btitrig)
 Add a BTI trigger to the TRACO. More...
 
void addTrig (int step, DTTracoTrig *)
 Add a TRACO trigger. More...
 
int BTIC () const
 BTIC parameter. More...
 
void calculateAngles (DTTracoTrig *)
 Calculate trigger angles. More...
 
void clear ()
 Clear. More...
 
GlobalPoint CMSPosition () const
 Position in CMS frame. More...
 
DTConfigTracoconfig () const
 Configuration set. More...
 
int DD () const
 DD parameter. More...
 
 DTTracoChip (DTTracoCard *card, int n, DTConfigTraco *config)
 Constructor. More...
 
 DTTracoChip (const DTTracoChip &traco)
 Copy constructor. More...
 
int edgeBTI (int step, int io, int lr) const
 flags for HTRIG in edge BTI More...
 
DTTrigGeomgeom () const
 Return trigger geometry. More...
 
int IBTIOFF () const
 IBTIOFF parameter. More...
 
DTTracoId id () const
 Return TRACO id. More...
 
int KRad () const
 K par of the radial angle of corr center referred to plane sl. More...
 
LocalPoint localPosition () const
 Position in chamber frame. More...
 
int nTrig (int step) const
 Return the number of trigger candidates. More...
 
int number () const
 Return TRACO number. More...
 
DTTracoChipoperator= (const DTTracoChip &traco)
 Assignment operator. More...
 
int ovlFlag (int step)
 return overlap flag More...
 
float psiRad (int sl=0) const
 Radial angle of correlator center in mrad referred to plane sl. More...
 
void raiseOverlap (int step)
 raise overlap flag More...
 
void run ()
 Run TRACO algorithm. More...
 
int sector () const
 Return sector number. More...
 
void setFlag (int step, int ext=0)
 Set flags for multiple trigger detection between cons. TRACO's. More...
 
void setPV (int step, int ntrk, int code, int K)
 Set the preview values for a TRACO trigger. More...
 
int station () const
 Return station number. More...
 
DTTracoTrigtrigger (int step, unsigned n) const
 Return the requested trigger. More...
 
DTTracoTrigData triggerData (int step, unsigned n) const
 Return the data part of the requested trigger. More...
 
int useSecondTrack (int step) const
 a flag for a usable second track More...
 
int wheel () const
 Return wheel number. More...
 
 ~DTTracoChip ()
 Destructor. More...
 

Private Member Functions

int AdjBtiLTSuppressed (DTTracoCand *candidate)
 Do suppression of LTRIG on adjacent TRACO. More...
 
DTTracoCandbestCand (int itk, std::vector< DTTracoCand > &tclist)
 Get the best inner/outer candidate. More...
 
void DoAdjBtiLts (DTTracoCand *candidate, std::vector< DTTracoCand > &tclist)
 Do suppression of LTRIG on BTI close to selected HTRIG. More...
 
int insideAngWindow (DTTracoTrig *) const
 Check if a trigger is inside the angular acceptance window. More...
 
DTTracoTrigsetPV (int itk, DTTracoCand *inner, DTTracoCand *outer)
 Set the preview for a trigger. More...
 
void setTracoAcceptances ()
 Compute traco chip acceptances. More...
 
int storeCorr (DTTracoTrig *tctrig, DTTracoCand *inner, DTTracoCand *outer, int tkn)
 Check correlation and store correlated trigger. More...
 
int storeUncorr (DTTracoTrig *tctrig, DTTracoCand *inner, DTTracoCand *outer, int tkn)
 Store uncorrelated trigger. More...
 

Private Attributes

int _btic
 
BitArray< DTConfigTraco::NSTEPL+2 > _bxlts
 
DTTracoCard_card
 
DTConfigTraco_config
 
int _dd
 
BitArray< 32 > _flag [DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
 
DTTrigGeom_geom
 
int _ibtioff
 
DTTracoId _id
 
std::vector< DTTracoCand_innerCand [DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
 
int _krad
 
DTTracoLUTs_luts
 
Lut_lutsCCB
 
std::vector< DTTracoCand_outerCand [DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
 
int _PSIMAX [4 *DTConfig::NBTITC]
 
int _PSIMIN [4 *DTConfig::NBTITC]
 
std::vector< DTTracoTrig * > _tracotrig [DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
 

Detailed Description

Implementation of TRACO trigger algorithm. Internally uses DTTracoCand to store BTI triggers

Author
S. Vanini

Definition at line 53 of file DTTracoChip.h.

Constructor & Destructor Documentation

DTTracoChip::DTTracoChip ( DTTracoCard card,
int  n,
DTConfigTraco config 
)

Constructor.

Constructor for passing configuration

Definition at line 47 of file DTTracoChip.cc.

DTTracoChip::DTTracoChip ( const DTTracoChip traco)

Copy constructor.

Definition at line 153 of file DTTracoChip.cc.

DTTracoChip::~DTTracoChip ( )

Destructor.

Definition at line 183 of file DTTracoChip.cc.

Member Function Documentation

void DTTracoChip::add_btiT ( int  step,
int  pos,
const DTBtiTrigData btitrig 
)

Add a BTI trigger to the TRACO.

Definition at line 990 of file DTTracoChip.cc.

void DTTracoChip::addTrig ( int  step,
DTTracoTrig tctrig 
)

Add a TRACO trigger.

Definition at line 1059 of file DTTracoChip.cc.

int DTTracoChip::AdjBtiLTSuppressed ( DTTracoCand candidate)
private

Do suppression of LTRIG on adjacent TRACO.

Definition at line 554 of file DTTracoChip.cc.

DTTracoCand * DTTracoChip::bestCand ( int  itk,
std::vector< DTTracoCand > &  tclist 
)
private

Get the best inner/outer candidate.

Definition at line 471 of file DTTracoChip.cc.

int DTTracoChip::BTIC ( ) const
inline

BTIC parameter.

Definition at line 125 of file DTTracoChip.h.

Referenced by DTTracoCand::DTTracoCand().

void DTTracoChip::calculateAngles ( DTTracoTrig tct)

Calculate trigger angles.

Definition at line 1210 of file DTTracoChip.cc.

void DTTracoChip::clear ( void  )

Clear.

Definition at line 237 of file DTTracoChip.cc.

GlobalPoint DTTracoChip::CMSPosition ( ) const
inline

Position in CMS frame.

Definition at line 152 of file DTTracoChip.h.

DTConfigTraco* DTTracoChip::config ( void  ) const
inline

Configuration set.

New Configuration set

Definition at line 115 of file DTTracoChip.h.

int DTTracoChip::DD ( ) const
inline

DD parameter.

Definition at line 131 of file DTTracoChip.h.

void DTTracoChip::DoAdjBtiLts ( DTTracoCand candidate,
std::vector< DTTracoCand > &  tclist 
)
private

Do suppression of LTRIG on BTI close to selected HTRIG.

Definition at line 532 of file DTTracoChip.cc.

int DTTracoChip::edgeBTI ( int  step,
int  io,
int  lr 
) const

flags for HTRIG in edge BTI

Definition at line 1169 of file DTTracoChip.cc.

DTTrigGeom* DTTracoChip::geom ( ) const
inline

Return trigger geometry.

Definition at line 97 of file DTTracoChip.h.

int DTTracoChip::IBTIOFF ( ) const
inline

IBTIOFF parameter.

Definition at line 128 of file DTTracoChip.h.

Referenced by DTTracoCand::DTTracoCand().

DTTracoId DTTracoChip::id ( void  ) const
inline

Return TRACO id.

Definition at line 100 of file DTTracoChip.h.

Referenced by DTTracoTrig::DTTracoTrig().

int DTTracoChip::insideAngWindow ( DTTracoTrig tctrig) const
private

Check if a trigger is inside the angular acceptance window.

Definition at line 1335 of file DTTracoChip.cc.

int DTTracoChip::KRad ( ) const

K par of the radial angle of corr center referred to plane sl.

Definition at line 1144 of file DTTracoChip.cc.

Referenced by DTTracoCand::DTTracoCand(), and DTTracoCand::print().

LocalPoint DTTracoChip::localPosition ( ) const
inline

Position in chamber frame.

Definition at line 149 of file DTTracoChip.h.

int DTTracoChip::nTrig ( int  step) const

Return the number of trigger candidates.

Definition at line 1078 of file DTTracoChip.cc.

int DTTracoChip::number ( ) const
inline

Return TRACO number.

Definition at line 91 of file DTTracoChip.h.

DTTracoChip & DTTracoChip::operator= ( const DTTracoChip traco)

Assignment operator.

Definition at line 205 of file DTTracoChip.cc.

int DTTracoChip::ovlFlag ( int  step)
inline

return overlap flag

Definition at line 158 of file DTTracoChip.h.

float DTTracoChip::psiRad ( int  sl = 0) const

Radial angle of correlator center in mrad referred to plane sl.

Definition at line 1122 of file DTTracoChip.cc.

void DTTracoChip::raiseOverlap ( int  step)

raise overlap flag

Definition at line 419 of file DTTracoChip.cc.

void DTTracoChip::run ( void  )

Run TRACO algorithm.

Definition at line 255 of file DTTracoChip.cc.

int DTTracoChip::sector ( void  ) const
inline

Return sector number.

Definition at line 109 of file DTTracoChip.h.

void DTTracoChip::setFlag ( int  step,
int  ext = 0 
)

Set flags for multiple trigger detection between cons. TRACO's.

Definition at line 426 of file DTTracoChip.cc.

void DTTracoChip::setPV ( int  step,
int  ntrk,
int  code,
int  K 
)

Set the preview values for a TRACO trigger.

DTTracoTrig * DTTracoChip::setPV ( int  itk,
DTTracoCand inner,
DTTracoCand outer 
)
private

Set the preview for a trigger.

Definition at line 573 of file DTTracoChip.cc.

void DTTracoChip::setTracoAcceptances ( )
private

Compute traco chip acceptances.

Definition at line 1361 of file DTTracoChip.cc.

int DTTracoChip::station ( ) const
inline

Return station number.

Definition at line 106 of file DTTracoChip.h.

int DTTracoChip::storeCorr ( DTTracoTrig tctrig,
DTTracoCand inner,
DTTracoCand outer,
int  tkn 
)
private

Check correlation and store correlated trigger.

Definition at line 648 of file DTTracoChip.cc.

int DTTracoChip::storeUncorr ( DTTracoTrig tctrig,
DTTracoCand inner,
DTTracoCand outer,
int  tkn 
)
private

Store uncorrelated trigger.

Definition at line 796 of file DTTracoChip.cc.

DTTracoTrig * DTTracoChip::trigger ( int  step,
unsigned  n 
) const

Return the requested trigger.

Definition at line 1088 of file DTTracoChip.cc.

DTTracoTrigData DTTracoChip::triggerData ( int  step,
unsigned  n 
) const

Return the data part of the requested trigger.

Definition at line 1105 of file DTTracoChip.cc.

int DTTracoChip::useSecondTrack ( int  step) const

a flag for a usable second track

Definition at line 1157 of file DTTracoChip.cc.

int DTTracoChip::wheel ( ) const
inline

Return wheel number.

Definition at line 103 of file DTTracoChip.h.

Member Data Documentation

int DTTracoChip::_btic
private

Definition at line 197 of file DTTracoChip.h.

BitArray<DTConfigTraco::NSTEPL+2> DTTracoChip::_bxlts
private

Definition at line 209 of file DTTracoChip.h.

DTTracoCard* DTTracoChip::_card
private

Definition at line 192 of file DTTracoChip.h.

DTConfigTraco* DTTracoChip::_config
private

Definition at line 194 of file DTTracoChip.h.

int DTTracoChip::_dd
private

Definition at line 199 of file DTTracoChip.h.

BitArray<32> DTTracoChip::_flag[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
private

Definition at line 215 of file DTTracoChip.h.

DTTrigGeom* DTTracoChip::_geom
private

Definition at line 189 of file DTTracoChip.h.

int DTTracoChip::_ibtioff
private

Definition at line 198 of file DTTracoChip.h.

DTTracoId DTTracoChip::_id
private

Definition at line 190 of file DTTracoChip.h.

std::vector<DTTracoCand> DTTracoChip::_innerCand[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
private

Definition at line 202 of file DTTracoChip.h.

int DTTracoChip::_krad
private

Definition at line 196 of file DTTracoChip.h.

DTTracoLUTs* DTTracoChip::_luts
private

Definition at line 222 of file DTTracoChip.h.

Lut* DTTracoChip::_lutsCCB
private

Definition at line 224 of file DTTracoChip.h.

std::vector<DTTracoCand> DTTracoChip::_outerCand[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
private

Definition at line 203 of file DTTracoChip.h.

int DTTracoChip::_PSIMAX[4 *DTConfig::NBTITC]
private

Definition at line 219 of file DTTracoChip.h.

int DTTracoChip::_PSIMIN[4 *DTConfig::NBTITC]
private

Definition at line 218 of file DTTracoChip.h.

std::vector<DTTracoTrig*> DTTracoChip::_tracotrig[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
private

Definition at line 206 of file DTTracoChip.h.