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++) {
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;
int station() const
Return station number.
int btiNumber() const
Return parent BTI number.
Local3DVector LocalVector
int nHTrig(int step)
Return number of DTBtiChip fired with a HTRIG (used by DTTracoChip)
Point3DBase< Scalar, LocalTag > LocalPoint
BitArray< DTConfigTSTheta::NCELLTH > * btiQual(int step) const
Return the BitArray of DTBtiChip fired with a HTRIG.
void add_btiT(int step, const DTBtiTrigData *btitrig)
Add a DTBtiChip L1Trigger to the DTTSTheta.
BitArray< DTConfigTSTheta::NCELLTH > _trig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
void runDTTSTheta()
run DTTSTheta algorithm (build the mask)
~DTTSTheta() override
Destructor.
const DTChambThSegm * segment(int step, unsigned n)
Return the requested DTTSTheta segment (only the first)
BitArray< DTConfigTSTheta::NCELLTH > _Htrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
int code() const
Return trigger code.
int size() const
Get cache vector's size.
DTTrigGeom * geom() const
Associated geometry.
int wheel() const
Return wheel number.
int _nHtrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
int sector() const
Return sector number.
BitArray< DTConfigTSTheta::NCELLTH > * btiMask(int step) const
Return the BitArray of DTBtiChip fired.
const_iterator end() const
Get last cache element.
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.
int _ntrig[DTConfigTSTheta::NSTEPL - DTConfigTSTheta::NSTEPF+1]
static const int NSTEPL
Constants: first and last step to start trigger finding.
const DTConfigTSTheta * config() const
Return configuration.
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.
DTChamberId ChamberId() const
Identifier of the associated chamber.
BitArray< 8 > byte(const int i) const
void setConfig(const DTConfigManager *conf)
Set configuration.
const_iterator begin() const
Get first cache element.
const DTConfigTSTheta * getDTConfigTSTheta(DTChamberId) const
Get desired Trigger Server Theta configuration.
void loadDTTSTheta()
store DTBtiChip L1Triggers in the TST
const DTConfigTSTheta * _config
int nTrig(int step)
Return number of DTBtiChip fired (used by DTTracoChip)
DTTSTheta(DTTrigGeom *, DTBtiCard *)
Constructor.