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