#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, EnergyCorrector::c, DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), DTConfigBti::CH(), DTConfigBti::CL(), CMSPosition(), DTTrigGeom::CMSPosition(), config(), gather_cfg::cout, edmIntegrityCheck::d, DTConfigBti::DEADpar(), debug, runTauDisplay::gp, h, init_done, DTConfigBti::KAccTheta(), gen::n, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), reSumSet(), setSnap(), DTConfigBti::ST(), DTTrigGeom::statId(), DTBtiId::superlayer(), protons_cff::t, funct::tan(), theta(), DTBtiCard::useAcceptParamFlag(), and PV3DBase< T, PVType, FrameType >::z().
|
delete |
Copy constructor.
|
delete |
DTBtiChip::~DTBtiChip | ( | ) |
|
private |
Definition at line 678 of file DTBtiChipSelTrig.cc.
References looper::config, gather_cfg::cout, debug, and BitArray< N >::set().
Referenced by currentIntStep().
void DTBtiChip::add_digi | ( | int | cell, |
const DTDigi * | digi | ||
) |
Add a digi to the DTBtiChip.
Definition at line 220 of file DTBtiChip.cc.
References _busyStart_clock, _digis, _geom, _id, DTBtiHit::_stepTimeTdc, DTBtiId::bti(), config(), DTDigi::countsTDC(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, createfilelist::int, 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 255 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 333 of file DTBtiChip.cc.
References _trigs, config(), gather_cfg::cout, debug, eostools::move(), DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by get_CellDigis(), store(), and DTBtiCard::storeTrigger().
void DTBtiChip::clear | ( | void | ) |
delete hits and triggers
Definition at line 413 of file DTBtiChip.cc.
References _digis, _digis_clock, _hits, _trigs, EnergyCorrector::c, config(), gather_cfg::cout, edmIntegrityCheck::d, debug, h, and protons_cff::t.
Referenced by get_CellDigis(), and ~DTBtiChip().
|
inline |
Position in CMS frame.
Definition at line 100 of file DTBtiChip.h.
References _geom, _id, DTTrigGeom::CMSPosition(), nCellHit(), nTrig(), trigger(), triggerData(), and trigList().
Referenced by DTBtiChip().
|
private |
Definition at line 145 of file DTBtiChipEquations.cc.
References begin, looper::config, gather_cfg::cout, relativeConstraints::empty, objects.autophobj::float, mps_fire::i, and createfilelist::int.
Referenced by currentIntStep(), and run().
|
private |
Definition at line 39 of file DTBtiChipEquations.cc.
References looper::config, gather_cfg::cout, and debug.
Referenced by currentIntStep(), and run().
|
inline |
Configuration set.
testing DTConfigBti
Definition at line 121 of file DTBtiChip.h.
References _config.
Referenced by add_digi(), add_digi_clock(), addTrig(), clear(), doLTS(), DTBtiChip(), init(), init_clock(), nCellHit(), run(), setSnap(), store(), and tick().
|
inlineprivate |
Definition at line 149 of file DTBtiChip.h.
References _curStep, a, acceptMask(), b, computeEqs(), computeSums(), doLTS(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), eraseTrigger(), findTrig(), RemoveAddSevLevel::flag, gen::k, keepTrig(), keepTrigPatt(), matchEq(), reSumSet(), alignCSCRings::s, setSnap(), store(), sum(), and X.
Referenced by run(), and tick().
|
inlineprivate |
Definition at line 148 of file DTBtiChip.h.
References _curStep, and objects.autophobj::float.
Referenced by run(), and store().
|
private |
Definition at line 625 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 currentIntStep(), and run().
|
private |
Definition at line 399 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by currentIntStep(), and doLTS().
|
private |
Definition at line 40 of file DTBtiChipSelTrig.cc.
References looper::config, gather_cfg::cout, debug, and mps_fire::i.
Referenced by currentIntStep(), and run().
|
inline |
|
inline |
|
inline |
Return the DTBtiChip Id.
Definition at line 128 of file DTBtiChip.h.
References _id.
Referenced by DTBtiTrig::DTBtiTrig().
|
private |
Definition at line 434 of file DTBtiChip.cc.
References _curStep, _difs, _digis, _hits, _sums, _thisStepUsedHit, begin, config(), gather_cfg::cout, debug, mps_fire::i, AlCaHLTBitMon_ParallelJobs::p, p1, and DTConfigBti::WENflag().
Referenced by run(), and sector().
void DTBtiChip::init_clock | ( | ) |
Definition at line 474 of file DTBtiChip.cc.
References _curStep, _difs, _digis_clock, _hits, _sums, _thisStepUsedHit, begin, config(), gather_cfg::cout, debug, mps_fire::i, init_done, p1, and DTConfigBti::WENflag().
Referenced by sector().
|
private |
Definition at line 722 of file DTBtiChipSelTrig.cc.
References funct::abs(), looper::config, gather_cfg::cout, debug, BitArray< N >::element(), mps_fire::i, createfilelist::int, BitArray< N >::print(), BitArray< N >::set(), and heppy_batch::val.
Referenced by currentIntStep().
|
private |
Definition at line 327 of file DTBtiChipSelTrig.cc.
References funct::abs(), looper::config, gather_cfg::cout, debug, BitArray< N >::element(), Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), mps_fire::i, createfilelist::int, BitArray< N >::print(), BitArray< N >::reset(), BitArray< N >::set(), heppy_batch::val, and X.
Referenced by currentIntStep().
|
inline |
Position in chamber frame (x is the one of first traco in slave plane)
Definition at line 97 of file DTBtiChip.h.
References _geom, _id, and DTTrigGeom::localPosition().
|
private |
Referenced by currentIntStep().
int DTBtiChip::nCellHit | ( | ) | const |
Number of cells with hits.
Definition at line 283 of file DTBtiChip.cc.
References _digis, _id, DTBtiId::bti(), config(), gather_cfg::cout, edmIntegrityCheck::d, DTConfigBti::debug(), mps_fire::i, and gen::n.
Referenced by CMSPosition(), and run().
int DTBtiChip::nTrig | ( | int | step | ) | const |
Number of triggers found.
Definition at line 347 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by CMSPosition(), doLTS(), and DTBtiCard::runBTI().
|
inline |
Return DTBtiChip number.
Definition at line 91 of file DTBtiChip.h.
References _id, and DTBtiId::bti().
Referenced by add_digi_clock(), and DTBtiCard::runBTI().
|
inlineprivate |
Definition at line 165 of file DTBtiChip.h.
|
inlineprivate |
Definition at line 166 of file DTBtiChip.h.
|
private |
Definition at line 103 of file DTBtiChipEquations.cc.
Referenced by currentIntStep(), and DTBtiChip().
void DTBtiChip::run | ( | ) |
Definition at line 515 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 get_CellDigis(), and DTBtiCard::runBTI().
|
inline |
Return sector number.
Definition at line 137 of file DTBtiChip.h.
References _geom, init(), init_clock(), DTTrigGeom::sector(), and tick().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 736 of file DTBtiChip.cc.
References config(), gather_cfg::cout, debug, createfilelist::int, RE23, DTConfigBti::RE43(), RE43, ST, ST2, ST23, ST3, ST4, DTConfigBti::ST43(), ST43, ST5, and ST7.
Referenced by currentIntStep(), and DTBtiChip().
|
inline |
Return station number.
Definition at line 134 of file DTBtiChip.h.
References _geom, and DTTrigGeom::station().
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
private |
Definition at line 669 of file DTBtiChip.cc.
References _MaxKAcc, _MinKAcc, _thisStepUsedHit, addTrig(), config(), gather_cfg::cout, currentStep(), debug, Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), h, eostools::move(), generateDummyData::trg(), and X.
Referenced by currentIntStep().
|
private |
Definition at line 82 of file DTBtiChipEquations.cc.
References objects.autophobj::float.
Referenced by currentIntStep().
|
inline |
Return superlayer.
Definition at line 94 of file DTBtiChip.h.
References _id, and DTBtiId::superlayer().
Referenced by add_digi(), geometryXMLparser.DTAlignable::index(), and run().
|
private |
Definition at line 560 of file DTBtiChip.cc.
References _curStep, _hits, _nStepUsedHits, _thisStepUsedHit, config(), gather_cfg::cout, currentIntStep(), debug, DTConfigBti::debug(), and h.
Referenced by run(), and sector().
DTBtiTrig const * DTBtiChip::trigger | ( | int | step, |
unsigned | n | ||
) | const |
Return the requested trigger.
Definition at line 367 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by CMSPosition(), and doLTS().
DTBtiTrigData DTBtiChip::triggerData | ( | int | step, |
unsigned | n | ||
) | const |
Return the data part of the requested trigger.
Definition at line 383 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and findQualityFiles::size.
Referenced by CMSPosition(), and DTBtiCard::runBTI().
vector< std::unique_ptr< DTBtiTrig > > const & DTBtiChip::trigList | ( | int | step | ) | const |
Definition at line 357 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by CMSPosition().
|
inline |
Return wheel number.
Definition at line 131 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().