16 #ifndef DT_TRACO_CHIP_H
17 #define DT_TRACO_CHIP_H
81 void setPV(
int step,
int ntrk,
int code,
int K);
120 float psiRad(
int sl=0)
const;
136 int nTrig(
int step)
const;
148 int edgeBTI(
int step,
int io,
int lr)
const;
157 void setFlag(
int step,
int ext=0);
int sector() const
Return sector number.
int _PSIMAX[4 *DTConfig::NBTITC]
GlobalPoint CMSPosition() const
Position in CMS frame.
int sector() const
Return sector number.
std::vector< DTTracoTrig * > _tracotrig[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
DTConfigTraco * config() const
Configuration set.
void run()
Run TRACO algorithm.
DTTrigGeom * geom() const
Return trigger geometry.
int DD() const
DD parameter.
int insideAngWindow(DTTracoTrig *) const
Check if a trigger is inside the angular acceptance window.
int AdjBtiLTSuppressed(DTTracoCand *candidate)
Do suppression of LTRIG on adjacent TRACO.
int wheel() const
Return wheel number.
void calculateAngles(DTTracoTrig *)
Calculate trigger angles.
void setFlag(int step, int ext=0)
Set flags for multiple trigger detection between cons. TRACO's.
void addTrig(int step, DTTracoTrig *)
Add a TRACO trigger.
void setTracoAcceptances()
Compute traco chip acceptances.
int BTIC() const
BTIC parameter.
int KRad() const
K par of the radial angle of corr center referred to plane sl.
void add_btiT(int step, int pos, const DTBtiTrigData *btitrig)
Add a BTI trigger to the TRACO.
~DTTracoChip()
Destructor.
int traco() const
Returns the traco.
DTTracoCand * bestCand(int itk, std::vector< DTTracoCand > &tclist)
Get the best inner/outer candidate.
int ovlFlag(int step)
return overlap flag
void raiseOverlap(int step)
raise overlap flag
int number() const
Return TRACO number.
std::vector< DTTracoCand > _outerCand[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
int storeUncorr(DTTracoTrig *tctrig, DTTracoCand *inner, DTTracoCand *outer, int tkn)
Store uncorrelated trigger.
std::vector< DTTracoCand > _innerCand[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
static const int NSTEPL
Constants: first and last step to start trigger finding.
int wheel() const
Return wheel number.
DTTracoTrig * trigger(int step, unsigned n) const
Return the requested trigger.
DTTracoChip(DTTracoCard *card, int n, DTConfigTraco *config)
Constructor.
int station() const
Return station number.
int edgeBTI(int step, int io, int lr) const
flags for HTRIG in edge BTI
BitArray< 32 > _flag[DTConfigTraco::NSTEPL-DTConfigTraco::NSTEPF+1]
DTTracoChip & operator=(const DTTracoChip &traco)
Assignment operator.
int element(const int pos) const
BitArray< DTConfigTraco::NSTEPL+2 > _bxlts
void DoAdjBtiLts(DTTracoCand *candidate, std::vector< DTTracoCand > &tclist)
Do suppression of LTRIG on BTI close to selected HTRIG.
int IBTIOFF() const
IBTIOFF parameter.
int storeCorr(DTTracoTrig *tctrig, DTTracoCand *inner, DTTracoCand *outer, int tkn)
Check correlation and store correlated trigger.
DTTracoTrigData triggerData(int step, unsigned n) const
Return the data part of the requested trigger.
LocalPoint localPosition(const DTBtiId) const
Local position in chamber of a BTI.
int _PSIMIN[4 *DTConfig::NBTITC]
int useSecondTrack(int step) const
a flag for a usable second track
float psiRad(int sl=0) const
Radial angle of correlator center in mrad referred to plane sl.
int station() const
Return station number.
GlobalPoint CMSPosition(const DTBtiId obj) const
CMS position of a BTI.
LocalPoint localPosition() const
Position in chamber frame.
void setPV(int step, int ntrk, int code, int K)
Set the preview values for a TRACO trigger.
DTTracoId id() const
Return TRACO id.
int nTrig(int step) const
Return the number of trigger candidates.