78 std::cout <<
"DTTSTheta::loadDTTSTheta called for wheel=" <<
wheel();
84 std::vector<DTBtiTrigData>::const_iterator
p;
85 std::vector<DTBtiTrigData>::const_iterator pend =
_bticard->
end();
88 if (p->btiSL() == 2) {
111 if (n < 1 || n >
geom()->nCell(2)) {
112 std::cout <<
"DTTSTheta::add_btiT: BTI out of range: " <<
n;
113 std::cout <<
" trigger not added!" << std::endl;
117 std::cout <<
"DTTSTheta::add_btiT: step out of range: " <<
step;
118 std::cout <<
" trigger not added!" << std::endl;
124 if (btitrig->
code() == 8) {
131 std::cout <<
" to DTTSTheta at position " << n << std::endl;
144 for (i = 0; i < 8; i++) {
148 code[
i] = pos[
i] + qual[
i];
155 if (qual[7] > qual[6])
157 if (code[7] > code[6])
163 for (i = 0; i < 8; i++) {
168 for (i = 0; i < 8; i++) {
173 for (i = 0; i < 8; i++) {
187 std::cout <<
"====================================================" << std::endl;
188 std::cout <<
" Theta segments " << std::endl;
189 std::vector<DTChambThSegm>::const_iterator
p;
193 std::cout <<
"====================================================" << std::endl;
201 std::vector<DTChambThSegm>::const_iterator
p;
203 if (p->step() ==
step)
210 std::vector<DTChambThSegm>::const_iterator
p;
212 if (p->step() == step && n == 1)
231 std::cout <<
"DTTSTheta::nHTrig: step out of range " <<
step;
242 std::cout <<
"DTTSTheta::btiMask: step out of range " <<
step;
243 std::cout <<
" empty pointer returned" << std::endl;
251 std::cout <<
"DTTSTheta::btiQual: step out of range " <<
step;
252 std::cout <<
" empty pointer returned" << std::endl;
virtual void print() const =0
Print a trigger-data object with also local and global position/direction.
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.
DTChamberId ChamberId() const
Identifier of the associated chamber.
int nSegm(int step)
Return number of TStheta segments (just 1)
LocalVector localDirection(const DTTrigData *) const override
Local direction in chamber of a L1Trigger-data object.
static const int NSTEPL
Constants: first and last step to start trigger finding.
int btiNumber() const
Return parent BTI number.
void print(const DTTrigData *trig) const override
Print a L1Trigger-data object with also local and global position/direction.
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]
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.