CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTChambThSegm Class Reference

#include <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 (DTChamberId, int, int *, int *)
 Constructor.
 DTChambThSegm (const DTChambThSegm &seg)
 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.

  : m_chamberid(chamberid),  m_step(step) {

  for(int i=0;i<7;i++) {
    m_outPos[i] = pos[i];
    m_outQual[i] = qual[i];
  }
}
DTChambThSegm::DTChambThSegm ( const DTChambThSegm seg)

Constructor.

Definition at line 44 of file DTChambThSegm.cc.

References i, m_outPos, and m_outQual.

                                                     : 
  m_chamberid(seg.m_chamberid), m_step(seg.m_step)  {

  for(int i=0;i<7;i++) {
    m_outPos[i] = seg.m_outPos[i];
    m_outQual[i] = seg.m_outQual[i];
  }
}
DTChambThSegm::~DTChambThSegm ( )

Destructor.

Definition at line 56 of file DTChambThSegm.cc.

                             {
}

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().

{ 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 gather_cfg::cout, i, m_outPos, and m_outQual.

Referenced by DTSectCollThSegm::code().

                                     {
  if(i<0||i>=7){
    std::cout << "DTChambThSegm::code : index out of range: " << i;
    std::cout << "0 returned!" << std::endl;
    return 0;
  }
  return (int)(m_outPos[i]+m_outQual[i]);
}
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.

                                                {
  if(this != &seg){
    m_chamberid = seg.m_chamberid;
    m_step = seg.m_step;
    for(int i=0;i<7;i++) {
      m_outPos[i] = seg.m_outPos[i];
      m_outQual[i] = seg.m_outQual[i];
    }
  }
  return *this;
}
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(), and DTSectCollThSegm::position().

                                         {
  if(i<0||i>=7){
    std::cout << "DTChambThSegm::position : index out of range: " << i;
    std::cout << "0 returned!" << std::endl;
    return 0;
  }
  return (int)m_outPos[i];
}
void DTChambThSegm::print ( void  ) const [virtual]

Print.

Implements DTTrigData.

Definition at line 107 of file DTChambThSegm.cc.

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

Referenced by DTSectCollThCand::print().

                           {
  std::cout << "TP at step " << step() << ", in wheel " << wheel();
  std::cout << ", station " << station() << ", sector " << sector();
  std::cout << " : " << std::endl;
  std::cout << "  output codes : ";
  int i=0;
  for(i=0;i<7;i++){
    std::cout << (int)(m_outPos[i]+m_outQual[i]) << " ";
  }
  std::cout << "\n";
  
}
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 DTSectCollThSegm::quality().

                                        {
  if(i<0||i>=7){
    std::cout << "DTChambThSegm::quality : index out of range: " << i;
    std::cout << "0 returned!" << std::endl;
    return 0;
  }
  return (int)m_outQual[i];
}
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().

{ return m_step; }

Member Data Documentation

parent chamber

Definition at line 82 of file DTChambThSegm.h.

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

output code

Definition at line 88 of file DTChambThSegm.h.

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

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().