CMS 3D CMS Logo

Public Member Functions | Private Attributes

DTChambPhSegm Class Reference

#include <DTChambPhSegm.h>

Inheritance diagram for DTChambPhSegm:
DTTrigData

List of all members.

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 (DTChamberId, int, const DTTracoTrigData *, int)
 Constructor.
 DTChambPhSegm (DTChamberId, int)
 Constructor.
 DTChambPhSegm (const DTChambPhSegm &)
 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)
DTChambPhSegmoperator= (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 DTTracoTrigDatatracoTrig () 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 DTTracoTrigDatam_tracotrig
 the corresponding traco trigger

Detailed Description

Muon Chamber Trigger Phi candidate

Date:
2007/03/09 15:17:44
Revision:
1.3
Author:
C. Grandi S. Marcellini. D. Bonacorsi

Definition at line 43 of file DTChambPhSegm.h.


Constructor & Destructor Documentation

DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step 
)

Constructor.

Definition at line 35 of file DTChambPhSegm.cc.

References clear().

                                                            : 
                                         m_chamberid(chamberid), m_step(step) {
  clear();
}
DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step,
const DTTracoTrigData tracotrig,
int  isfirst 
)

Constructor.

Definition at line 40 of file DTChambPhSegm.cc.

                                                  :
                                     m_chamberid(chamberid), m_step(step),
                                     m_isFirst(isfirst),
                                     m_tracotrig(tracotrig)  {
}
DTChambPhSegm::DTChambPhSegm ( const DTChambPhSegm seg)

Constructor */.

Definition at line 48 of file DTChambPhSegm.cc.

DTChambPhSegm::~DTChambPhSegm ( )

Destructor.

Definition at line 56 of file DTChambPhSegm.cc.

                              {
}

Member Function Documentation

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

{ return m_chamberid; }
void DTChambPhSegm::clear ( void  )

Clear.

Definition at line 75 of file DTChambPhSegm.cc.

References m_isFirst, and m_tracotrig.

Referenced by DTChambPhSegm().

                     { 
  m_tracotrig = 0;
  m_isFirst = 0;
}
int DTChambPhSegm::code ( ) const [inline]

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

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

{ 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.

Referenced by setTracoTrig().

{ return m_isFirst == 1; }
float DTChambPhSegm::K ( ) const [inline]

Return trigger K parameter.

Definition at line 101 of file DTChambPhSegm.h.

References DTTracoTrigData::K(), and m_tracotrig.

Referenced by DTSectCollPhSegm::K(), and print().

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

{ 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.

                                                {
  if(this != &seg){
    m_chamberid = seg.m_chamberid;
    m_step = seg.m_step;
    m_tracotrig = seg.m_tracotrig ;
    m_isFirst = seg.m_isFirst ;
  }
  return *this;
}
int DTChambPhSegm::phi ( void  ) const [inline]

Return trigger X parameter converted to angle (bit pattern)

Definition at line 113 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psiR().

{ 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.

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

{ return m_tracotrig->posMask(); }
void DTChambPhSegm::print ( void  ) const [virtual]

Print.

Implements DTTrigData.

Definition at line 81 of file DTChambPhSegm.cc.

References gather_cfg::cout, DeltaPsiR(), DTTracoTrigData::eqIn(), DTTracoTrigData::eqOut(), K(), DTConfig::NTCTSS, oldCode(), posMask(), psi(), psiR(), DTTrigData::sector(), DTTrigData::station(), step(), DTTracoTrigData::tracoNumber(), tracoNumber(), tracoTrig(), DTTrigData::wheel(), and X().

                           {
  std::cout << "TP at step " << step() << ", in wheel " << wheel();
  std::cout << ", station " << station() << ", sector " << sector() << std::endl;
  std::cout << "TSS " << (tracoTrig()->tracoNumber()-1) / DTConfigTSPhi::NTCTSS + 1;
  std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
  std::cout << "  -->  code " << oldCode() << ", K " << K();
  std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
  std::cout << "inner bti equation=" << tracoTrig()->eqIn() <<
          "    outer bti equation=" << tracoTrig()->eqOut() << std::endl;
  std::cout << "        psi " << psi() << ", psiR " << psiR();
  std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
}
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().

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

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

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

{ 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 isFirst(), m_isFirst, and m_tracotrig.

                                                                            {

       m_tracotrig = tracotrig; 
       m_isFirst = isFirst;
    }
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().

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

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

{ return m_tracotrig; }
float DTChambPhSegm::X ( ) const [inline]

Return trigger X parameter.

Definition at line 104 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::X().

Referenced by print(), and DTSectCollPhSegm::X().

{ return m_tracotrig->X(); }

Member Data Documentation

parent chamber

Definition at line 133 of file DTChambPhSegm.h.

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

first or second track

Definition at line 139 of file DTChambPhSegm.h.

Referenced by clear(), isFirst(), operator=(), and setTracoTrig().

step number

Definition at line 136 of file DTChambPhSegm.h.

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

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