#include <L1Trigger/DTTraco/interface/DTTracoTrigData.h>
Public Member Functions | |
DTChamberId | ChamberId () const |
Return chamber identifier. | |
void | clear () |
Clear. | |
int | code () const |
Return trigger code. | |
int | DeltaPsiR () const |
Return DeltaPsiR. | |
DTTracoTrigData (DTTracoId, int) | |
Constructor. | |
DTTracoTrigData () | |
Constructor. | |
int | eqIn () const |
Return bti trigger equation of inner segment. | |
int | eqOut () const |
Return bti trigger equation of outer segment. | |
int | isFirst () const |
Return non 0 if the track is a first track. | |
int | K () const |
Return trigger K parameter. | |
DTTracoId | parentId () const |
Return parent TRACO identifier. | |
int | posIn () const |
Return the position of inner segment. | |
int | posMask () const |
Return correlator output code (position of segments). | |
int | posOut () const |
Return the position of outer segment. | |
void | print () const |
print | |
int | psi () const |
Return trigger K parameter converted to angle. | |
int | psiR () const |
Return trigger X parameter converted to angle. | |
int | pvCode () const |
Return the preview code. | |
int | pvCorr () const |
Return the preview correaltion bit. | |
int | pvIO () const |
Return the preview i/o bit. | |
int | pvK () const |
Return the preview K. | |
int | qdec () const |
Return the trigger code in new format. | |
void | resetPV () |
Reset preview variables. | |
void | resetVar () |
Reset all variables but preview. | |
void | setAngles (int psi, int psir, int dpsir) |
Set trigger angles. | |
void | setCodeIn (int code) |
Set trigger code inner layer. | |
void | setCodeOut (int code) |
Set trigger code outer layer. | |
void | setEqIn (int eq) |
Set bti trigger equation of segment, inner layer. | |
void | setEqOut (int eq) |
Set bti trigger equation of segment, outer layer. | |
void | setK (int k) |
Set trigger K parameter. | |
void | setParent (DTTracoId tracoid) |
Set the parent TRACO Identifier. | |
void | setPosIn (int pos) |
Set position of segment, inner layer. | |
void | setPosOut (int pos) |
Set position of segment, outer layer. | |
void | setPV (int first, int code, int K, int ioflag) |
Set trigger preview parameters. | |
void | setPVCorr (int ic) |
Set trigger preview correlation bit. | |
void | setStep (int step) |
Set trigger step. | |
void | setX (int x) |
Set trigger X parameter. | |
int | step () const |
Return step. | |
int | tracoNumber () const |
Return parent TRACO number. | |
int | X () const |
Return trigger X parameter. | |
~DTTracoTrigData () | |
Destructor. | |
Private Attributes | |
myint8 | _codeIn |
myint8 | _codeOut |
long int | _dPsiR |
myint8 | _eqIn |
myint8 | _eqOut |
int | _Kval |
myint8 | _posIn |
myint8 | _posOut |
long int | _psi |
long int | _psiR |
myint8 | _pvcode |
myint8 | _pvCorr |
myint8 | _pvfirst |
myint8 | _pvIOflag |
int | _pvKval |
myint8 | _step |
DTTracoId | _tracoid |
int | _Xval |
Definition at line 39 of file DTTracoTrigData.h.
DTTracoTrigData::DTTracoTrigData | ( | ) | [inline] |
DTTracoTrigData::~DTTracoTrigData | ( | ) | [inline] |
DTChamberId DTTracoTrigData::ChamberId | ( | ) | const [inline, virtual] |
Return chamber identifier.
Implements DTTrigData.
Definition at line 178 of file DTTracoTrigData.h.
References _tracoid, and DTTracoId::ChamberId().
Referenced by DTTracoTrig::ChamberId().
Clear.
Definition at line 172 of file DTTracoTrigData.h.
References resetPV(), and resetVar().
Referenced by DTTracoTrig::clear(), and DTTracoTrigData().
Return trigger code.
Definition at line 201 of file DTTracoTrigData.h.
References _codeIn, and _codeOut.
Referenced by DTTSPhi::addTracoT(), DTTracoTrig::code(), DTChambPhSegm::oldCode(), print(), and DTTSPhi::runTSPhi().
int DTTracoTrigData::DeltaPsiR | ( | ) | const [inline] |
Return DeltaPsiR.
Definition at line 278 of file DTTracoTrigData.h.
References _dPsiR.
Referenced by DTChambPhSegm::DeltaPsiR(), DTTracoTrig::DeltaPsiR(), DTChambPhSegm::phiB(), and print().
00278 { 00279 return _dPsiR; 00280 }
int DTTracoTrigData::eqIn | ( | ) | const [inline] |
Return bti trigger equation of inner segment.
Definition at line 221 of file DTTracoTrigData.h.
References _eqIn.
Referenced by DTTracoTrig::eqIn(), DTSectCollPhSegm::print(), and DTChambPhSegm::print().
00221 { 00222 return _eqIn; 00223 }
int DTTracoTrigData::eqOut | ( | ) | const [inline] |
Return bti trigger equation of outer segment.
Definition at line 226 of file DTTracoTrigData.h.
References _eqOut.
Referenced by DTTracoTrig::eqOut(), DTSectCollPhSegm::print(), and DTChambPhSegm::print().
00226 { 00227 return _eqOut; 00228 }
int DTTracoTrigData::isFirst | ( | ) | const [inline] |
Return non 0 if the track is a first track.
Definition at line 232 of file DTTracoTrigData.h.
References _pvfirst.
Referenced by DTTracoTrig::isFirst(), and print().
00232 { 00233 return _pvfirst; 00234 }
int DTTracoTrigData::K | ( | ) | const [inline] |
Definition at line 258 of file DTTracoTrigData.h.
References _Kval.
Referenced by DTChambPhSegm::K(), DTTracoTrig::K(), DTTracoCard::localDirection(), and print().
00258 { 00259 return _Kval; 00260 }
DTTracoId DTTracoTrigData::parentId | ( | ) | const [inline] |
Return parent TRACO identifier.
Definition at line 186 of file DTTracoTrigData.h.
References _tracoid.
Referenced by DTTracoCard::localDirection(), DTTracoCard::localPosition(), and DTTracoCard::storeTrigger().
00186 { 00187 return _tracoid; 00188 }
int DTTracoTrigData::posIn | ( | ) | const [inline] |
Return the position of inner segment.
Definition at line 211 of file DTTracoTrigData.h.
References _posIn.
Referenced by DTTracoCard::localPosition(), and DTTracoTrig::posIn().
00211 { 00212 return _posIn; 00213 }
int DTTracoTrigData::posMask | ( | ) | const [inline] |
Return correlator output code (position of segments).
Definition at line 206 of file DTTracoTrigData.h.
References _posIn, and _posOut.
Referenced by DTChambPhSegm::posMask(), and DTTracoTrig::posMask().
int DTTracoTrigData::posOut | ( | ) | const [inline] |
Return the position of outer segment.
Definition at line 216 of file DTTracoTrigData.h.
References _posOut.
Referenced by DTTracoCard::localPosition(), and DTTracoTrig::posOut().
00216 { 00217 return _posOut; 00218 }
Implements DTTrigData.
Definition at line 60 of file DTTracoTrigData.cc.
References _tracoid, code(), GenMuonPlsPt100GeV_cfg::cout, DeltaPsiR(), lat::endl(), isFirst(), K(), psiR(), pvCode(), pvCorr(), pvK(), qdec(), DTTracoId::sector(), DTTracoId::station(), step(), DTTracoId::traco(), DTTracoId::wheel(), and X().
Referenced by DTTSPhi::addTracoT(), and DTTracoTrig::print().
00060 { 00061 cout << "TRACO Id=" << " ( " << _tracoid.wheel() ; 00062 cout << " , " << _tracoid.station() ; 00063 cout << " , " << _tracoid.sector() ; 00064 cout << " # " << _tracoid.traco() ; 00065 cout << " ) " << " step: " << step(); 00066 00067 cout << dec << " code=" << code() << " K=" << K() << " X=" << X(); 00068 cout << dec << " PVcode=" << pvCode() << " PVk=" << pvK() << " qdec=" << qdec(); 00069 cout << " qdec=" << qdec(); 00070 cout << hex << " psiR=" << psiR() << " DeltaPsiR=" << DeltaPsiR() << dec << endl; 00071 if(isFirst()) 00072 cout << " I trk"; 00073 if(!isFirst()) 00074 cout << " II trk"; 00075 cout << " ("; 00076 if(!pvCorr()) cout << "NOT "; 00077 cout << "correlated)" << endl; 00078 }
int DTTracoTrigData::psi | ( | ) | const [inline] |
Return trigger K parameter converted to angle.
Definition at line 268 of file DTTracoTrigData.h.
References _psi.
Referenced by DTChambPhSegm::psi(), and DTTracoTrig::psi().
00268 { 00269 return _psi; 00270 }
int DTTracoTrigData::psiR | ( | ) | const [inline] |
Return trigger X parameter converted to angle.
Definition at line 273 of file DTTracoTrigData.h.
References _psiR.
Referenced by DTChambPhSegm::phi(), print(), DTChambPhSegm::psiR(), and DTTracoTrig::psiR().
00273 { 00274 return _psiR; 00275 }
int DTTracoTrigData::pvCode | ( | ) | const [inline] |
Return the preview code.
Definition at line 237 of file DTTracoTrigData.h.
References _pvcode.
Referenced by DTTSPhi::addTracoT(), DTTSCand::is0H(), DTTSCand::is0L(), DTTSCand::isH0(), DTTSCand::isHHorHL(), DTTSCand::isHtrig(), DTTSCand::isInner(), DTTSCand::isL0(), DTTSCand::isLH(), DTTSCand::isLL(), print(), DTChambPhSegm::pvCode(), and DTTracoTrig::pvCode().
00237 { 00238 return _pvcode; 00239 }
int DTTracoTrigData::pvCorr | ( | ) | const [inline] |
Return the preview correaltion bit.
Definition at line 247 of file DTTracoTrigData.h.
References _pvCorr.
Referenced by DTTSCand::is0H(), DTTSCand::is0L(), DTTSCand::isCorr(), DTTSCand::isH0(), DTTSCand::isHHorHL(), DTTSCand::isL0(), DTTSCand::isLH(), DTTSCand::isLL(), print(), and DTTracoTrig::pvCorr().
00247 { 00248 return _pvCorr; 00249 }
int DTTracoTrigData::pvIO | ( | ) | const [inline] |
Return the preview i/o bit.
Definition at line 252 of file DTTracoTrigData.h.
References _pvIOflag.
Referenced by DTTracoTrig::operator==().
00252 { 00253 return _pvIOflag; 00254 }
int DTTracoTrigData::pvK | ( | ) | const [inline] |
Return the preview K.
Definition at line 242 of file DTTracoTrigData.h.
References _pvKval.
Referenced by print(), DTTSCand::print(), DTChambPhSegm::pvK(), DTTracoTrig::pvK(), DTTSCand::setBitsTsm(), and DTTSCand::setBitsTss().
00242 { 00243 return _pvKval; 00244 }
int DTTracoTrigData::qdec | ( | ) | const |
Return the trigger code in new format.
Definition at line 46 of file DTTracoTrigData.cc.
References _codeIn, and _codeOut.
Referenced by DTChambPhSegm::code(), print(), DTTracoTrig::qdec(), and DTTSCand::setBitsBkmod().
00046 { 00047 // This is consistent with memo 00048 if (_codeIn==8 && _codeOut==8) return 6; // HH 00049 if (_codeIn==8 && _codeOut==0) return 2; // Hinner 00050 if (_codeIn==0 && _codeOut==8) return 3; // Houter 00051 if (_codeIn >0 && _codeOut==8) return 5; // LH 00052 if (_codeIn==8 && _codeOut> 0) return 5; // HL 00053 if (_codeIn> 0 && _codeOut> 0) return 4; // LL 00054 if (_codeIn> 0 && _codeOut==0) return 0; // Linner 00055 if (_codeIn==0 && _codeOut> 0) return 1; // Louter 00056 return 7; // null 00057 }
void DTTracoTrigData::resetPV | ( | ) | [inline] |
Reset preview variables.
Definition at line 163 of file DTTracoTrigData.h.
References _pvcode, _pvCorr, _pvfirst, _pvIOflag, and _pvKval.
Referenced by clear(), and DTTracoTrig::resetPV().
00163 { 00164 _pvfirst = 0; 00165 _pvcode = 0; 00166 _pvKval = 9999; 00167 _pvCorr = 0; 00168 _pvIOflag = 0; 00169 }
void DTTracoTrigData::resetVar | ( | ) | [inline] |
Reset all variables but preview.
Definition at line 141 of file DTTracoTrigData.h.
References _codeIn, _codeOut, _dPsiR, _eqIn, _eqOut, _Kval, _posIn, _posOut, _psi, _psiR, and _Xval.
Referenced by clear(), and DTTracoTrig::resetVar().
00141 { 00142 _codeIn = 0; 00143 _codeOut = 0; 00144 _posIn = 0; 00145 _posOut = 0; 00146 _eqIn = 0; 00147 _eqOut = 0; 00148 _Kval = 255; 00149 _Xval = 0; 00150 /* 00151 _psi = -DTConfig::RESOLPSI; 00152 _psiR = -DTConfig::RESOLPSIR/2; 00153 _dPsiR = -DTConfig::RESOLPSI; 00154 */ 00155 //SV notazione complemento a due: 00156 _psi = 0x1FF; 00157 _psiR = 0xFFF; 00158 _dPsiR = 0x1FF; 00159 00160 }
Set trigger angles.
Definition at line 127 of file DTTracoTrigData.h.
References _dPsiR, _psi, and _psiR.
Referenced by DTTracoTrig::setAngles().
00127 { 00128 if(psi & 0x200) 00129 psi |= 0xFFFFFC00; 00130 if(psir & 0x800) 00131 psir |= 0xFFFFF000; 00132 if(dpsir & 0x200) 00133 dpsir |= 0xFFFFFC00; 00134 00135 _psi = psi; 00136 _psiR = psir; 00137 _dPsiR = dpsir; 00138 }
Set trigger code inner layer.
Definition at line 87 of file DTTracoTrigData.h.
References _codeIn.
Referenced by DTTracoTrig::setCodeIn().
Set trigger code outer layer.
Definition at line 91 of file DTTracoTrigData.h.
References _codeOut.
Referenced by DTTracoTrig::setCodeOut().
Set bti trigger equation of segment, inner layer.
Definition at line 106 of file DTTracoTrigData.h.
References _eqIn.
Referenced by DTTracoTrig::setEqIn().
Set bti trigger equation of segment, outer layer.
Definition at line 111 of file DTTracoTrigData.h.
References _eqOut.
Referenced by DTTracoTrig::setEqOut().
Definition at line 117 of file DTTracoTrigData.h.
References _Kval.
Referenced by DTTracoTrig::setK().
Set the parent TRACO Identifier.
Definition at line 57 of file DTTracoTrigData.h.
References _tracoid.
Referenced by DTTracoTrig::DTTracoTrig().
00057 { 00058 _tracoid = tracoid; 00059 }
Set position of segment, inner layer.
Definition at line 96 of file DTTracoTrigData.h.
References _posIn.
Referenced by DTTracoTrig::setPosIn().
00096 { 00097 _posIn = pos; 00098 }
Set position of segment, outer layer.
Definition at line 101 of file DTTracoTrigData.h.
References _posOut.
Referenced by DTTracoTrig::setPosOut().
00101 { 00102 _posOut = pos; 00103 }
Set trigger preview parameters.
Definition at line 67 of file DTTracoTrigData.h.
References _pvcode, _pvfirst, _pvIOflag, and _pvKval.
Referenced by DTTracoTrig::setPV().
00067 { 00068 _pvfirst = first; 00069 _pvcode = code; 00070 _pvKval = K; 00071 _pvIOflag = ioflag; 00072 /* 00073 cout<<"setPV called, stored:"<< 00074 " first=" << first << 00075 " code=" << code << 00076 " K=" << K << 00077 " ioflag=" << ioflag << endl; 00078 */ 00079 }
Set trigger preview correlation bit.
Definition at line 82 of file DTTracoTrigData.h.
References _pvCorr.
Referenced by DTTracoTrig::setPVCorr().
00082 { 00083 _pvCorr = ic; 00084 }
Set trigger step.
Definition at line 62 of file DTTracoTrigData.h.
References _step.
Referenced by DTTracoTrig::DTTracoTrig().
Definition at line 122 of file DTTracoTrigData.h.
References _Xval.
Referenced by DTTracoTrig::setX().
int DTTracoTrigData::step | ( | ) | const [inline] |
Return step.
Definition at line 196 of file DTTracoTrigData.h.
References _step.
Referenced by print(), DTTracoTrig::step(), and DTTracoCard::storeTrigger().
00196 { 00197 return _step; 00198 }
int DTTracoTrigData::tracoNumber | ( | ) | const [inline] |
Return parent TRACO number.
Definition at line 191 of file DTTracoTrigData.h.
References _tracoid, and DTTracoId::traco().
Referenced by DTTSPhi::addTracoT(), DTSectCollPhSegm::print(), DTChambPhSegm::print(), DTTSCand::tracoNumber(), DTTracoTrig::tracoNumber(), and DTChambPhSegm::tracoNumber().
int DTTracoTrigData::X | ( | ) | const [inline] |
Definition at line 263 of file DTTracoTrigData.h.
References _Xval.
Referenced by DTTracoCard::localPosition(), print(), DTTracoTrig::X(), and DTChambPhSegm::X().
00263 { 00264 return _Xval; 00265 }
myint8 DTTracoTrigData::_codeIn [private] |
Definition at line 303 of file DTTracoTrigData.h.
Referenced by code(), qdec(), resetVar(), and setCodeIn().
myint8 DTTracoTrigData::_codeOut [private] |
Definition at line 305 of file DTTracoTrigData.h.
Referenced by code(), qdec(), resetVar(), and setCodeOut().
long int DTTracoTrigData::_dPsiR [private] |
Definition at line 330 of file DTTracoTrigData.h.
Referenced by DeltaPsiR(), resetVar(), and setAngles().
myint8 DTTracoTrigData::_eqIn [private] |
myint8 DTTracoTrigData::_eqOut [private] |
Definition at line 300 of file DTTracoTrigData.h.
Referenced by eqOut(), resetVar(), and setEqOut().
int DTTracoTrigData::_Kval [private] |
myint8 DTTracoTrigData::_posIn [private] |
Definition at line 294 of file DTTracoTrigData.h.
Referenced by posIn(), posMask(), resetVar(), and setPosIn().
myint8 DTTracoTrigData::_posOut [private] |
Definition at line 296 of file DTTracoTrigData.h.
Referenced by posMask(), posOut(), resetVar(), and setPosOut().
long int DTTracoTrigData::_psi [private] |
long int DTTracoTrigData::_psiR [private] |
Definition at line 328 of file DTTracoTrigData.h.
Referenced by psiR(), resetVar(), and setAngles().
myint8 DTTracoTrigData::_pvcode [private] |
myint8 DTTracoTrigData::_pvCorr [private] |
Definition at line 315 of file DTTracoTrigData.h.
Referenced by pvCorr(), resetPV(), and setPVCorr().
myint8 DTTracoTrigData::_pvfirst [private] |
myint8 DTTracoTrigData::_pvIOflag [private] |
int DTTracoTrigData::_pvKval [private] |
myint8 DTTracoTrigData::_step [private] |
DTTracoId DTTracoTrigData::_tracoid [private] |
Definition at line 288 of file DTTracoTrigData.h.
Referenced by ChamberId(), parentId(), print(), setParent(), and tracoNumber().
int DTTracoTrigData::_Xval [private] |