#include <L1Trigger/DTTriggerServerTheta/interface/DTChambThSegm.h>
Public Member Functions | |
DTChamberId | ChamberId () const |
Identifier of the associated chamber. | |
void | clear () |
Clear. | |
int | code (const int i) const |
Return the code for a given set of 7 BTI. | |
DTChambThSegm (const DTChambThSegm &seg) | |
Constructor. | |
DTChambThSegm (DTChamberId, int, int *, int *) | |
Constructor. | |
DTChambThSegm & | operator= (const DTChambThSegm &seg) |
Assignment operator. | |
int | position (const int i) const |
Return the position for a given set of 7 BTI. | |
void | print () const |
Print. | |
int | quality (const int i) const |
Return the quality for a given set of 7 BTI. | |
int | step () const |
Return step number. | |
~DTChambThSegm () | |
Destructor. | |
Private Attributes | |
DTChamberId | m_chamberid |
parent chamber | |
myint8 | m_outPos [7] |
output code | |
myint8 | m_outQual [7] |
int | m_step |
step number |
Definition at line 42 of file DTChambThSegm.h.
DTChambThSegm::DTChambThSegm | ( | DTChamberId | chamberid, | |
int | step, | |||
int * | pos, | |||
int * | qual | |||
) |
DTChambThSegm::DTChambThSegm | ( | const DTChambThSegm & | seg | ) |
DTChambThSegm::~DTChambThSegm | ( | ) |
DTChamberId DTChambThSegm::ChamberId | ( | ) | const [inline, virtual] |
Identifier of the associated chamber.
Implements DTTrigData.
Definition at line 65 of file DTChambThSegm.h.
References m_chamberid.
Referenced by DTSectCollThSegm::ChamberId(), and DTSectCollThCand::CoarseSync().
00065 { return m_chamberid; }
void DTChambThSegm::clear | ( | ) |
Clear.
Return the code for a given set of 7 BTI.
Definition at line 77 of file DTChambThSegm.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), m_outPos, and m_outQual.
Referenced by DTSectCollThSegm::code().
00077 { 00078 if(i<0||i>=7){ 00079 std::cout << "DTChambThSegm::code : index out of range: " << i; 00080 std::cout << "0 returned!" << std::endl; 00081 return 0; 00082 } 00083 return (int)(m_outPos[i]+m_outQual[i]); 00084 }
DTChambThSegm & DTChambThSegm::operator= | ( | const DTChambThSegm & | seg | ) |
Assignment operator.
Definition at line 64 of file DTChambThSegm.cc.
References i, m_chamberid, m_outPos, m_outQual, and m_step.
00064 { 00065 if(this != &seg){ 00066 m_chamberid = seg.m_chamberid; 00067 m_step = seg.m_step; 00068 for(int i=0;i<7;i++) { 00069 m_outPos[i] = seg.m_outPos[i]; 00070 m_outQual[i] = seg.m_outQual[i]; 00071 } 00072 } 00073 return *this; 00074 }
Return the position for a given set of 7 BTI.
Definition at line 87 of file DTChambThSegm.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and m_outPos.
Referenced by DTSectColl::addTSTheta(), and DTSectCollThSegm::position().
00087 { 00088 if(i<0||i>=7){ 00089 std::cout << "DTChambThSegm::position : index out of range: " << i; 00090 std::cout << "0 returned!" << std::endl; 00091 return 0; 00092 } 00093 return (int)m_outPos[i]; 00094 }
Print.
Implements DTTrigData.
Definition at line 107 of file DTChambThSegm.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), i, int, m_outPos, m_outQual, DTTrigData::sector(), DTTrigData::station(), step(), and DTTrigData::wheel().
Referenced by DTSectCollThCand::print().
00107 { 00108 std::cout << "TP at step " << step() << ", in wheel " << wheel(); 00109 std::cout << ", station " << station() << ", sector " << sector(); 00110 std::cout << " : " << std::endl; 00111 std::cout << " output codes : "; 00112 int i=0; 00113 for(i=0;i<7;i++){ 00114 std::cout << (int)(m_outPos[i]+m_outQual[i]) << " "; 00115 } 00116 std::cout << "\n"; 00117 00118 }
Return the quality for a given set of 7 BTI.
Definition at line 97 of file DTChambThSegm.cc.
References GenMuonPlsPt100GeV_cfg::cout, lat::endl(), and m_outQual.
Referenced by DTSectCollThSegm::quality().
00097 { 00098 if(i<0||i>=7){ 00099 std::cout << "DTChambThSegm::quality : index out of range: " << i; 00100 std::cout << "0 returned!" << std::endl; 00101 return 0; 00102 } 00103 return (int)m_outQual[i]; 00104 }
int DTChambThSegm::step | ( | ) | const [inline] |
Return step number.
Definition at line 62 of file DTChambThSegm.h.
References m_step.
Referenced by DTSectCollThCand::print(), and print().
00062 { return m_step; }
DTChamberId DTChambThSegm::m_chamberid [private] |
parent chamber
Definition at line 82 of file DTChambThSegm.h.
Referenced by ChamberId(), and operator=().
myint8 DTChambThSegm::m_outPos[7] [private] |
output code
Definition at line 88 of file DTChambThSegm.h.
Referenced by code(), DTChambThSegm(), operator=(), position(), and print().
myint8 DTChambThSegm::m_outQual[7] [private] |
Definition at line 89 of file DTChambThSegm.h.
Referenced by code(), DTChambThSegm(), operator=(), print(), and quality().
int DTChambThSegm::m_step [private] |