#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 53 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, DTGeomSupplier::geom(), mps_fire::i, DTConfigTraco::KRAD(), KRad(), DTTrigGeom::localPosition(), DTTracoCard::lutFromDBFlag(), dqmiodumpmetadata::n, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, DTTrigGeom::phiSLOffset(), psiRad(), DTChamberId::sector(), setTracoAcceptances(), DTTrigGeom::statId(), DTChamberId::station(), DTChamberId::wheel(), x, and BitArray< N >::zero().
DTTracoChip::DTTracoChip | ( | const DTTracoChip & | traco | ) |
Copy constructor.
Definition at line 147 of file DTTracoChip.cc.
References _bxlts, _flag, _innerCand, _outerCand, _tracotrig, mps_fire::i, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and LaserDQM_cfg::p1.
DTTracoChip::~DTTracoChip | ( | ) |
Destructor.
Definition at line 175 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 962 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(), DTBtiTrigData::print(), BitArray< N >::set(), DTTracoId::traco(), and DTTracoCard::useAcceptParamFlag().
Referenced by DTTracoCard::loadTRACO().
void DTTracoChip::addTrig | ( | int | step, |
DTTracoTrig * | tctrig | ||
) |
Add a TRACO trigger.
Definition at line 1026 of file DTTracoChip.cc.
References _tracotrig, config(), gather_cfg::cout, debug, DTConfig::NSTEPF, DTConfig::NSTEPL, and DTTracoTrig::print().
Referenced by run(), and DTTracoCard::storeTrigger().
|
private |
Do suppression of LTRIG on adjacent TRACO.
Definition at line 528 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 447 of file DTTracoChip.cc.
References AdjBtiLTSuppressed(), config(), gather_cfg::cout, DTConfigTraco::debug(), mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, DTConfigTraco::prefHtrig(), groupFilesInBlocks::reverse, and DTConfigTraco::sortKascend().
Referenced by run().
|
inline |
BTIC parameter.
Definition at line 123 of file DTTracoChip.h.
References _btic.
Referenced by DTTracoCand::DTTracoCand(), storeCorr(), and storeUncorr().
void DTTracoChip::calculateAngles | ( | DTTracoTrig * | tct | ) |
Calculate trigger angles.
Definition at line 1166 of file DTTracoChip.cc.
References _card, _geom, _lutsCCB, DTTracoTrig::ChamberId(), DTGeomSupplier::CMSPosition(), config(), gather_cfg::cout, DTTracoTrig::data(), debug, TauDecayModes::dec, RemoveAddSevLevel::flag, Lut::get_k(), Lut::get_x(), createfilelist::int, DTTracoTrig::K(), DTTracoCard::localDirection(), DTTracoCard::lutFromDBFlag(), M_PI, PV3DBase< T, PVType, FrameType >::phi(), DTTrigGeom::phiCh(), DTTracoTrig::print(), DTTracoTrigData::qdec(), l1tGTMenu_lepSeeds_cff::qual, 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 225 of file DTTracoChip.cc.
References _bxlts, _flag, _innerCand, _outerCand, _tracotrig, DTConfig::NSTEPF, DTConfig::NSTEPL, LaserDQM_cfg::p1, and BitArray< N >::zero().
Referenced by ~DTTracoChip().
|
inline |
Position in CMS frame.
Definition at line 150 of file DTTracoChip.h.
References _geom, _id, and DTTrigGeom::CMSPosition().
Referenced by DTTracoChip().
|
inline |
Configuration set.
New Configuration set
Definition at line 113 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 508 of file DTTracoChip.cc.
References funct::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 1125 of file DTTracoChip.cc.
References _innerCand, _outerCand, gather_cfg::cout, relativeConstraints::empty, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by setFlag().
|
inline |
Return trigger geometry.
Definition at line 95 of file DTTracoChip.h.
References _geom.
Referenced by run().
|
inline |
IBTIOFF parameter.
Definition at line 126 of file DTTracoChip.h.
References _ibtioff.
Referenced by DTTracoCand::DTTracoCand().
|
inline |
Return TRACO id.
Definition at line 98 of file DTTracoChip.h.
References _id.
Referenced by DTTracoTrig::DTTracoTrig().
|
private |
Check if a trigger is inside the angular acceptance window.
Definition at line 1284 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 1103 of file DTTracoChip.cc.
Referenced by DTTracoCand::DTTracoCand(), DTTracoChip(), and DTTracoCand::print().
|
inline |
Position in chamber frame.
Definition at line 147 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 1043 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by run(), and DTTracoCard::runTRACO().
|
inline |
Return TRACO number.
Definition at line 89 of file DTTracoChip.h.
References _id, and DTTracoId::traco().
Referenced by add_btiT().
DTTracoChip & DTTracoChip::operator= | ( | const DTTracoChip & | traco | ) |
Assignment operator.
Definition at line 195 of file DTTracoChip.cc.
References _bxlts, _card, _flag, _geom, _id, _innerCand, _outerCand, _tracotrig, mps_fire::i, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and LaserDQM_cfg::p1.
|
inline |
return overlap flag
Definition at line 156 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 1082 of file DTTracoChip.cc.
Referenced by DTTracoChip().
void DTTracoChip::raiseOverlap | ( | int | step | ) |
raise overlap flag
Definition at line 401 of file DTTracoChip.cc.
References _flag, DTConfig::NSTEPF, and BitArray< N >::set().
Referenced by run().
void DTTracoChip::run | ( | ) |
Run TRACO algorithm.
Definition at line 239 of file DTTracoChip.cc.
References _flag, _id, _innerCand, _outerCand, _tracotrig, addTrig(), bestCand(), gpuPixelDoublets::cc, reco::ceil(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), TauDecayModes::dec, DoAdjBtiLts(), MillePedeFileConverter_cfg::e, BitArray< N >::element(), relativeConstraints::empty, geom(), SurfaceOrientation::inner, cuy::isFirst, L1DTConfigTraco_cff::LVALIDIFH, DTConfig::NBTITC, DTConfig::NSTEPF, DTConfig::NSTEPL, nTrig(), SurfaceOrientation::outer, DTTracoTrig::print(), raiseOverlap(), BitArray< N >::set(), setFlag(), setPV(), storeCorr(), storeUncorr(), DTTracoId::traco(), and trigger().
Referenced by DTTracoCard::runTRACO().
|
inline |
Return sector number.
Definition at line 107 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 406 of file DTTracoChip.cc.
References _card, _flag, _id, config(), gather_cfg::cout, debug, edgeBTI(), BitArray< N >::element(), DTTracoCard::getTRACO(), mps_fire::i, DTConfig::NSTEPF, 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 548 of file DTTracoChip.cc.
References DTBtiTrigData::btiSL(), DTTracoCand::BtiTrig(), DTBtiTrigData::code(), config(), gather_cfg::cout, debug, dqmdumpme::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 1307 of file DTTracoChip.cc.
References _geom, _PSIMAX, _PSIMIN, DTConfigTraco::BTIC(), DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), config(), gather_cfg::cout, debug, DTTrigGeom::distSL(), h, mps_fire::i, createfilelist::int, DTConfig::NBTITC, and DTTrigGeom::phiSLOffset().
Referenced by DTTracoChip().
|
inline |
Return station number.
Definition at line 104 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 624 of file DTTracoChip.cc.
References _bxlts, _geom, funct::abs(), DTTracoTrig::addDTBtiTrig(), BTIC(), calculateAngles(), DTTrigGeom::cellH(), DTTracoTrig::code(), config(), gather_cfg::cout, debug, DTConfigTraco::debug(), DTTrigGeom::distSL(), BitArray< N >::element(), SurfaceOrientation::inner, insideAngWindow(), createfilelist::int, DTTracoTrig::K(), SurfaceOrientation::outer, 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(), and DTTracoTrig::X().
Referenced by run().
|
private |
Store uncorrelated trigger.
Definition at line 768 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(), createfilelist::int, DTBtiTrigData::K(), DTTracoTrig::K(), DTConfigTraco::LVALIDIFH(), DTTSTheta::nHTrig(), DTConfig::NSTEPF, DTTSTheta::nTrig(), SurfaceOrientation::outer, DTConfigTraco::prefInner(), DTTracoTrig::resetVar(), DTTracoTrig::setCodeIn(), DTTracoTrig::setCodeOut(), DTTracoTrig::setEqIn(), DTTracoTrig::setEqOut(), DTTracoTrig::setK(), DTTracoTrig::setPosIn(), DTTracoTrig::setPosOut(), DTTracoTrig::setPVCorr(), 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 1052 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by run().
DTTracoTrigData DTTracoChip::triggerData | ( | int | step, |
unsigned | n | ||
) | const |
Return the data part of the requested trigger.
Definition at line 1067 of file DTTracoChip.cc.
References _tracotrig, gather_cfg::cout, dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by DTTracoCard::runTRACO().
int DTTracoChip::useSecondTrack | ( | int | step | ) | const |
a flag for a usable second track
Definition at line 1114 of file DTTracoChip.cc.
References _flag, gather_cfg::cout, BitArray< N >::element(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by DTTracoCard::runTRACO().
|
inline |
Return wheel number.
Definition at line 101 of file DTTracoChip.h.
References _geom, and DTTrigGeom::wheel().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 193 of file DTTracoChip.h.
Referenced by BTIC(), and DTTracoChip().
|
private |
Definition at line 205 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), operator=(), storeCorr(), and storeUncorr().
|
private |
Definition at line 188 of file DTTracoChip.h.
Referenced by add_btiT(), calculateAngles(), DTTracoChip(), operator=(), setFlag(), storeUncorr(), and ~DTTracoChip().
|
private |
Definition at line 190 of file DTTracoChip.h.
Referenced by config().
|
private |
Definition at line 195 of file DTTracoChip.h.
Referenced by DD().
|
private |
Definition at line 211 of file DTTracoChip.h.
Referenced by AdjBtiLTSuppressed(), clear(), DTTracoChip(), operator=(), ovlFlag(), raiseOverlap(), run(), setFlag(), storeUncorr(), and useSecondTrack().
|
private |
Definition at line 185 of file DTTracoChip.h.
Referenced by calculateAngles(), CMSPosition(), DTTracoChip(), geom(), localPosition(), operator=(), sector(), setTracoAcceptances(), station(), storeCorr(), storeUncorr(), and wheel().
|
private |
Definition at line 194 of file DTTracoChip.h.
Referenced by DTTracoChip(), and IBTIOFF().
|
private |
Definition at line 186 of file DTTracoChip.h.
Referenced by add_btiT(), CMSPosition(), DTTracoChip(), id(), localPosition(), number(), operator=(), run(), and setFlag().
|
private |
Definition at line 198 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), edgeBTI(), operator=(), and run().
|
private |
Definition at line 192 of file DTTracoChip.h.
Referenced by DTTracoChip().
|
private |
Definition at line 218 of file DTTracoChip.h.
Referenced by DTTracoChip().
|
private |
Definition at line 220 of file DTTracoChip.h.
Referenced by calculateAngles(), DTTracoChip(), and ~DTTracoChip().
|
private |
Definition at line 199 of file DTTracoChip.h.
Referenced by add_btiT(), clear(), DTTracoChip(), edgeBTI(), operator=(), and run().
|
private |
Definition at line 215 of file DTTracoChip.h.
Referenced by add_btiT(), and setTracoAcceptances().
|
private |
Definition at line 214 of file DTTracoChip.h.
Referenced by add_btiT(), and setTracoAcceptances().
|
private |
Definition at line 202 of file DTTracoChip.h.
Referenced by addTrig(), clear(), DTTracoChip(), nTrig(), operator=(), run(), trigger(), and triggerData().