86 void addTrig(
int step, std::unique_ptr<DTBtiTrig> btitrig);
106 int nTrig(
int step)
const;
109 std::vector<std::unique_ptr<DTBtiTrig>>
const&
trigList(
int step)
const;
151 void sum(
const int s,
const int a,
const int b);
154 int keepTrig(
const int eq,
const int acp,
const int code);
156 bool matchEq(
float eqA,
float eqB,
int AC);
159 int store(
const int eq,
const int code,
const int K,
const int X,
160 float KeqAB=0.,
float KeqBC=0.,
float KeqCD=0.,
161 float KeqAC=0.,
float KeqBD=0.,
float KeqAD=0.);
179 std::array<std::vector<const DTDigi*>,9>
_digis;
188 std::array<std::vector<DTBtiHit*>,9>
_hits;
DTBtiChip(DTBtiCard *card, DTTrigGeom *geom, int supl, int n, DTConfigBti *_config)
original constructor
int sector() const
Return sector number.
std::array< int, 9 > _thisStepUsedTimes
DTBtiChip & operator=(DTBtiChip &&bti)=delete
Assignment operator.
int wheel() const
Return wheel number.
int superlayer() const
Return superlayer.
std::array< std::vector< int >, 9 > _digis_clock
int keepTrig(const int eq, const int acp, const int code)
void eraseTrigger(int step, unsigned n)
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.)
std::array< int, 9 > _busyStart_clock
int sector() const
Return sector number.
void clear()
delete hits and triggers
DTBtiId id() const
Return the DTBtiChip Id.
DTBtiTrig const * trigger(int step, unsigned n) const
Return the requested trigger.
void run()
Run DTBtiChip algorithm.
int currentIntStep() const
int superlayer() const
Returns the superlayer.
DTBtiTrigData triggerData(int step, unsigned n) const
Return the data part of the requested trigger.
std::vector< const DTDigi * > const & get_CellDigis(int cell) const
get digi vector - SV 28/XI/02
std::array< std::vector< std::unique_ptr< DTBtiTrig > >, DTConfig::NSTEPL-DTConfig::NSTEPF+1 > _trigs
int nTrig(int step) const
Number of triggers found.
std::array< float, 25 > _difs
static const int NSTEPL
Constants: first and last step to start trigger finding.
int wheel() const
Return wheel number.
DTTrigGeom * geom() const
Return trigger geometry.
GlobalPoint CMSPosition() const
Position in CMS frame.
std::array< std::vector< const DTDigi * >, 9 > _digis
void sum(const int s, const int a, const int b)
std::array< std::vector< DTBtiHit * >, 9 > _hits
int station() const
Return station number.
int number() const
Return DTBtiChip number.
LocalPoint localPosition() const
Position in chamber frame (x is the one of first traco in slave plane)
int bti() const
Returns the bti.
std::array< float, 25 > _sums
int reSum23(int a, int b)
LocalPoint localPosition(const DTBtiId) const
Local position in chamber of a BTI.
int keepTrigPatt(int flag, const int eq, const int pattType, int hlflag)
bool matchEq(float eqA, float eqB, int AC)
int nCellHit() const
Number of cells with hits.
void add_digi(int cell, const DTDigi *digi)
Add a digi to the DTBtiChip.
std::array< DTBtiHit *, 9 > _thisStepUsedHit
void addTrig(int step, std::unique_ptr< DTBtiTrig > btitrig)
DTConfigBti * config() const
Configuration set.
int station() const
Return station number.
void acceptMask(BitArray< 80 > *BitArrPtr, int k, int accep)
std::vector< std::unique_ptr< DTBtiTrig > > const & trigList(int step) const
GlobalPoint CMSPosition(const DTBtiId obj) const
CMS position of a BTI.
void add_digi_clock(int cell, int clock_digi)
Add a clock digi to the DTBtiChip.