#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, 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 (const DTBtiChip &bti) | |
Copy constructor. More... | |
DTTrigGeom * | geom () const |
Return trigger geometry. More... | |
std::vector< const DTDigi * > | get_CellDigis (int cell) |
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= (const DTBtiChip &bti) |
Assignment operator. More... | |
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 * | 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< DTBtiTrig * > | 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 | |
int | _busyStart_clock [9] |
DTBtiCard * | _card |
DTConfigBti * | _config |
int | _curStep |
float | _difs [25] |
std::vector< const DTDigi * > | _digis [9] |
std::vector< int > | _digis_clock [9] |
DTTrigGeom * | _geom |
std::vector< DTBtiHit * > | _hits [9] |
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 |
float | _sums [25] |
DTBtiHit * | _thisStepUsedHit [9] |
int | _thisStepUsedTimes [9] |
std::vector< DTBtiTrig * > | _trigs [DTConfig::NSTEPL-DTConfig::NSTEPF+1] |
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 46 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, DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), DTConfigBti::CH(), DTConfigBti::CL(), CMSPosition(), DTTrigGeom::CMSPosition(), config(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, runTauDisplay::gp, mps_fire::i, init_done, DTConfigBti::KAccTheta(), gen::n, DTConfig::NSTEPF, DTConfig::NSTEPL, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), reSumSet(), setSnap(), DTConfigBti::ST(), DTTrigGeom::statId(), DTBtiId::superlayer(), funct::tan(), theta(), DTBtiCard::useAcceptParamFlag(), and PV3DBase< T, PVType, FrameType >::z().
DTBtiChip::DTBtiChip | ( | const DTBtiChip & | bti | ) |
Copy constructor.
Definition at line 212 of file DTBtiChip.cc.
References _difs, _digis, _hits, _JTR, _Keq, _KTR, _MaxKAcc, _MinKAcc, _sums, _thisStepUsedHit, _thisStepUsedTimes, _trigs, _Xeq, mps_fire::i, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, p1, reSumSet(), and setSnap().
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 327 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 362 of file DTBtiChip.cc.
References _busyStart_clock, _digis_clock, config(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, and number().
void DTBtiChip::addTrig | ( | int | step, |
DTBtiTrig * | btitrig | ||
) |
Add a DTBtiChip trigger (normally used by DTBtiChip itself - may be used for debugging by other classes)
Definition at line 441 of file DTBtiChip.cc.
References _trigs, config(), gather_cfg::cout, debug, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by get_CellDigis(), store(), and DTBtiCard::storeTrigger().
void DTBtiChip::clear | ( | void | ) |
delete hits and triggers
Definition at line 522 of file DTBtiChip.cc.
References _digis, _digis_clock, _hits, _trigs, begin, EnergyCorrector::c, config(), gather_cfg::cout, debug, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and p1.
Referenced by get_CellDigis(), and ~DTBtiChip().
|
inline |
Position in CMS frame.
Definition at line 96 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 117 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 145 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 144 of file DTBtiChip.h.
References _curStep, and objects.autophobj::float.
Referenced by run(), and store().
|
private |
Definition at line 741 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 507 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 124 of file DTBtiChip.h.
References _id.
Referenced by DTBtiTrig::DTBtiTrig().
|
private |
Definition at line 549 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 589 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 93 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 390 of file DTBtiChip.cc.
References _digis, _id, begin, DTBtiId::bti(), config(), gather_cfg::cout, debug, relativeConstraints::empty, mps_fire::i, gen::n, and AlCaHLTBitMon_ParallelJobs::p.
Referenced by CMSPosition(), and run().
int DTBtiChip::nTrig | ( | int | step | ) | const |
Number of triggers found.
Definition at line 455 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 87 of file DTBtiChip.h.
References _id, and DTBtiId::bti().
Referenced by add_digi_clock(), and DTBtiCard::runBTI().
Assignment operator.
Definition at line 275 of file DTBtiChip.cc.
References _curStep, _difs, _digis, _geom, _hits, _id, _JTR, _Keq, _KTR, _MaxKAcc, _MinKAcc, _nStepUsedHits, _sums, _thisStepUsedHit, _thisStepUsedTimes, _trigs, _Xeq, mps_fire::i, DTConfig::NSTEPF, DTConfig::NSTEPL, AlCaHLTBitMon_ParallelJobs::p, and p1.
|
inlineprivate |
Definition at line 161 of file DTBtiChip.h.
|
inlineprivate |
Definition at line 162 of file DTBtiChip.h.
|
private |
Definition at line 103 of file DTBtiChipEquations.cc.
Referenced by currentIntStep(), and DTBtiChip().
void DTBtiChip::run | ( | ) |
Definition at line 630 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 133 of file DTBtiChip.h.
References _geom, init(), init_clock(), DTTrigGeom::sector(), and tick().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 852 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 130 of file DTBtiChip.h.
References _geom, and DTTrigGeom::station().
Referenced by geometryXMLparser.DTAlignable::index(), and geometryXMLparser.CSCAlignable::index().
|
private |
Definition at line 785 of file DTBtiChip.cc.
References _MaxKAcc, _MinKAcc, _thisStepUsedHit, DTBtiTrig::addDigi(), addTrig(), EnergyCorrector::c, config(), gather_cfg::cout, currentStep(), debug, DTBtiHit::hitDigi(), DTBtiTrig::print(), and generateDummyData::trg().
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 90 of file DTBtiChip.h.
References _id, and DTBtiId::superlayer().
Referenced by add_digi(), geometryXMLparser.DTAlignable::index(), and run().
|
private |
Definition at line 675 of file DTBtiChip.cc.
References _curStep, _hits, _nStepUsedHits, _thisStepUsedHit, begin, config(), gather_cfg::cout, currentIntStep(), DTBtiHit::curTime(), debug, DTConfigBti::debug(), DTBtiHit::jtrig(), and AlCaHLTBitMon_ParallelJobs::p.
Referenced by run(), and sector().
DTBtiTrig * DTBtiChip::trigger | ( | int | step, |
unsigned | n | ||
) | const |
Return the requested trigger.
Definition at line 475 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 491 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< DTBtiTrig * > DTBtiChip::trigList | ( | int | step | ) | const |
Definition at line 465 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, and DTConfig::NSTEPL.
Referenced by CMSPosition().
|
inline |
Return wheel number.
Definition at line 127 of file DTBtiChip.h.
References _geom, and DTTrigGeom::wheel().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 206 of file DTBtiChip.h.
Referenced by add_digi(), add_digi_clock(), and DTBtiChip().
|
private |
Definition at line 167 of file DTBtiChip.h.
Referenced by DTBtiChip().
|
private |
Definition at line 170 of file DTBtiChip.h.
Referenced by config().
|
private |
Definition at line 183 of file DTBtiChip.h.
Referenced by currentIntStep(), currentStep(), init(), init_clock(), operator=(), and tick().
|
private |
Definition at line 188 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), and operator=().
|
private |
Definition at line 175 of file DTBtiChip.h.
Referenced by add_digi(), clear(), DTBtiChip(), get_CellDigis(), init(), nCellHit(), and operator=().
|
private |
Definition at line 177 of file DTBtiChip.h.
Referenced by add_digi_clock(), clear(), and init_clock().
|
private |
Definition at line 169 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), geom(), localPosition(), operator=(), run(), sector(), station(), and wheel().
|
private |
Definition at line 184 of file DTBtiChip.h.
Referenced by clear(), ntuplePrintersDiff.TrackPrinter::diff(), DTBtiChip(), ntupleDataFormat._RecoHitAdaptor::gluedHits(), ntupleDataFormat._RecoHitAdaptor::hits(), init(), init_clock(), ntupleDataFormat._RecoHitAdaptor::invalidHits(), operator=(), ntupleDataFormat._RecoHitAdaptor::phase2OTHits(), ntupleDataFormat._RecoHitAdaptor::pixelHits(), ntuplePrintersDiff.SeedPrinter::printHits(), ntuplePrintersDiff.TrackPrinter::printHits(), ntuplePrintersDiff.TrackingParticlePrinter::printHits(), ntupleDataFormat._RecoHitAdaptor::stripHits(), and tick().
|
private |
Definition at line 172 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), id(), localPosition(), nCellHit(), number(), operator=(), run(), and superlayer().
|
private |
Definition at line 204 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 189 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 203 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 192 of file DTBtiChip.h.
Referenced by DTBtiChip(), operator=(), and store().
|
private |
Definition at line 196 of file DTBtiChip.h.
|
private |
Definition at line 194 of file DTBtiChip.h.
|
private |
Definition at line 198 of file DTBtiChip.h.
|
private |
Definition at line 191 of file DTBtiChip.h.
Referenced by DTBtiChip(), operator=(), and store().
|
private |
Definition at line 195 of file DTBtiChip.h.
|
private |
Definition at line 193 of file DTBtiChip.h.
|
private |
Definition at line 197 of file DTBtiChip.h.
|
private |
Definition at line 187 of file DTBtiChip.h.
Referenced by operator=(), run(), and tick().
|
private |
Definition at line 188 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), and operator=().
|
private |
Definition at line 186 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), operator=(), store(), and tick().
|
private |
Definition at line 185 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 180 of file DTBtiChip.h.
Referenced by addTrig(), clear(), DTBtiChip(), eraseTrigger(), nTrig(), operator=(), trigger(), triggerData(), and trigList().
|
private |
Definition at line 190 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 201 of file DTBtiChip.h.
|
private |
Definition at line 200 of file DTBtiChip.h.
|
private |
Definition at line 200 of file DTBtiChip.h.
|
private |
Definition at line 201 of file DTBtiChip.h.
|
private |
Definition at line 205 of file DTBtiChip.h.
Referenced by DTBtiChip(), init_clock(), and run().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by reSum().
|
private |
Definition at line 212 of file DTBtiChip.h.
Referenced by reSum23().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 209 of file DTBtiChip.h.
Referenced by setSnap().