#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... | |
DTConfigTraco * | config () 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... | |
DTTrigGeom * | geom () 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... | |
DTTracoChip & | operator= (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... | |
DTTracoTrig * | trigger (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... | |
DTTracoCand * | bestCand (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... | |
DTTracoTrig * | setPV (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] |
Implementation of TRACO trigger algorithm. Internally uses DTTracoCand to store BTI triggers
Definition at line 55 of file DTTracoChip.h.
DTTracoChip::DTTracoChip | ( | DTTracoCard * | card, |
int | n, | ||
DTConfigTraco * | config | ||
) |
Constructor.
Constructor for passing configuration
Definition at line 47 of file DTTracoChip.cc.
References _btic, _bxlts, _card, _flag, _geom, _ibtioff, _id, _innerCand, _krad, _luts, _lutsCCB, _outerCand, _tracotrig, DTConfigTraco::BTIC(), DTTrigGeom::cellPitch(), CMSPosition(), config(), DTTracoCard::config_luts(), gather_cfg::cout, debug, DTSuperLayerId, DTGeomSupplier::geom(), i, DTConfigTraco::KRAD(), KRad(), DTTrigGeom::localPosition(), DTTracoCard::lutFromDBFlag(), n, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, DTTrigGeom::phiSLOffset(), psiRad(), DTChamberId::sector(), setTracoAcceptances(), evf::utils::sid, DTTrigGeom::statId(), DTChamberId::station(), DTChamberId::wheel(), x, and BitArray< N >::zero().
DTTracoChip::DTTracoChip | ( | const DTTracoChip & | traco | ) |
Copy constructor.
Definition at line 153 of file DTTracoChip.cc.
References _bxlts, _flag, _innerCand, _outerCand, _tracotrig, i, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and p1.
DTTracoChip::~DTTracoChip | ( | ) |
Destructor.
Definition at line 183 of file DTTracoChip.cc.
References _card, _lutsCCB, clear(), and DTTracoCard::lutFromDBFlag().
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.
References _bxlts, _card, _id, _innerCand, _outerCand, _PSIMAX, _PSIMIN, DTBtiTrigData::code(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), BitArray< N >::element(), DTBtiTrigData::K(), DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, number(), pos, DTBtiTrigData::print(), BitArray< N >::set(), launcher::step, DTTracoId::traco(), and DTTracoCard::useAcceptParamFlag().
Referenced by DTTracoCard::loadTRACO().
void DTTracoChip::addTrig | ( | int | step, |
DTTracoTrig * | tctrig | ||
) |
Add a TRACO trigger.
Definition at line 1059 of file DTTracoChip.cc.
References _tracotrig, config(), gather_cfg::cout, debug, DTConfig::NSTEPF, DTConfig::NSTEPL, DTTracoTrig::print(), and launcher::step.
Referenced by run(), and DTTracoCard::storeTrigger().
|
private |
Do suppression of LTRIG on adjacent TRACO.
Definition at line 554 of file DTTracoChip.cc.
References _flag, DTTracoCand::BtiTrig(), DTBtiTrigData::code(), BitArray< N >::element(), DTConfig::NBTITC, DTConfig::NSTEPF, DTTracoCand::position(), and DTTracoCand::step().
Referenced by bestCand().
|
private |
Get the best inner/outer candidate.
Definition at line 471 of file DTTracoChip.cc.
References AdjBtiLTSuppressed(), config(), gather_cfg::cout, DTConfigTraco::debug(), i, AlCaHLTBitMon_ParallelJobs::p, DTConfigTraco::prefHtrig(), and DTConfigTraco::sortKascend().
Referenced by run().
|
inline |
BTIC parameter.
Definition at line 127 of file DTTracoChip.h.
References _btic.
Referenced by DTTracoCand::DTTracoCand(), storeCorr(), and storeUncorr().
void DTTracoChip::calculateAngles | ( | DTTracoTrig * | tct | ) |
Calculate trigger angles.
Definition at line 1210 of file DTTracoChip.cc.
References _card, _geom, _lutsCCB, DTTracoTrig::ChamberId(), DTGeomSupplier::CMSPosition(), config(), gather_cfg::cout, DTTracoTrig::data(), debug, Lut::get_k(), Lut::get_x(), DTTracoTrig::K(), DTTracoCard::localDirection(), DTTracoCard::lutFromDBFlag(), M_PI, PV3DBase< T, PVType, FrameType >::phi(), DTTrigGeom::phiCh(), DTTracoTrig::print(), DTTracoTrigData::qdec(), DTConfigTraco::RESOLPSI, DTConfigTraco::RESOLPSIR, DTChamberId::sector(), DTTracoTrig::setAngles(), DTChamberId::wheel(), PV3DBase< T, PVType, FrameType >::x(), DTTracoTrig::X(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by storeCorr(), and storeUncorr().
void DTTracoChip::clear | ( | void | ) |
Clear.
Definition at line 237 of file DTTracoChip.cc.
References _bxlts, _flag, _innerCand, _outerCand, _tracotrig, begin, DTConfig::NSTEPF, DTConfig::NSTEPL, p1, and BitArray< N >::zero().
Referenced by ~DTTracoChip().
|
inline |
Position in CMS frame.
Definition at line 154 of file DTTracoChip.h.
References _geom, _id, and DTTrigGeom::CMSPosition().
Referenced by DTTracoChip().
|
inline |
Configuration set.
New Configuration set
Definition at line 117 of file DTTracoChip.h.
References _config.
Referenced by add_btiT(), addTrig(), bestCand(), calculateAngles(), DoAdjBtiLts(), DTTracoChip(), insideAngWindow(), run(), setFlag(), setPV(), setTracoAcceptances(), storeCorr(), and storeUncorr().
|
inline |
|
private |
Do suppression of LTRIG on BTI close to selected HTRIG.
Definition at line 532 of file DTTracoChip.cc.
References abs, DTBtiTrigData::btiNumber(), DTTracoCand::BtiTrig(), DTBtiTrigData::code(), config(), gather_cfg::cout, debug, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by run().
int DTTracoChip::edgeBTI | ( | int | step, |
int | io, | ||
int | lr | ||
) | const |
flags for HTRIG in edge BTI
Definition at line 1169 of file DTTracoChip.cc.
References _innerCand, _outerCand, begin, gather_cfg::cout, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, findQualityFiles::size, and launcher::step.
Referenced by setFlag().
|
inline |
Return trigger geometry.
Definition at line 99 of file DTTracoChip.h.
References _geom.
Referenced by run().
|
inline |
IBTIOFF parameter.
Definition at line 130 of file DTTracoChip.h.
References _ibtioff.
Referenced by DTTracoCand::DTTracoCand().
|
inline |
Return TRACO id.
Definition at line 102 of file DTTracoChip.h.
References _id.
Referenced by DTTracoTrig::DTTracoTrig().
|
private |
Check if a trigger is inside the angular acceptance window.
Definition at line 1335 of file DTTracoChip.cc.
References BitArray< N >::assign(), DTConfigTraco::BendingAngleCut(), config(), gather_cfg::cout, debug, DTTracoTrig::DeltaPsiR(), BitArray< N >::element(), BitArray< N >::read(), and BitArray< N >::twoComplement().
Referenced by storeCorr(), and storeUncorr().
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(), DTTracoChip(), and DTTracoCand::print().
|
inline |
Position in chamber frame.
Definition at line 151 of file DTTracoChip.h.
References _geom, _id, and DTTrigGeom::localPosition().
int DTTracoChip::nTrig | ( | int | step | ) | const |
Return the number of trigger candidates.
Definition at line 1078 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and launcher::step.
Referenced by run(), and DTTracoCard::runTRACO().
|
inline |
Return TRACO number.
Definition at line 93 of file DTTracoChip.h.
References _id, and DTTracoId::traco().
Referenced by add_btiT().
DTTracoChip & DTTracoChip::operator= | ( | const DTTracoChip & | traco | ) |
Assignment operator.
Definition at line 205 of file DTTracoChip.cc.
References _bxlts, _card, _flag, _geom, _id, _innerCand, _outerCand, _tracotrig, i, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and p1.
|
inline |
return overlap flag
Definition at line 160 of file DTTracoChip.h.
References _flag, BitArray< N >::element(), and DTConfig::NSTEPF.
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.
Referenced by DTTracoChip().
void DTTracoChip::raiseOverlap | ( | int | step | ) |
raise overlap flag
Definition at line 419 of file DTTracoChip.cc.
References _flag, DTConfig::NSTEPF, and BitArray< N >::set().
Referenced by run().
void DTTracoChip::run | ( | void | ) |
Run TRACO algorithm.
Definition at line 255 of file DTTracoChip.cc.
References _flag, _id, _innerCand, _outerCand, _tracotrig, addTrig(), bestCand(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), DoAdjBtiLts(), alignCSCRings::e, BitArray< N >::element(), geom(), SurfaceOrientation::inner, isFirst(), DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, nTrig(), SurfaceOrientation::outer, DTTracoCand::print(), DTTracoTrig::print(), raiseOverlap(), BitArray< N >::set(), setFlag(), setPV(), DTTracoCand::setUsed(), findQualityFiles::size, storeCorr(), storeUncorr(), DTTracoId::traco(), and trigger().
Referenced by DTTracoCard::runTRACO().
|
inline |
Return sector number.
Definition at line 111 of file DTTracoChip.h.
References _geom, and DTTrigGeom::sector().
Referenced by geometryXMLparser.DTAlignable::index().
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.
References _card, _flag, _id, config(), gather_cfg::cout, debug, edgeBTI(), BitArray< N >::element(), DTTracoCard::getTRACO(), i, DTConfig::NSTEPF, runtimedef::set(), BitArray< N >::set(), and DTTracoId::traco().
Referenced by run().
void DTTracoChip::setPV | ( | int | step, |
int | ntrk, | ||
int | code, | ||
int | K | ||
) |
Set the preview values for a TRACO trigger.
Referenced by run().
|
private |
Set the preview for a trigger.
Definition at line 573 of file DTTracoChip.cc.
References DTBtiTrigData::btiSL(), DTTracoCand::BtiTrig(), DTBtiTrigData::code(), config(), gather_cfg::cout, debug, first, SurfaceOrientation::inner, DTTracoCand::K(), SurfaceOrientation::outer, DTTracoCand::position(), DTConfigTraco::prefInner(), DTTracoCand::print(), DTTracoTrig::setPV(), and DTTracoCand::step().
|
private |
Compute traco chip acceptances.
Definition at line 1361 of file DTTracoChip.cc.
References _geom, _PSIMAX, _PSIMIN, DTConfigTraco::BTIC(), DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), config(), gather_cfg::cout, debug, DTTrigGeom::distSL(), h, i, DTConfig::NBTITC, and DTTrigGeom::phiSLOffset().
Referenced by DTTracoChip().
|
inline |
Return station number.
Definition at line 108 of file DTTracoChip.h.
References _geom, and DTTrigGeom::station().
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
private |
Check correlation and store correlated trigger.
Definition at line 648 of file DTTracoChip.cc.
References _bxlts, _geom, abs, DTTracoTrig::addDTBtiTrig(), BTIC(), DTBtiTrigData::btiNumber(), DTTracoCand::BtiTrig(), calculateAngles(), DTTrigGeom::cellH(), DTBtiTrigData::code(), DTTracoTrig::code(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), DTTrigGeom::distSL(), BitArray< N >::element(), DTBtiTrigData::eq(), insideAngWindow(), DTBtiTrigData::K(), DTTracoTrig::K(), DTTracoCand::print(), DTTracoTrig::qdec(), DTTracoTrig::resetVar(), DTTracoTrig::setCodeIn(), DTTracoTrig::setCodeOut(), DTTracoTrig::setEqIn(), DTTracoTrig::setEqOut(), DTTracoTrig::setK(), DTTracoTrig::setPosIn(), DTTracoTrig::setPosOut(), DTTracoTrig::setPVCorr(), DTTracoTrig::setX(), edm::shift, DTTracoTrig::step(), DTConfigTraco::TcBxLts(), DTConfigTraco::TcKToll(), DTTracoCand::X(), and DTTracoTrig::X().
Referenced by run().
|
private |
Store uncorrelated trigger.
Definition at line 796 of file DTTracoChip.cc.
References _bxlts, _card, _flag, _geom, DTTracoTrig::addDTBtiTrig(), BTIC(), DTBtiTrigData::btiNumber(), DTBtiTrigData::btiSL(), DTTracoCand::BtiTrig(), calculateAngles(), DTTrigGeom::cellH(), DTBtiTrigData::code(), DTTracoTrig::code(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), DTTrigGeom::distSL(), BitArray< N >::element(), DTBtiTrigData::eq(), SurfaceOrientation::inner, insideAngWindow(), DTBtiTrigData::K(), DTTracoTrig::K(), DTConfigTraco::LVALIDIFH(), DTTSTheta::nHTrig(), DTConfig::NSTEPF, DTTSTheta::nTrig(), SurfaceOrientation::outer, DTConfigTraco::prefInner(), DTTracoCand::print(), DTTracoTrig::resetVar(), DTTracoTrig::setCodeIn(), DTTracoTrig::setCodeOut(), DTTracoTrig::setEqIn(), DTTracoTrig::setEqOut(), DTTracoTrig::setK(), DTTracoTrig::setPosIn(), DTTracoTrig::setPosOut(), DTTracoTrig::setPVCorr(), DTTracoCand::setUnused(), DTTracoTrig::setX(), edm::shift, DTConfigTraco::singleLenab(), DTConfigTraco::singleLflag(), DTTracoTrig::step(), DTConfigTraco::TcReuse(), DTTracoCard::TSTh(), DTTracoCand::X(), and DTTracoTrig::X().
Referenced by run().
DTTracoTrig * DTTracoChip::trigger | ( | int | step, |
unsigned | n | ||
) | const |
Return the requested trigger.
Definition at line 1088 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, findQualityFiles::size, and launcher::step.
Referenced by run().
DTTracoTrigData DTTracoChip::triggerData | ( | int | step, |
unsigned | n | ||
) | const |
Return the data part of the requested trigger.
Definition at line 1105 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, findQualityFiles::size, and launcher::step.
Referenced by DTTracoCard::runTRACO().
int DTTracoChip::useSecondTrack | ( | int | step | ) | const |
a flag for a usable second track
Definition at line 1157 of file DTTracoChip.cc.
References _flag, gather_cfg::cout, BitArray< N >::element(), DTConfig::NSTEPF, DTConfig::NSTEPL, and launcher::step.
Referenced by DTTracoCard::runTRACO().
|
inline |
Return wheel number.
Definition at line 105 of file DTTracoChip.h.
References _geom, and DTTrigGeom::wheel().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 199 of file DTTracoChip.h.
Referenced by BTIC(), and DTTracoChip().
|
private |
Definition at line 211 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), operator=(), storeCorr(), and storeUncorr().
|
private |
Definition at line 194 of file DTTracoChip.h.
Referenced by add_btiT(), calculateAngles(), DTTracoChip(), operator=(), setFlag(), storeUncorr(), and ~DTTracoChip().
|
private |
Definition at line 196 of file DTTracoChip.h.
Referenced by config().
|
private |
Definition at line 201 of file DTTracoChip.h.
Referenced by DD().
|
private |
Definition at line 217 of file DTTracoChip.h.
Referenced by AdjBtiLTSuppressed(), clear(), DTTracoChip(), operator=(), ovlFlag(), raiseOverlap(), run(), setFlag(), storeUncorr(), and useSecondTrack().
|
private |
Definition at line 191 of file DTTracoChip.h.
Referenced by calculateAngles(), CMSPosition(), DTTracoChip(), geom(), localPosition(), operator=(), sector(), setTracoAcceptances(), station(), storeCorr(), storeUncorr(), and wheel().
|
private |
Definition at line 200 of file DTTracoChip.h.
Referenced by DTTracoChip(), and IBTIOFF().
|
private |
Definition at line 192 of file DTTracoChip.h.
Referenced by add_btiT(), CMSPosition(), DTTracoChip(), id(), localPosition(), number(), operator=(), run(), and setFlag().
|
private |
Definition at line 204 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), edgeBTI(), operator=(), and run().
|
private |
Definition at line 198 of file DTTracoChip.h.
Referenced by DTTracoChip().
|
private |
Definition at line 224 of file DTTracoChip.h.
Referenced by DTTracoChip().
|
private |
Definition at line 226 of file DTTracoChip.h.
Referenced by calculateAngles(), DTTracoChip(), and ~DTTracoChip().
|
private |
Definition at line 205 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), edgeBTI(), operator=(), and run().
|
private |
Definition at line 221 of file DTTracoChip.h.
Referenced by add_btiT(), and setTracoAcceptances().
|
private |
Definition at line 220 of file DTTracoChip.h.
Referenced by add_btiT(), and setTracoAcceptances().
|
private |
Definition at line 208 of file DTTracoChip.h.
Referenced by addTrig(), clear(), DTTracoChip(), nTrig(), operator=(), run(), trigger(), and triggerData().