#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 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, DTTrigGeom::cellH(), DTTrigGeom::cellPitch(), DTConfigBti::CH(), DTConfigBti::CL(), CMSPosition(), DTTrigGeom::CMSPosition(), config(), gather_cfg::cout, DTConfigBti::DEADpar(), debug, i, init_done, DTConfigBti::KAccTheta(), n, DTConfig::NSTEPF, DTConfig::NSTEPL, PV3DBase< T, PVType, FrameType >::perp(), PV3DBase< T, PVType, FrameType >::phi(), reSumSet(), setSnap(), evf::utils::sid, 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, i, j, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, p1, reSumSet(), and setSnap().
DTBtiChip::~DTBtiChip | ( | ) |
|
private |
Definition at line 678 of file DTBtiChipSelTrig.cc.
References HDQMDatabaseProducer::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 327 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 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, DTConfig::NSTEPL, and launcher::step.
Referenced by 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, trackerHits::c, config(), gather_cfg::cout, debug, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, and p1.
Referenced by python.Vispa.Views.BoxDecayView.BoxDecayView::closeEvent(), python.Vispa.Views.LineDecayView.LineDecayView::setDataObjects(), python.Vispa.Views.BoxDecayView.BoxDecayView::updateContent(), and ~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 145 of file DTBtiChipEquations.cc.
References begin, HDQMDatabaseProducer::config, gather_cfg::cout, i, j, and findQualityFiles::size.
Referenced by run().
|
private |
Definition at line 39 of file DTBtiChipEquations.cc.
References HDQMDatabaseProducer::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(), and tick().
|
inlineprivate |
|
inlineprivate |
|
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 run().
|
private |
Definition at line 507 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, n, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, findQualityFiles::size, and launcher::step.
Referenced by doLTS().
|
private |
Definition at line 40 of file DTBtiChipSelTrig.cc.
References HDQMDatabaseProducer::config, gather_cfg::cout, debug, and i.
Referenced by run().
|
inline |
|
inline |
|
inline |
Return the DTBtiChip Id.
Definition at line 126 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, i, L1TEmulatorMonitor_cff::p, p1, and DTConfigBti::WENflag().
Referenced by run().
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, i, init_done, p1, and DTConfigBti::WENflag().
|
private |
Definition at line 722 of file DTBtiChipSelTrig.cc.
References abs, HDQMDatabaseProducer::config, gather_cfg::cout, debug, BitArray< N >::element(), i, BitArray< N >::print(), and BitArray< N >::set().
|
private |
Definition at line 327 of file DTBtiChipSelTrig.cc.
References abs, HDQMDatabaseProducer::config, gather_cfg::cout, debug, BitArray< N >::element(), python.Vispa.Plugins.EdmBrowser.EdmDataAccessor::eq(), i, BitArray< N >::print(), BitArray< N >::reset(), BitArray< N >::set(), 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 390 of file DTBtiChip.cc.
References _digis, _id, begin, DTBtiId::bti(), config(), gather_cfg::cout, debug, i, n, L1TEmulatorMonitor_cff::p, and findQualityFiles::size.
Referenced by 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, DTConfig::NSTEPL, and launcher::step.
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().
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, i, j, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, and p1.
|
inlineprivate |
Definition at line 163 of file DTBtiChip.h.
|
inlineprivate |
Definition at line 164 of file DTBtiChip.h.
|
private |
void DTBtiChip::run | ( | void | ) |
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 DTBtiCard::runBTI().
|
inline |
Return sector number.
Definition at line 135 of file DTBtiChip.h.
References _geom, and DTTrigGeom::sector().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 852 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 132 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(), trackerHits::c, config(), gather_cfg::cout, currentStep(), debug, DTBtiHit::hitDigi(), DTBtiTrig::print(), and generateDummyData::trg().
|
private |
Definition at line 82 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 675 of file DTBtiChip.cc.
References _curStep, _hits, _nStepUsedHits, _thisStepUsedHit, begin, config(), gather_cfg::cout, currentIntStep(), DTBtiHit::curTime(), debug, DTConfigBti::debug(), DTBtiHit::jtrig(), and L1TEmulatorMonitor_cff::p.
Referenced by run().
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, n, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, findQualityFiles::size, and launcher::step.
Referenced by 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, n, DTConfig::NSTEPF, DTConfig::NSTEPL, L1TEmulatorMonitor_cff::p, findQualityFiles::size, and launcher::step.
Referenced by DTBtiCard::runBTI().
vector< DTBtiTrig * > DTBtiChip::trigList | ( | int | step | ) | const |
Definition at line 465 of file DTBtiChip.cc.
References _trigs, gather_cfg::cout, DTConfig::NSTEPF, DTConfig::NSTEPL, and launcher::step.
|
inline |
Return wheel number.
Definition at line 129 of file DTBtiChip.h.
References _geom, and DTTrigGeom::wheel().
Referenced by geometryXMLparser.DTAlignable::index().
|
private |
Definition at line 208 of file DTBtiChip.h.
Referenced by add_digi(), add_digi_clock(), and DTBtiChip().
|
private |
Definition at line 169 of file DTBtiChip.h.
Referenced by DTBtiChip().
|
private |
Definition at line 172 of file DTBtiChip.h.
Referenced by config().
|
private |
Definition at line 185 of file DTBtiChip.h.
Referenced by currentIntStep(), currentStep(), init(), init_clock(), operator=(), and tick().
|
private |
Definition at line 190 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), and operator=().
|
private |
Definition at line 177 of file DTBtiChip.h.
Referenced by add_digi(), clear(), DTBtiChip(), get_CellDigis(), init(), nCellHit(), and operator=().
|
private |
Definition at line 179 of file DTBtiChip.h.
Referenced by add_digi_clock(), clear(), and init_clock().
|
private |
Definition at line 171 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), geom(), localPosition(), operator=(), run(), sector(), station(), and wheel().
|
private |
Definition at line 186 of file DTBtiChip.h.
Referenced by clear(), DTBtiChip(), init(), init_clock(), operator=(), and tick().
|
private |
Definition at line 174 of file DTBtiChip.h.
Referenced by add_digi(), CMSPosition(), DTBtiChip(), id(), localPosition(), nCellHit(), number(), operator=(), run(), and superlayer().
|
private |
Definition at line 206 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 191 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 205 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 194 of file DTBtiChip.h.
Referenced by DTBtiChip(), operator=(), and store().
|
private |
Definition at line 198 of file DTBtiChip.h.
|
private |
Definition at line 196 of file DTBtiChip.h.
|
private |
Definition at line 200 of file DTBtiChip.h.
|
private |
Definition at line 193 of file DTBtiChip.h.
Referenced by DTBtiChip(), operator=(), and store().
|
private |
Definition at line 197 of file DTBtiChip.h.
|
private |
Definition at line 195 of file DTBtiChip.h.
|
private |
Definition at line 199 of file DTBtiChip.h.
|
private |
Definition at line 189 of file DTBtiChip.h.
Referenced by operator=(), run(), and tick().
|
private |
Definition at line 190 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), and operator=().
|
private |
Definition at line 188 of file DTBtiChip.h.
Referenced by DTBtiChip(), init(), init_clock(), operator=(), store(), and tick().
|
private |
Definition at line 187 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 182 of file DTBtiChip.h.
Referenced by addTrig(), clear(), DTBtiChip(), eraseTrigger(), nTrig(), operator=(), trigger(), triggerData(), and trigList().
|
private |
Definition at line 192 of file DTBtiChip.h.
Referenced by DTBtiChip(), and operator=().
|
private |
Definition at line 203 of file DTBtiChip.h.
|
private |
Definition at line 202 of file DTBtiChip.h.
|
private |
Definition at line 202 of file DTBtiChip.h.
|
private |
Definition at line 203 of file DTBtiChip.h.
|
private |
Definition at line 207 of file DTBtiChip.h.
Referenced by DTBtiChip(), init_clock(), and run().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 213 of file DTBtiChip.h.
Referenced by reSum().
|
private |
Definition at line 214 of file DTBtiChip.h.
Referenced by reSum23().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().
|
private |
Definition at line 211 of file DTBtiChip.h.
Referenced by setSnap().