87 std::cout <<
"DTTSTheta::loadDTTSTheta called for wheel=" <<
wheel() ;
93 std::vector<DTBtiTrigData>::const_iterator
p;
94 std::vector<DTBtiTrigData>::const_iterator pend=
_bticard->
end();
97 if (p->btiSL() == 2) {
122 if( n<1 || n>
geom()->nCell(2) ) {
123 std::cout <<
"DTTSTheta::add_btiT: BTI out of range: " <<
n;
124 std::cout <<
" trigger not added!" << std::endl;
128 std::cout <<
"DTTSTheta::add_btiT: step out of range: " <<
step;
129 std::cout <<
" trigger not added!" << std::endl;
135 if(btitrig->
code()==8){
142 std::cout <<
" to DTTSTheta at position " << n << std::endl;
160 code[
i]=pos[
i]+qual[
i];
165 if(pos[7] > pos[6]) pos[6]=pos[7];
166 if(qual[7] > qual[6]) qual[6]=qual[7];
167 if(code[7] > code[6]) code[6]=code[7];
198 std::cout <<
"====================================================" << std::endl;
199 std::cout <<
" Theta segments " << std::endl;
200 std::vector<DTChambThSegm>::const_iterator
p;
204 std::cout <<
"====================================================" << std::endl;
214 std::vector<DTChambThSegm>::const_iterator
p;
216 if(p->step()==
step)n++;
223 std::vector<DTChambThSegm>::const_iterator
p;
225 if(p->step()==step&&n==1)
245 std::cout <<
"DTTSTheta::nHTrig: step out of range " <<
step;
256 std::cout <<
"DTTSTheta::btiMask: step out of range " <<
step;
257 std::cout <<
" empty pointer returned" << std::endl;
266 std::cout <<
"DTTSTheta::btiQual: step out of range " <<
step;
267 std::cout <<
" empty pointer returned" << std::endl;
DTTrigGeom * geom() const
Associated geometry.
Local3DVector LocalVector
int nHTrig(int step)
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Point3DBase< Scalar, LocalTag > LocalPoint
int sector() const
Return sector number.
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
int _ntrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
BitArray< 8 > byte(const int i) const
~DTTSTheta() override
Destructor.
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
int station() const
Return station number.
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
int wheel() const
Return wheel number.
const DTConfigTSTheta * config() const
Return configuration.
int _nHtrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
LocalVector localDirection(const DTTrigData *) const override
Local direction in chamber of a L1Trigger-data object.
void print(const DTTrigData *trig) const override
Print a L1Trigger-data object with also local and global position/direction.
DTChamberId ChamberId() const
Identifier of the associated chamber.
int nSegm(int step)
Return number of TStheta segments (just 1)
static const int NSTEPL
Constants: first and last step to start trigger finding.
int btiNumber() const
Return parent BTI number.
LocalPoint localPosition(const DTTrigData *) const override
Local position in chamber of a L1Trigger-data object.
const_iterator begin() const
Get first cache element.
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL-DTConfigTSTheta::NSTEPF+1]
virtual void print() const =0
Print a trigger-data object with also local and global position/direction.
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
void setConfig(const DTConfigManager *conf)
Set configuration.
const_iterator end() const
Get last cache element.
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
int size() const
Get cache vector's size.
const DTConfigTSTheta * _config
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.
int code() const
Return trigger code.