CMS 3D CMS Logo

DTChambThSegm Class Reference

Muon Chamber Trigger Theta candidate. More...

#include <L1Trigger/DTTriggerServerTheta/interface/DTChambThSegm.h>

Inheritance diagram for DTChambThSegm:

DTTrigData

List of all members.

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.
DTChambThSegmoperator= (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


Detailed Description

Muon Chamber Trigger Theta candidate.

Date
2008/06/30 13:42:53
Revision
1.5

Author:
C. Grandi

Definition at line 42 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.

00036   : m_chamberid(chamberid),  m_step(step) {
00037 
00038   for(int i=0;i<7;i++) {
00039     m_outPos[i] = pos[i];
00040     m_outQual[i] = qual[i];
00041   }
00042 }

DTChambThSegm::DTChambThSegm ( const DTChambThSegm seg  ) 

Constructor.

Definition at line 44 of file DTChambThSegm.cc.

References i, m_outPos, and m_outQual.

00044                                                      : 
00045   m_chamberid(seg.m_chamberid), m_step(seg.m_step)  {
00046 
00047   for(int i=0;i<7;i++) {
00048     m_outPos[i] = seg.m_outPos[i];
00049     m_outQual[i] = seg.m_outQual[i];
00050   }
00051 }

DTChambThSegm::~DTChambThSegm (  ) 

Destructor.

Definition at line 56 of file DTChambThSegm.cc.

00056                              {
00057 }


Member Function Documentation

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.

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 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 }

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 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 }

void DTChambThSegm::print ( void   )  const [virtual]

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 }

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 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; }


Member Data Documentation

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]

step number

Definition at line 85 of file DTChambThSegm.h.

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


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:18:47 2009 for CMSSW by  doxygen 1.5.4