|
|
Go to the documentation of this file.
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;
445 return const_cast<DTConfigTraco *>(&(*titer).second);
DTTracoChip * activeGetTRACO(int)
Returns the required DTTracoChip. Create it if it doesn't exist.
void runTRACO()
run TRACO algorithm
const DTConfigLUTs * getDTConfigLUTs(DTChamberId) const
Get desired LUT configuration.
int LH() const
K right limit for left traco.
DTTracoCard(DTTrigGeom *, DTBtiCard *, DTTSTheta *)
Constructor.
int size() const
Get cache vector's size.
bool getDTTPGDebug() const
Get global debug flag.
DTTracoChip * getTRACO(int n) const
Returns the required DTTracoChip. Return 0 if it doesn't exist.
bool lutFromDB() const
Lut from DB flag.
TRACOContainer::const_iterator TRACO_const_iter
int RH() const
K right limit for right traco.
TRACOContainer::iterator TRACO_iter
LocalVector localDirection(const DTTrigData *) const override
NEWGEO Local direction in chamber of a trigger-data object.
static const int NSTEPL
Constants: first and last step to start trigger finding.
void run()
Run TRACO algorithm.
void add_btiT(int step, int pos, const DTBtiTrigData *btitrig)
Add a BTI trigger to the TRACO.
int CH() const
K right limit for center traco.
int station() const
Returns station number.
Point3DBase< Scalar, LocalTag > LocalPoint
const_iterator begin() const
Get first cache element.
void setConfig(const DTConfigManager *conf)
Set configuration.
DTChamberId ChamberId() const
Identifier of the associated chamber.
int nTrig(int step) const
Return the number of trigger candidates.
int sector() const
Return sector number.
Sin< T >::type sin(const T &t)
void localClear()
clear the TRACO map
DTTracoTrig * storeTrigger(DTTracoTrigData)
Cos< T >::type cos(const T &t)
ConfTracoMap _conf_traco_map
constexpr int32_t ceil(float num)
~DTTracoCard() override
Destructor.
DTTracoId parentId() const
Return parent TRACO identifier.
bool useAcceptParam() const
Use Bti acceptance parameters (LL,LH,CL,CH,RL,RH)
int useSecondTrack(int step) const
a flag for a usable second track
int wheel() const
Return wheel number.
int CL() const
K left limit for center traco.
DTTracoTrigData triggerData(int step, unsigned n) const
Return the data part of the requested trigger.
LocalPoint localPosition(const DTBtiId) const
Local position in chamber of a BTI.
const_iterator end() const
Get last cache element.
Local3DVector LocalVector
void clearCache()
Clear cache vector.
float cellPitch() const
Width of a cell (cm) i.e. distance between ywo wires.
int RL() const
K left limit for right traco.
void loadTRACO()
store BTI triggers in TRACO's
bool debug()
Return TU debug flag.
std::vector< DTTracoChip * > tracoList()
Returns the active TRACO list.
CH
LTS and SET for low trigger suppression.
const std::map< DTTracoId, DTConfigTraco > & getDTConfigTracoMap(DTChamberId) const
Get desired TRACO configuration map for a given DTChamber.
std::map< std::string, int, std::less< std::string > > psi
int traco() const
Returns the traco.
int station() const
Return station number.
int step() const
Return step.
LocalPoint localPosition(const DTTrigData *) const override
NEWGEO Local position in chamber of a trigger-data object.
int LL() const
K left limit for left traco.
const DTConfigLUTs * _conf_luts
int wheel() const
Returns wheel number.
DTTrigGeom * geom() const
Associated geometry.
DTChamberId statId() const
Identifier of the associated chamber.
DTConfigTraco * config_traco(const DTTracoId &tracoid) const
Return single TRACO config.
DTConfigBti * config_bti(DTBtiId &btiid) const
Return bti chip configuration.
int sector() const
Returns sector number.
float distSL() const
Distance between the phi view superlayers (cms)
void clearCache()
Clear all traco stuff (cache & map)
LH
angular window limits for traco
void addTrig(int step, DTTracoTrig *)
Add a TRACO trigger.