96 std::cout <<
"DTTracoCard::loadTRACO called for wheel=" <<
wheel();
104 std::vector<DTBtiTrigData>::const_iterator
p;
105 std::vector<DTBtiTrigData>::const_iterator pend =
_bticard->
end();
113 int nbti = (*p).btiNumber();
114 int nsl = (*p).btiSL();
115 int step = (*p).step();
117 DTBtiId id_bti = (*p).parentId();
120 int LL = conf_bti->
LL();
121 int LH = conf_bti->
LH();
122 int CL = conf_bti->
CL();
123 int CH = conf_bti->
CH();
124 int RL = conf_bti->
RL();
125 int RH = conf_bti->
RH();
135 if (ntc < 1 || ntc > maxtc)
139 std::cout <<
"Bti trigger assigned to traco " << ntc <<
" (maxtc " << maxtc <<
")" << std::endl;
158 std::cout <<
"ATTENTION: in TRACO n. " << ntc <<
" bti pos " <<
pos <<
" trigger K= " << K
159 <<
" outside acceptance " <<
CL <<
"<K<" <<
CH << std::endl;
175 if ((ntc - 1) > 0 && (ntc - 1) <= maxtc) {
180 std::cout <<
"ATTENTION: in TRACO n. " << ntc - 1 <<
" bti pos " <<
pos + 8 - 4 * (-1)
181 <<
" trigger K= " << K <<
" outside acceptance " <<
LL <<
"<K<" <<
LH << std::endl;
187 if ((ntc) > 0 && (ntc) <= maxtc) {
192 std::cout <<
"ATTENTION: in TRACO n. " << ntc <<
" bti pos " <<
pos + 8 - 4 * (0) <<
" trigger K= " << K
193 <<
" outside acceptance " <<
CL <<
"<K<" <<
CH << std::endl;
198 if ((ntc + 1) > 0 && (ntc + 1) <= maxtc) {
203 std::cout <<
"ATTENTION: in TRACO n. " << ntc + 1 <<
" bti pos " <<
pos + 8 - 4 * (+1)
204 <<
" trigger K= " << K <<
" outside acceptance " <<
RL <<
"<K<" <<
RH << std::endl;
225 std::cout <<
"====================================================" << std::endl;
226 std::cout <<
" TRACO triggers " << std::endl;
266 std::cout <<
"====================================================" << std::endl;
278 traco = (*ptraco).second;
290 return (*ptraco).second;
294 std::vector<DTTracoChip *> blist;
300 blist.push_back((*p).second);
309 std::cout <<
"DTTracoChip::trigger: trigger not belonging to this card! ";
355 std::cout <<
"DTTracoCard::localPosition called with wrong argument!" << std::endl;
372 if (
trig->posIn() == 0) {
374 }
else if (
trig->posOut() == 0) {
407 std::cout <<
"DTtracoCard::localDirection called with wrong argument!" << std::endl;
418 std::cout <<
"K " <<
trig->K() <<
" == psi " <<
psi <<
" in FE frame " << std::endl;
431 std::cout <<
"Direction in chamber frame is (" << xd <<
"," << yd <<
"," << zd <<
")" << std::endl;
440 std::cout <<
"DTTracoCard::config_traco : TRACO (" << tracoid.
wheel() <<
"," << tracoid.
sector() <<
"," 441 << tracoid.
station() <<
"," << tracoid.
traco() <<
") not found, return 0" << std::endl;
LocalVector localDirection(const DTTrigData *) const override
NEWGEO Local direction in chamber of a trigger-data object.
int station() const
Return station number.
LocalPoint localPosition(const DTBtiId) const
Local position in chamber of a BTI.
void clearCache()
Clear all traco stuff (cache & map)
constexpr int32_t ceil(float num)
Local3DVector LocalVector
DTTracoChip * getTRACO(int n) const
Returns the required DTTracoChip. Return 0 if it doesn't exist.
void run()
Run TRACO algorithm.
bool getDTTPGDebug() const
Get global debug flag.
Point3DBase< Scalar, LocalTag > LocalPoint
void runTRACO()
run TRACO algorithm
bool lutFromDB() const
Lut from DB flag.
float cellPitch() const
Width of a cell (cm) i.e. distance between ywo wires.
DTTracoCard(DTTrigGeom *, DTBtiCard *, DTTSTheta *)
Constructor.
void addTrig(int step, DTTracoTrig *)
Add a TRACO trigger.
DTTracoChip * activeGetTRACO(int)
Returns the required DTTracoChip. Create it if it doesn't exist.
Sin< T >::type sin(const T &t)
int RH() const
K right limit for right traco.
int wheel() const
Returns wheel number.
int LH() const
K right limit for left traco.
CH
LTS and SET for low trigger suppression.
TRACOContainer::iterator TRACO_iter
void setConfig(const DTConfigManager *conf)
Set configuration.
int station() const
Returns station number.
void add_btiT(int step, int pos, const DTBtiTrigData *btitrig)
Add a BTI trigger to the TRACO.
std::map< std::string, int, std::less< std::string > > psi
~DTTracoCard() override
Destructor.
int nTrig(int step) const
Return the number of trigger candidates.
int step() const
Return step.
void localClear()
clear the TRACO map
int CH() const
K right limit for center traco.
int size() const
Get cache vector's size.
int useSecondTrack(int step) const
a flag for a usable second track
float distSL() const
Distance between the phi view superlayers (cms)
ConfTracoMap _conf_traco_map
DTTrigGeom * geom() const
Associated geometry.
int wheel() const
Return wheel number.
int sector() const
Returns sector number.
TRACOContainer::const_iterator TRACO_const_iter
int sector() const
Return sector number.
Cos< T >::type cos(const T &t)
LH
angular window limits for traco
DTTracoTrig * storeTrigger(DTTracoTrigData)
bool debug()
Return TU debug flag.
int traco() const
Returns the traco.
DTTracoId parentId() const
Return parent TRACO identifier.
DTChamberId statId() const
Identifier of the associated chamber.
const_iterator end() const
Get last cache element.
static const int NSTEPL
Constants: first and last step to start trigger finding.
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
DTTracoTrigData triggerData(int step, unsigned n) const
Return the data part of the requested trigger.
DTConfigBti * config_bti(DTBtiId &btiid) const
Return bti chip configuration.
const std::map< DTTracoId, DTConfigTraco > & getDTConfigTracoMap(DTChamberId) const
Get desired TRACO configuration map for a given DTChamber.
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
int CL() const
K left limit for center traco.
int RL() const
K left limit for right traco.
std::vector< DTTracoChip * > tracoList()
Returns the active TRACO list.
int LL() const
K left limit for left traco.
DTChamberId ChamberId() const
Identifier of the associated chamber.
void loadTRACO()
store BTI triggers in TRACO's
const DTConfigLUTs * _conf_luts
void clearCache()
Clear cache vector.
const_iterator begin() const
Get first cache element.
DTConfigTraco * config_traco(const DTTracoId &tracoid) const
Return single TRACO config.
LocalPoint localPosition(const DTTrigData *) const override
NEWGEO Local position in chamber of a trigger-data object.