CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTChambThSegm Class Reference

#include <DTChambThSegm.h>

Inheritance diagram for DTChambThSegm:
DTTrigData

Public Member Functions

DTChamberId ChamberId () const
 Identifier of the associated chamber. More...
 
void clear ()
 Clear. More...
 
int code (const int i) const
 Return the code for a given set of 7 BTI. More...
 
 DTChambThSegm (DTChamberId, int, int *, int *)
 Constructor. More...
 
 DTChambThSegm (const DTChambThSegm &seg)
 Constructor. More...
 
DTChambThSegmoperator= (const DTChambThSegm &seg)
 Assignment operator. More...
 
int position (const int i) const
 Return the position for a given set of 7 BTI. More...
 
void print () const
 Print. More...
 
int quality (const int i) const
 Return the quality for a given set of 7 BTI. More...
 
int step () const
 Return step number. More...
 
 ~DTChambThSegm ()
 Destructor. More...
 
- Public Member Functions inherited from DTTrigData
 DTTrigData ()
 Constructor. More...
 
int sector () const
 Return sector number. More...
 
int station () const
 Return station number. More...
 
int wheel () const
 Return wheel number. More...
 
virtual ~DTTrigData ()
 Destructor. More...
 

Private Attributes

DTChamberId m_chamberid
 parent chamber More...
 
myint8 m_outPos [7]
 output code More...
 
myint8 m_outQual [7]
 
int m_step
 step number More...
 

Detailed Description

Muon Chamber Trigger Theta candidate

Author
C. Grandi

Definition at line 40 of file DTChambThSegm.h.

Constructor & Destructor Documentation

DTChambThSegm::DTChambThSegm ( DTChamberId  chamberid,
int  step,
int *  pos,
int *  qual 
)

Constructor.

Definition at line 34 of file DTChambThSegm.cc.

References i, m_outPos, and m_outQual.

36  : m_chamberid(chamberid), m_step(step) {
37 
38  for(int i=0;i<7;i++) {
39  m_outPos[i] = pos[i];
40  m_outQual[i] = qual[i];
41  }
42 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
int m_step
step number
Definition: DTChambThSegm.h:83
step
DTChamberId m_chamberid
parent chamber
Definition: DTChambThSegm.h:80
DTChambThSegm::DTChambThSegm ( const DTChambThSegm seg)

Constructor.

Definition at line 44 of file DTChambThSegm.cc.

References i, m_outPos, and m_outQual.

44  :
46 
47  for(int i=0;i<7;i++) {
48  m_outPos[i] = seg.m_outPos[i];
49  m_outQual[i] = seg.m_outQual[i];
50  }
51 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
int m_step
step number
Definition: DTChambThSegm.h:83
DTChamberId m_chamberid
parent chamber
Definition: DTChambThSegm.h:80
DTChambThSegm::~DTChambThSegm ( )

Destructor.

Definition at line 56 of file DTChambThSegm.cc.

56  {
57 }

Member Function Documentation

DTChamberId DTChambThSegm::ChamberId ( ) const
inlinevirtual

Identifier of the associated chamber.

Implements DTTrigData.

Definition at line 63 of file DTChambThSegm.h.

References code(), i, m_chamberid, position(), print(), and quality().

Referenced by DTSectCollThSegm::ChamberId(), and DTSectCollThCand::CoarseSync().

63 { return m_chamberid; }
DTChamberId m_chamberid
parent chamber
Definition: DTChambThSegm.h:80
void DTChambThSegm::clear ( )

Clear.

int DTChambThSegm::code ( const int  i) const

Return the code for a given set of 7 BTI.

Definition at line 77 of file DTChambThSegm.cc.

References gather_cfg::cout, i, m_outPos, and m_outQual.

Referenced by ChamberId(), and DTSectCollThSegm::code().

77  {
78  if(i<0||i>=7){
79  std::cout << "DTChambThSegm::code : index out of range: " << i;
80  std::cout << "0 returned!" << std::endl;
81  return 0;
82  }
83  return (int)(m_outPos[i]+m_outQual[i]);
84 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
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.

64  {
65  if(this != &seg){
67  m_step = seg.m_step;
68  for(int i=0;i<7;i++) {
69  m_outPos[i] = seg.m_outPos[i];
70  m_outQual[i] = seg.m_outQual[i];
71  }
72  }
73  return *this;
74 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
int m_step
step number
Definition: DTChambThSegm.h:83
DTChamberId m_chamberid
parent chamber
Definition: DTChambThSegm.h:80
int DTChambThSegm::position ( const int  i) const

Return the position for a given set of 7 BTI.

Definition at line 87 of file DTChambThSegm.cc.

References gather_cfg::cout, i, and m_outPos.

Referenced by DTSectColl::addTSTheta(), ChamberId(), and DTSectCollThSegm::position().

87  {
88  if(i<0||i>=7){
89  std::cout << "DTChambThSegm::position : index out of range: " << i;
90  std::cout << "0 returned!" << std::endl;
91  return 0;
92  }
93  return (int)m_outPos[i];
94 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
void DTChambThSegm::print ( void  ) const
virtual

Print.

Implements DTTrigData.

Definition at line 107 of file DTChambThSegm.cc.

References gather_cfg::cout, i, createfilelist::int, m_outPos, m_outQual, DTTrigData::sector(), DTTrigData::station(), step(), and DTTrigData::wheel().

Referenced by ChamberId(), and DTSectCollThCand::print().

107  {
108  std::cout << "TP at step " << step() << ", in wheel " << wheel();
109  std::cout << ", station " << station() << ", sector " << sector();
110  std::cout << " : " << std::endl;
111  std::cout << " output codes : ";
112  int i=0;
113  for(i=0;i<7;i++){
114  std::cout << (int)(m_outPos[i]+m_outQual[i]) << " ";
115  }
116  std::cout << "\n";
117 
118 }
int i
Definition: DBlmapReader.cc:9
int wheel() const
Return wheel number.
Definition: DTTrigData.h:48
int step() const
Return step number.
Definition: DTChambThSegm.h:60
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
int sector() const
Return sector number.
Definition: DTTrigData.h:54
int station() const
Return station number.
Definition: DTTrigData.h:51
myint8 m_outPos[7]
output code
Definition: DTChambThSegm.h:86
int DTChambThSegm::quality ( const int  i) const

Return the quality for a given set of 7 BTI.

Definition at line 97 of file DTChambThSegm.cc.

References gather_cfg::cout, i, and m_outQual.

Referenced by ChamberId(), and DTSectCollThSegm::quality().

97  {
98  if(i<0||i>=7){
99  std::cout << "DTChambThSegm::quality : index out of range: " << i;
100  std::cout << "0 returned!" << std::endl;
101  return 0;
102  }
103  return (int)m_outQual[i];
104 }
int i
Definition: DBlmapReader.cc:9
myint8 m_outQual[7]
Definition: DTChambThSegm.h:87
int DTChambThSegm::step ( ) const
inline

Return step number.

Definition at line 60 of file DTChambThSegm.h.

References m_step.

Referenced by DTSectCollThCand::print(), and print().

60 { return m_step; }
int m_step
step number
Definition: DTChambThSegm.h:83

Member Data Documentation

DTChamberId DTChambThSegm::m_chamberid
private

parent chamber

Definition at line 80 of file DTChambThSegm.h.

Referenced by ChamberId(), and operator=().

myint8 DTChambThSegm::m_outPos[7]
private

output code

Definition at line 86 of file DTChambThSegm.h.

Referenced by code(), DTChambThSegm(), operator=(), position(), and print().

myint8 DTChambThSegm::m_outQual[7]
private

Definition at line 87 of file DTChambThSegm.h.

Referenced by code(), DTChambThSegm(), operator=(), print(), and quality().

int DTChambThSegm::m_step
private

step number

Definition at line 83 of file DTChambThSegm.h.

Referenced by operator=(), and step().