#include <L1Trigger/DTTriggerServerPhi/interface/DTChambPhSegm.h>
Public Member Functions | |
DTChamberId | ChamberId () const |
Return chamber identifier. | |
void | clear () |
Clear. | |
int | code () const |
Return trigger code (MTTF input format [0,7]). | |
int | DeltaPsiR () const |
Return bending angle (bit pattern). | |
DTChambPhSegm (const DTChambPhSegm &) | |
Constructor */. | |
DTChambPhSegm (DTChamberId, int, const DTTracoTrigData *, int) | |
Constructor. | |
DTChambPhSegm (DTChamberId, int) | |
Constructor. | |
int | isFirst () const |
Return if it is a first track. | |
float | K () const |
Return trigger K parameter. | |
int | oldCode () const |
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8). | |
DTChambPhSegm & | operator= (const DTChambPhSegm &) |
Assignment operator. | |
int | phi () const |
Return trigger X parameter converted to angle (bit pattern). | |
int | phiB () const |
Return bending angle (bit pattern). | |
int | posMask () const |
Return correlator output code (position of segments). | |
void | print () const |
Print. | |
int | psi () const |
Return trigger K parameter converted to angle (bit pattern). | |
int | psiR () const |
Return trigger X parameter converted to angle (bit pattern). | |
int | pvCode () const |
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8). | |
int | pvK () const |
Return the preview K. | |
void | setTracoTrig (const DTTracoTrigData *tracotrig, int isFirst) |
Associate a TRACO trigger. | |
int | step () const |
Return step number. | |
int | tracoNumber () const |
Return parent TRACO number. | |
const DTTracoTrigData * | tracoTrig () const |
Return associated TRACO trigger. | |
float | X () const |
Return trigger X parameter. | |
~DTChambPhSegm () | |
Destructor. | |
Private Attributes | |
DTChamberId | m_chamberid |
parent chamber | |
myint8 | m_isFirst |
first or second track | |
myint8 | m_step |
step number | |
const DTTracoTrigData * | m_tracotrig |
the corresponding traco trigger |
Definition at line 43 of file DTChambPhSegm.h.
DTChambPhSegm::DTChambPhSegm | ( | DTChamberId | chamberid, | |
int | step | |||
) |
Constructor.
Definition at line 35 of file DTChambPhSegm.cc.
References clear().
00035 : 00036 m_chamberid(chamberid), m_step(step) { 00037 clear(); 00038 }
DTChambPhSegm::DTChambPhSegm | ( | DTChamberId | chamberid, | |
int | step, | |||
const DTTracoTrigData * | tracotrig, | |||
int | isfirst | |||
) |
Constructor.
Definition at line 40 of file DTChambPhSegm.cc.
00042 : 00043 m_chamberid(chamberid), m_step(step), 00044 m_isFirst(isfirst), 00045 m_tracotrig(tracotrig) { 00046 }
DTChambPhSegm::DTChambPhSegm | ( | const DTChambPhSegm & | seg | ) |
Constructor */.
Definition at line 48 of file DTChambPhSegm.cc.
00048 : 00049 m_chamberid(seg.m_chamberid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), 00050 m_tracotrig(seg.m_tracotrig) { 00051 }
DTChambPhSegm::~DTChambPhSegm | ( | ) |
DTChamberId DTChambPhSegm::ChamberId | ( | ) | const [inline, virtual] |
Return chamber identifier.
Implements DTTrigData.
Definition at line 83 of file DTChambPhSegm.h.
References m_chamberid.
Referenced by DTSectCollPhSegm::ChamberId(), and DTSectCollPhCand::CoarseSync().
00083 { return m_chamberid; }
Clear.
Definition at line 75 of file DTChambPhSegm.cc.
References m_isFirst, and m_tracotrig.
Referenced by DTChambPhSegm().
00075 { 00076 m_tracotrig = 0; 00077 m_isFirst = 0; 00078 }
Return trigger code (MTTF input format [0,7]).
Definition at line 95 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::qdec().
Referenced by DTSectCollPhSegm::code(), and DTSectCollPhCand::setBitsSectColl().
00095 { return m_tracotrig->qdec(); }
int DTChambPhSegm::DeltaPsiR | ( | ) | const [inline] |
Return bending angle (bit pattern).
Definition at line 116 of file DTChambPhSegm.h.
References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.
Referenced by DTSectCollPhSegm::DeltaPsiR(), DTSectCollPhSegm::phiB(), print(), and DTSectCollPhCand::setBitsSectColl().
00116 { return m_tracotrig->DeltaPsiR(); }
int DTChambPhSegm::isFirst | ( | ) | const [inline] |
Return if it is a first track.
Definition at line 92 of file DTChambPhSegm.h.
References m_isFirst.
00092 { return m_isFirst == 1; }
float DTChambPhSegm::K | ( | ) | const [inline] |
Definition at line 101 of file DTChambPhSegm.h.
References DTTracoTrigData::K(), and m_tracotrig.
Referenced by DTSectCollPhSegm::K(), and print().
00101 { return m_tracotrig->K(); }
int DTChambPhSegm::oldCode | ( | ) | const [inline] |
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8).
Definition at line 98 of file DTChambPhSegm.h.
References DTTracoTrigData::code(), and m_tracotrig.
Referenced by DTSectColl::addTSPhi(), DTSectCollPhSegm::oldCode(), and print().
00098 { return m_tracotrig->code(); }
DTChambPhSegm & DTChambPhSegm::operator= | ( | const DTChambPhSegm & | seg | ) |
Assignment operator.
Definition at line 64 of file DTChambPhSegm.cc.
References m_chamberid, m_isFirst, m_step, and m_tracotrig.
00064 { 00065 if(this != &seg){ 00066 m_chamberid = seg.m_chamberid; 00067 m_step = seg.m_step; 00068 m_tracotrig = seg.m_tracotrig ; 00069 m_isFirst = seg.m_isFirst ; 00070 } 00071 return *this; 00072 }
Return trigger X parameter converted to angle (bit pattern).
Definition at line 113 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::psiR().
00113 { return m_tracotrig->psiR(); }
int DTChambPhSegm::phiB | ( | ) | const [inline] |
Return bending angle (bit pattern).
Definition at line 119 of file DTChambPhSegm.h.
References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.
00119 { return m_tracotrig->DeltaPsiR(); }
int DTChambPhSegm::posMask | ( | ) | const [inline] |
Return correlator output code (position of segments).
Definition at line 122 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::posMask().
Referenced by DTSectCollPhSegm::posMask(), and print().
00122 { return m_tracotrig->posMask(); }
Print.
Implements DTTrigData.
Definition at line 81 of file DTChambPhSegm.cc.
References GenMuonPlsPt100GeV_cfg::cout, DeltaPsiR(), lat::endl(), DTTracoTrigData::eqIn(), DTTracoTrigData::eqOut(), K(), DTConfig::NTCTSS, oldCode(), posMask(), psi(), psiR(), DTTrigData::sector(), DTTrigData::station(), step(), DTTracoTrigData::tracoNumber(), tracoNumber(), tracoTrig(), DTTrigData::wheel(), and X().
00081 { 00082 std::cout << "TP at step " << step() << ", in wheel " << wheel(); 00083 std::cout << ", station " << station() << ", sector " << sector() << std::endl; 00084 std::cout << "TSS " << (tracoTrig()->tracoNumber()-1) / DTConfigTSPhi::NTCTSS + 1; 00085 std::cout << ", TRACO " << tracoNumber() << " : " << std::endl; 00086 std::cout << " --> code " << oldCode() << ", K " << K(); 00087 std::cout << ", X " << X() << ", position mask " << posMask() << std::endl; 00088 std::cout << "inner bti equation=" << tracoTrig()->eqIn() << 00089 " outer bti equation=" << tracoTrig()->eqOut() << std::endl; 00090 std::cout << " psi " << psi() << ", psiR " << psiR(); 00091 std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl; 00092 }
int DTChambPhSegm::psi | ( | ) | const [inline] |
Return trigger K parameter converted to angle (bit pattern).
Definition at line 107 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::psi().
Referenced by print(), and DTSectCollPhSegm::psi().
00107 { return m_tracotrig->psi(); }
int DTChambPhSegm::psiR | ( | ) | const [inline] |
Return trigger X parameter converted to angle (bit pattern).
Definition at line 110 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::psiR().
Referenced by DTSectCollPhSegm::phi(), print(), and DTSectCollPhSegm::psiR().
00110 { return m_tracotrig->psiR(); }
int DTChambPhSegm::pvCode | ( | ) | const [inline] |
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8).
Definition at line 125 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::pvCode().
Referenced by DTSectCollPhCand::print(), and DTSectCollPhSegm::pvCode().
00125 { return m_tracotrig->pvCode(); }
int DTChambPhSegm::pvK | ( | ) | const [inline] |
Return the preview K.
Definition at line 128 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::pvK().
Referenced by DTSectCollPhSegm::pvK().
00128 { return m_tracotrig->pvK(); }
void DTChambPhSegm::setTracoTrig | ( | const DTTracoTrigData * | tracotrig, | |
int | isFirst | |||
) | [inline] |
Associate a TRACO trigger.
Definition at line 67 of file DTChambPhSegm.h.
References m_isFirst, and m_tracotrig.
00067 { 00068 00069 m_tracotrig = tracotrig; 00070 m_isFirst = isFirst; 00071 }
int DTChambPhSegm::step | ( | ) | const [inline] |
Return step number.
Definition at line 80 of file DTChambPhSegm.h.
References m_step.
Referenced by print(), and DTSectCollPhCand::print().
00080 { return m_step; }
int DTChambPhSegm::tracoNumber | ( | ) | const [inline] |
Return parent TRACO number.
Definition at line 89 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::tracoNumber().
Referenced by print(), and DTSectCollPhSegm::tracoNumber().
00089 { return m_tracotrig->tracoNumber(); }
const DTTracoTrigData* DTChambPhSegm::tracoTrig | ( | ) | const [inline] |
Return associated TRACO trigger.
Definition at line 77 of file DTChambPhSegm.h.
References m_tracotrig.
Referenced by DTTSPhi::localDirection(), DTTSPhi::localPosition(), DTSectCollPhSegm::print(), and print().
00077 { return m_tracotrig; }
float DTChambPhSegm::X | ( | ) | const [inline] |
Definition at line 104 of file DTChambPhSegm.h.
References m_tracotrig, and DTTracoTrigData::X().
Referenced by print(), and DTSectCollPhSegm::X().
00104 { return m_tracotrig->X(); }
DTChamberId DTChambPhSegm::m_chamberid [private] |
parent chamber
Definition at line 133 of file DTChambPhSegm.h.
Referenced by ChamberId(), and operator=().
myint8 DTChambPhSegm::m_isFirst [private] |
first or second track
Definition at line 139 of file DTChambPhSegm.h.
Referenced by clear(), isFirst(), operator=(), and setTracoTrig().
myint8 DTChambPhSegm::m_step [private] |
const DTTracoTrigData* DTChambPhSegm::m_tracotrig [private] |
the corresponding traco trigger
Definition at line 142 of file DTChambPhSegm.h.
Referenced by clear(), code(), DeltaPsiR(), K(), oldCode(), operator=(), phi(), phiB(), posMask(), psi(), psiR(), pvCode(), pvK(), setTracoTrig(), tracoNumber(), tracoTrig(), and X().