#include <DTBtiChip.h>
Public Member Functions | |
void | add_digi (int cell, const DTDigi *digi) |
Add a digi to the DTBtiChip. More... | |
void | add_digi_clock (int cell, int clock_digi) |
Add a clock digi to the DTBtiChip. More... | |
void | addTrig (int step, std::unique_ptr< DTBtiTrig > btitrig) |
void | clear () |
delete hits and triggers More... | |
GlobalPoint | CMSPosition () const |
Position in CMS frame. More... | |
DTConfigBti * | config () const |
Configuration set. More... | |
DTBtiChip (DTBtiCard *card, DTTrigGeom *geom, int supl, int n, DTConfigBti *_config) | |
original constructor More... | |
DTBtiChip (DTBtiChip &&bti)=delete | |
Copy constructor. More... | |
DTBtiChip (DTBtiChip const &bti)=delete | |
DTTrigGeom * | geom () const |
Return trigger geometry. More... | |
std::vector< const DTDigi * > const & | get_CellDigis (int cell) const |
get digi vector - SV 28/XI/02 More... | |
DTBtiId | id () const |
Return the DTBtiChip Id. More... | |
void | init_clock () |
LocalPoint | localPosition () const |
Position in chamber frame (x is the one of first traco in slave plane) More... | |
int | nCellHit () const |
Number of cells with hits. More... | |
int | nTrig (int step) const |
Number of triggers found. More... | |
int | number () const |
Return DTBtiChip number. More... | |
DTBtiChip & | operator= (DTBtiChip &&bti)=delete |
Assignment operator. More... | |
DTBtiChip & | operator= (DTBtiChip const &bti)=delete |
void | run () |
Run DTBtiChip algorithm. More... | |
int | sector () const |
Return sector number. More... | |
int | station () const |
Return station number. More... | |
int | superlayer () const |
Return superlayer. More... | |
DTBtiTrig const * | trigger (int step, unsigned n) const |
Return the requested trigger. More... | |
DTBtiTrigData | triggerData (int step, unsigned n) const |
Return the data part of the requested trigger. More... | |
std::vector< std::unique_ptr < DTBtiTrig > > const & | trigList (int step) const |
int | wheel () const |
Return wheel number. More... | |
~DTBtiChip () | |
Destructor. More... | |
Private Member Functions | |
void | acceptMask (BitArray< 80 > *BitArrPtr, int k, int accep) |
void | computeEqs () |
void | computeSums () |
int | currentIntStep () const |
int | currentStep () const |
void | doLTS () |
void | eraseTrigger (int step, unsigned n) |
void | findTrig () |
void | init () |
int | keepTrig (const int eq, const int acp, const int code) |
int | keepTrigPatt (int flag, const int eq, const int pattType, int hlflag) |
bool | matchEq (float eqA, float eqB, int AC) |
int | reSum (int a, int b) |
int | reSum23 (int a, int b) |
void | reSumSet () |
void | setSnap () |
int | store (const int eq, const int code, const int K, const int X, float KeqAB=0., float KeqBC=0., float KeqCD=0., float KeqAC=0., float KeqBD=0., float KeqAD=0.) |
void | sum (const int s, const int a, const int b) |
void | tick () |
Private Attributes | |
std::array< int, 9 > | _busyStart_clock |
DTBtiCard * | _card |
DTConfigBti * | _config |
int | _curStep |
std::array< float, 25 > | _difs |
std::array< std::vector< const DTDigi * >, 9 > | _digis |
std::array< std::vector< int >, 9 > | _digis_clock |
DTTrigGeom * | _geom |
std::array< std::vector < DTBtiHit * >, 9 > | _hits |
DTBtiId | _id |
float | _JTR [32][3] |
float | _Keq [32][6] |
float | _KTR [32][2] |
int | _MaxKAcc |
int | _MaxKcenterTraco |
int | _MaxKleftTraco |
int | _MaxKrightTraco |
int | _MinKAcc |
int | _MinKcenterTraco |
int | _MinKleftTraco |
int | _MinKrightTraco |
int | _nStepUsedHits |
std::array< float, 25 > | _sums |
std::array< DTBtiHit *, 9 > | _thisStepUsedHit |
std::array< int, 9 > | _thisStepUsedTimes |
std::array< std::vector < std::unique_ptr< DTBtiTrig > >, DTConfig::NSTEPL-DTConfig::NSTEPF+1 > | _trigs |
float | _Xeq [32][2] |
float | _XeqAB_patt0 |
float | _XeqAC_patt0 |
float | _XeqBD_patt0 |
float | _XeqCD_patt0 |
int | init_done |
int | RE23 |
int | RE43 |
int | reSumAr [3][5] |
int | reSumAr23 [3][5] |
int | ST |
int | ST2 |
int | ST23 |
int | ST3 |
int | ST4 |
int | ST43 |
int | ST5 |
int | ST7 |
Implementation of DTBtiChip trigger algorithm Internally uses DTBtiHit to store muon digis
Definition at line 48 of file DTBtiChip.h.
DTBtiChip::DTBtiChip | ( | DTBtiCard * | card, |
DTTrigGeom * | geom, | ||
int | supl, | ||
int | n, | ||
DTConfigBti * | _config | ||
) |
original constructor
new constructor with configuration
Definition at line 48 of file DTBtiChip.cc.
References _busyStart_clock, _card, _digis, _geom, _hits, _id, _MaxKAcc, _MinKAcc, _trigs, c, DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), DTConfigBti::CH(), DTConfigBti::CL(), CMSPosition(), DTTrigGeom::CMSPosition(), config(), gather_cfg::cout, ztail::d, DTConfigBti::DEADpar(), debug, runTauDisplay::gp, h, init_done, DTConfigBti::KAccTheta(), dqmiodumpmetadata::n, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), reSumSet(), setSnap(), DTConfigBti::ST(), DTTrigGeom::statId(), DTBtiId::superlayer(), submitPVValidationJobs::t, funct::tan(), theta(), DTBtiCard::useAcceptParamFlag(), and PV3DBase< T, PVType, FrameType >::z().
|
delete |
Copy constructor.
|
delete |
DTBtiChip::~DTBtiChip | ( | ) |
|
private |
Definition at line 715 of file DTBtiChipSelTrig.cc.
References submitPVResolutionJobs::config, gather_cfg::cout, debug, and BitArray< N >::set().
void DTBtiChip::add_digi | ( | int | cell, |
const DTDigi * | digi | ||
) |
Add a digi to the DTBtiChip.
Definition at line 212 of file DTBtiChip.cc.
References _busyStart_clock, _digis, _geom, _id, DTBtiHit::_stepTimeTdc, DTBtiId::bti(), config(), DTDigi::countsTDC(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, DTTrigGeom::nCell(), DTDigi::print(), and superlayer().
Referenced by DTBtiCard::loadBTI().
void DTBtiChip::add_digi_clock | ( | int | cell, |
int | clock_digi | ||
) |
Add a clock digi to the DTBtiChip.
Definition at line 242 of file DTBtiChip.cc.
References _busyStart_clock, _digis_clock, config(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, and number().
void DTBtiChip::addTrig | ( | int | step, |
std::unique_ptr< DTBtiTrig > | btitrig | ||
) |
Add a DTBtiChip trigger (normally used by DTBtiChip itself - may be used for debugging by other classes)
Definition at line 314 of file DTBtiChip.cc.
References _trigs, config(), gather_cfg::cout, debug, eostools::move(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by store(), and DTBtiCard::storeTrigger().
void DTBtiChip::clear | ( | void | ) |
delete hits and triggers
Definition at line 388 of file DTBtiChip.cc.
References _digis, _digis_clock, _hits, _trigs, c, config(), gather_cfg::cout, ztail::d, debug, h, and submitPVValidationJobs::t.
Referenced by ~DTBtiChip().
|
inline |
Position in CMS frame.
Definition at line 98 of file DTBtiChip.h.
References _geom, _id, and DTTrigGeom::CMSPosition().
Referenced by DTBtiChip().
|
private |
Definition at line 134 of file DTBtiChipEquations.cc.
References SplitLinear::begin, submitPVResolutionJobs::config, gather_cfg::cout, relativeConstraints::empty, mps_fire::i, and dqmiolumiharvest::j.
Referenced by run().
|
private |
Definition at line 38 of file DTBtiChipEquations.cc.
References submitPVResolutionJobs::config, gather_cfg::cout, and debug.
Referenced by run().
|
inline |
Configuration set.
testing DTConfigBti
Definition at line 119 of file DTBtiChip.h.
References _config.
Referenced by add_digi(), add_digi_clock(), addTrig(), clear(), doLTS(), DTBtiChip(), init(), init_clock(), nCellHit(), run(), setSnap(), store(), tick(), and zMuMuValidation.ZMuMuValidation::trackcollection().
|
inlineprivate |
|
inlineprivate |
|
private |
Definition at line 588 of file DTBtiChip.cc.
References DTBtiTrig::code(), config(), gather_cfg::cout, debug, DTConfigBti::debug(), eraseTrigger(), DTConfigBti::LTS(), DTConfig::NSTEPF, DTConfig::NSTEPL, nTrig(), DTConfigBti::SET(), and trigger().
Referenced by run().
|
private |
Definition at line 375 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by doLTS().
|
private |
Definition at line 39 of file DTBtiChipSelTrig.cc.
References submitPVResolutionJobs::config, gather_cfg::cout, debug, and mps_fire::i.
Referenced by run().
|
inline |
|
inline |
|
inline |
Return the DTBtiChip Id.
Definition at line 125 of file DTBtiChip.h.
References _id.
Referenced by DTBtiTrig::DTBtiTrig().
|
private |
Definition at line 407 of file DTBtiChip.cc.
References _curStep, _difs, _digis, _hits, _sums, _thisStepUsedHit, SplitLinear::begin, config(), gather_cfg::cout, debug, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, fireworks::p1, and DTConfigBti::WENflag().
Referenced by run().
void DTBtiChip::init_clock | ( | ) |
Definition at line 444 of file DTBtiChip.cc.
References _curStep, _difs, _digis_clock, _hits, _sums, _thisStepUsedHit, SplitLinear::begin, config(), gather_cfg::cout, debug, mps_fire::i, init_done, fireworks::p1, and DTConfigBti::WENflag().
|
private |
Definition at line 753 of file DTBtiChipSelTrig.cc.
References funct::abs(), submitPVResolutionJobs::config, gather_cfg::cout, debug, BitArray< N >::element(), mps_fire::i, BitArray< N >::print(), BitArray< N >::set(), and hgcalPerformanceValidation::val.
|
private |
Definition at line 355 of file DTBtiChipSelTrig.cc.
References funct::abs(), submitPVResolutionJobs::config, gather_cfg::cout, debug, BitArray< N >::element(), mps_fire::i, BitArray< N >::print(), BitArray< N >::reset(), BitArray< N >::set(), hgcalPerformanceValidation::val, and X.
|
inline |
Position in chamber frame (x is the one of first traco in slave plane)
Definition at line 95 of file DTBtiChip.h.
References _geom, _id, and DTTrigGeom::localPosition().
|
private |
int DTBtiChip::nCellHit | ( | ) | const |
Number of cells with hits.
Definition at line 266 of file DTBtiChip.cc.
References _digis, _id, DTBtiId::bti(), config(), gather_cfg::cout, ztail::d, DTConfigBti::debug(), mps_fire::i, and dqmiodumpmetadata::n.
Referenced by run().
int DTBtiChip::nTrig | ( | int | step | ) | const |
Number of triggers found.
Definition at line 327 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by doLTS(), and DTBtiCard::runBTI().
|
inline |
Return DTBtiChip number.
Definition at line 89 of file DTBtiChip.h.
References _id, and DTBtiId::bti().
Referenced by add_digi_clock(), and DTBtiCard::runBTI().
|
inlineprivate |
Definition at line 166 of file DTBtiChip.h.
|
inlineprivate |
Definition at line 167 of file DTBtiChip.h.
|
private |
void DTBtiChip::run | ( | ) |
Definition at line 482 of file DTBtiChip.cc.
References _geom, _id, _nStepUsedHits, DTBtiId::bti(), computeEqs(), computeSums(), config(), gather_cfg::cout, currentIntStep(), currentStep(), debug, DTConfigBti::debug(), doLTS(), findTrig(), init(), init_done, DTTrigGeom::nCell(), nCellHit(), DTConfig::NSTEPF, DTConfig::NSTEPL, DTBtiId::superlayer(), superlayer(), and tick().
Referenced by DTBtiCard::runBTI().
|
inline |
Return sector number.
Definition at line 134 of file DTBtiChip.h.
References _geom, and DTTrigGeom::sector().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 699 of file DTBtiChip.cc.
References config(), gather_cfg::cout, debug, RE23, DTConfigBti::RE43(), RE43, ST, ST2, ST23, ST3, ST4, DTConfigBti::ST43(), ST43, ST5, and ST7.
Referenced by DTBtiChip().
|
inline |
Return station number.
Definition at line 131 of file DTBtiChip.h.
References _geom, and DTTrigGeom::station().
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
private |
Definition at line 630 of file DTBtiChip.cc.
References _MaxKAcc, _MinKAcc, _thisStepUsedHit, addTrig(), config(), gather_cfg::cout, currentStep(), debug, h, eostools::move(), and X.
|
private |
Definition at line 80 of file DTBtiChipEquations.cc.
|
inline |
Return superlayer.
Definition at line 92 of file DTBtiChip.h.
References _id, and DTBtiId::superlayer().
Referenced by add_digi(), geometryXMLparser.DTAlignable::index(), and run().
|
private |
Definition at line 527 of file DTBtiChip.cc.
References _curStep, _hits, _nStepUsedHits, _thisStepUsedHit, config(), gather_cfg::cout, currentIntStep(), debug, DTConfigBti::debug(), and h.
Referenced by run().
DTBtiTrig const * DTBtiChip::trigger | ( | int | step, |
unsigned | n | ||
) | const |
Return the requested trigger.
Definition at line 345 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by doLTS().
DTBtiTrigData DTBtiChip::triggerData | ( | int | step, |
unsigned | n | ||
) | const |
Return the data part of the requested trigger.
Definition at line 360 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, dqmiodumpmetadata::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by DTBtiCard::runBTI().
vector< std::unique_ptr< DTBtiTrig > > const & DTBtiChip::trigList | ( | int | step | ) | const |
Definition at line 336 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
|
inline |
Return wheel number.
Definition at line 128 of file DTBtiChip.h.
References _geom, and DTTrigGeom::wheel().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 210 of file DTBtiChip.h.
Referenced by add_digi(), add_digi_clock(), and DTBtiChip().
|
private |
Definition at line 171 of file DTBtiChip.h.
Referenced by DTBtiChip().
|
private |
Definition at line 174 of file DTBtiChip.h.
Referenced by config().
|
private |
Definition at line 187 of file DTBtiChip.h.
Referenced by currentIntStep(), currentStep(), init(), init_clock(), and tick().
|
private |
Definition at line 192 of file DTBtiChip.h.
Referenced by init(), and init_clock().
|
private |
Definition at line 179 of file DTBtiChip.h.
Referenced by add_digi(), clear(), DTBtiChip(), get_CellDigis(), init(), and nCellHit().
|
private |
Definition at line 181 of file DTBtiChip.h.
Referenced by add_digi_clock(), clear(), and init_clock().
|
private |
Definition at line 173 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), geom(), localPosition(), run(), sector(), station(), and wheel().
|
private |
Definition at line 188 of file DTBtiChip.h.
Referenced by clear(), ntuplePrintersDiff.TrackPrinter::diff(), DTBtiChip(), ntupleDataFormat._RecoHitAdaptor::gluedHits(), ntupleDataFormat._RecoHitAdaptor::hits(), init(), init_clock(), ntupleDataFormat._RecoHitAdaptor::invalidHits(), ntupleDataFormat._RecoHitAdaptor::phase2OTHits(), ntupleDataFormat._RecoHitAdaptor::pixelHits(), ntuplePrintersDiff.SeedPrinter::printHits(), ntuplePrintersDiff.TrackPrinter::printHits(), ntuplePrintersDiff.TrackingParticlePrinter::printHits(), ntupleDataFormat._RecoHitAdaptor::stripHits(), and tick().
|
private |
Definition at line 176 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), id(), localPosition(), nCellHit(), number(), run(), and superlayer().
|
private |
Definition at line 208 of file DTBtiChip.h.
|
private |
Definition at line 193 of file DTBtiChip.h.
|
private |
Definition at line 207 of file DTBtiChip.h.
|
private |
Definition at line 196 of file DTBtiChip.h.
Referenced by DTBtiChip(), and store().
|
private |
Definition at line 200 of file DTBtiChip.h.
|
private |
Definition at line 198 of file DTBtiChip.h.
|
private |
Definition at line 202 of file DTBtiChip.h.
|
private |
Definition at line 195 of file DTBtiChip.h.
Referenced by DTBtiChip(), and store().
|
private |
Definition at line 199 of file DTBtiChip.h.
|
private |
Definition at line 197 of file DTBtiChip.h.
|
private |
Definition at line 201 of file DTBtiChip.h.
|
private |
Definition at line 191 of file DTBtiChip.h.
|
private |
Definition at line 192 of file DTBtiChip.h.
Referenced by init(), and init_clock().
|
private |
Definition at line 190 of file DTBtiChip.h.
Referenced by init(), init_clock(), store(), and tick().
|
private |
Definition at line 189 of file DTBtiChip.h.
|
private |
Definition at line 184 of file DTBtiChip.h.
Referenced by addTrig(), clear(), DTBtiChip(), eraseTrigger(), nTrig(), trigger(), triggerData(), and trigList().
|
private |
Definition at line 194 of file DTBtiChip.h.
|
private |
Definition at line 205 of file DTBtiChip.h.
|
private |
Definition at line 204 of file DTBtiChip.h.
|
private |
Definition at line 204 of file DTBtiChip.h.
|
private |
Definition at line 205 of file DTBtiChip.h.
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by DTBtiChip(), init_clock(), and run().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 215 of file DTBtiChip.h.
Referenced by reSum().
|
private |
Definition at line 216 of file DTBtiChip.h.
Referenced by reSum23().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by setSnap().