CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Attributes
DTChambPhSegm Class Reference

#include <DTChambPhSegm.h>

Inheritance diagram for DTChambPhSegm:
DTTrigData

Public Member Functions

DTChamberId ChamberId () const
 Return chamber identifier. More...
 
void clear ()
 Clear. More...
 
int code () const
 Return trigger code (MTTF input format [0,7]) More...
 
int DeltaPsiR () const
 Return bending angle (bit pattern) More...
 
 DTChambPhSegm (DTChamberId, int)
 Constructor. More...
 
 DTChambPhSegm (DTChamberId, int, const DTTracoTrigData *, int)
 Constructor. More...
 
 DTChambPhSegm (const DTChambPhSegm &)
 Constructor */. More...
 
int isFirst () const
 Return if it is a first track. More...
 
float K () const
 Return trigger K parameter. More...
 
int oldCode () const
 Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8) More...
 
DTChambPhSegmoperator= (const DTChambPhSegm &)
 Assignment operator. More...
 
int phi () const
 Return trigger X parameter converted to angle (bit pattern) More...
 
int phiB () const
 Return bending angle (bit pattern) More...
 
int posMask () const
 Return correlator output code (position of segments) More...
 
void print () const
 Print. More...
 
int psi () const
 Return trigger K parameter converted to angle (bit pattern) More...
 
int psiR () const
 Return trigger X parameter converted to angle (bit pattern) More...
 
int pvCode () const
 Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8) More...
 
int pvK () const
 Return the preview K. More...
 
void setTracoTrig (const DTTracoTrigData *tracotrig, int isFirst)
 Associate a TRACO trigger. More...
 
int step () const
 Return step number. More...
 
int tracoNumber () const
 Return parent TRACO number. More...
 
const DTTracoTrigDatatracoTrig () const
 Return associated TRACO trigger. More...
 
float X () const
 Return trigger X parameter. More...
 
 ~DTChambPhSegm ()
 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_isFirst
 first or second track More...
 
myint8 m_step
 step number More...
 
const DTTracoTrigDatam_tracotrig
 the corresponding traco trigger More...
 

Detailed Description

Muon Chamber Trigger Phi candidate

Author
C. Grandi S. Marcellini. D. Bonacorsi

Definition at line 41 of file DTChambPhSegm.h.

Constructor & Destructor Documentation

DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step 
)

Constructor.

Definition at line 35 of file DTChambPhSegm.cc.

References clear().

35  :
36  m_chamberid(chamberid), m_step(step) {
37  clear();
38 }
int step() const
Return step number.
Definition: DTChambPhSegm.h:78
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
void clear()
Clear.
DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step,
const DTTracoTrigData tracotrig,
int  isfirst 
)

Constructor.

Definition at line 40 of file DTChambPhSegm.cc.

42  :
43  m_chamberid(chamberid), m_step(step),
44  m_isFirst(isfirst),
45  m_tracotrig(tracotrig) {
46 }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int step() const
Return step number.
Definition: DTChambPhSegm.h:78
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
myint8 m_isFirst
first or second track
DTChambPhSegm::DTChambPhSegm ( const DTChambPhSegm seg)

Constructor */.

Definition at line 48 of file DTChambPhSegm.cc.

48  :
51 }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
myint8 m_isFirst
first or second track
DTChambPhSegm::~DTChambPhSegm ( )

Destructor.

Definition at line 56 of file DTChambPhSegm.cc.

56  {
57 }

Member Function Documentation

DTChamberId DTChambPhSegm::ChamberId ( ) const
inlinevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 81 of file DTChambPhSegm.h.

References m_chamberid.

Referenced by DTSectCollPhSegm::ChamberId(), and DTSectCollPhCand::CoarseSync().

81 { return m_chamberid; }
DTChamberId m_chamberid
parent chamber
void DTChambPhSegm::clear ( void  )

Clear.

Definition at line 75 of file DTChambPhSegm.cc.

References m_isFirst, and m_tracotrig.

Referenced by DTChambPhSegm().

75  {
76  m_tracotrig = 0;
77  m_isFirst = 0;
78 }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
myint8 m_isFirst
first or second track
int DTChambPhSegm::code ( ) const
inline

Return trigger code (MTTF input format [0,7])

Definition at line 93 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::qdec().

Referenced by DTSectCollPhSegm::code(), and DTSectCollPhCand::setBitsSectColl().

93 { return m_tracotrig->qdec(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int qdec() const
Return the trigger code in new format.
int DTChambPhSegm::DeltaPsiR ( ) const
inline

Return bending angle (bit pattern)

Definition at line 114 of file DTChambPhSegm.h.

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

Referenced by DTSectCollPhSegm::DeltaPsiR(), DTSectCollPhSegm::phiB(), print(), and DTSectCollPhCand::setBitsSectColl().

114 { return m_tracotrig->DeltaPsiR(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int DeltaPsiR() const
Return DeltaPsiR.
int DTChambPhSegm::isFirst ( ) const
inline

Return if it is a first track.

Definition at line 90 of file DTChambPhSegm.h.

References m_isFirst.

Referenced by setTracoTrig().

90 { return m_isFirst == 1; }
myint8 m_isFirst
first or second track
float DTChambPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 99 of file DTChambPhSegm.h.

References DTTracoTrigData::K(), and m_tracotrig.

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

99 { return m_tracotrig->K(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int K() const
Return trigger K parameter.
int DTChambPhSegm::oldCode ( ) const
inline

Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)

Definition at line 96 of file DTChambPhSegm.h.

References DTTracoTrigData::code(), and m_tracotrig.

Referenced by DTSectColl::addTSPhi(), DTSectCollPhSegm::oldCode(), and print().

96 { return m_tracotrig->code(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int code() const
Return trigger 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.

64  {
65  if(this != &seg){
67  m_step = seg.m_step;
68  m_tracotrig = seg.m_tracotrig ;
69  m_isFirst = seg.m_isFirst ;
70  }
71  return *this;
72 }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
myint8 m_isFirst
first or second track
int DTChambPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 111 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psiR().

111 { return m_tracotrig->psiR(); }
int psiR() const
Return trigger X parameter converted to angle.
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int DTChambPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 117 of file DTChambPhSegm.h.

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

117 { return m_tracotrig->DeltaPsiR(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int DeltaPsiR() const
Return DeltaPsiR.
int DTChambPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 120 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::posMask().

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

120 { return m_tracotrig->posMask(); }
int posMask() const
Return correlator output code (position of segments)
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
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(), tracoNumber(), DTTracoTrigData::tracoNumber(), tracoTrig(), DTTrigData::wheel(), and X().

81  {
82  std::cout << "TP at step " << step() << ", in wheel " << wheel();
83  std::cout << ", station " << station() << ", sector " << sector() << std::endl;
84  std::cout << "TSS " << (tracoTrig()->tracoNumber()-1) / DTConfigTSPhi::NTCTSS + 1;
85  std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
86  std::cout << " --> code " << oldCode() << ", K " << K();
87  std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
88  std::cout << "inner bti equation=" << tracoTrig()->eqIn() <<
89  " outer bti equation=" << tracoTrig()->eqOut() << std::endl;
90  std::cout << " psi " << psi() << ", psiR " << psiR();
91  std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
92 }
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:87
int wheel() const
Return wheel number.
Definition: DTTrigData.h:48
int tracoNumber() const
Return parent TRACO number.
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int step() const
Return step number.
Definition: DTChambPhSegm.h:78
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:41
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:96
int sector() const
Return sector number.
Definition: DTTrigData.h:54
int station() const
Return station number.
Definition: DTTrigData.h:51
float X() const
Return trigger X parameter.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:99
int posMask() const
Return correlator output code (position of segments)
int eqOut() const
Return bti trigger equation of outer segment.
int DeltaPsiR() const
Return bending angle (bit pattern)
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:75
tuple cout
Definition: gather_cfg.py:121
int eqIn() const
Return bti trigger equation of inner segment.
int DTChambPhSegm::psi ( ) const
inline

Return trigger K parameter converted to angle (bit pattern)

Definition at line 105 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psi().

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

105 { return m_tracotrig->psi(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int psi() const
Return trigger K parameter converted to angle.
int DTChambPhSegm::psiR ( ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 108 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psiR().

Referenced by DTSectCollPhSegm::phi(), print(), and DTSectCollPhSegm::psiR().

108 { return m_tracotrig->psiR(); }
int psiR() const
Return trigger X parameter converted to angle.
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
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 123 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::pvCode().

Referenced by DTSectCollPhCand::print(), and DTSectCollPhSegm::pvCode().

123 { return m_tracotrig->pvCode(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int pvCode() const
Return the preview code.
int DTChambPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 126 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::pvK().

Referenced by DTSectCollPhSegm::pvK().

126 { return m_tracotrig->pvK(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int pvK() const
Return the preview K.
void DTChambPhSegm::setTracoTrig ( const DTTracoTrigData tracotrig,
int  isFirst 
)
inline

Associate a TRACO trigger.

Definition at line 65 of file DTChambPhSegm.h.

References isFirst(), m_isFirst, and m_tracotrig.

65  {
66 
67  m_tracotrig = tracotrig;
69  }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:90
myint8 m_isFirst
first or second track
int DTChambPhSegm::step ( ) const
inline

Return step number.

Definition at line 78 of file DTChambPhSegm.h.

References m_step.

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

78 { return m_step; }
myint8 m_step
step number
int DTChambPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 87 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::tracoNumber().

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

87 { return m_tracotrig->tracoNumber(); }
int tracoNumber() const
Return parent TRACO number.
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
const DTTracoTrigData* DTChambPhSegm::tracoTrig ( ) const
inline

Return associated TRACO trigger.

Definition at line 75 of file DTChambPhSegm.h.

References m_tracotrig.

Referenced by DTTSPhi::localDirection(), DTTSPhi::localPosition(), print(), and DTSectCollPhSegm::print().

75 { return m_tracotrig; }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
float DTChambPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 102 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::X().

Referenced by svgfig.Curve.Sample::__repr__(), print(), and DTSectCollPhSegm::X().

102 { return m_tracotrig->X(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int X() const
Return trigger X parameter.

Member Data Documentation

DTChamberId DTChambPhSegm::m_chamberid
private

parent chamber

Definition at line 131 of file DTChambPhSegm.h.

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

myint8 DTChambPhSegm::m_isFirst
private

first or second track

Definition at line 137 of file DTChambPhSegm.h.

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

myint8 DTChambPhSegm::m_step
private

step number

Definition at line 134 of file DTChambPhSegm.h.

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

const DTTracoTrigData* DTChambPhSegm::m_tracotrig
private

the corresponding traco trigger

Definition at line 140 of file DTChambPhSegm.h.

Referenced by clear(), code(), DeltaPsiR(), K(), oldCode(), operator=(), phi(), phiB(), posMask(), psi(), psiR(), pvCode(), pvK(), setTracoTrig(), tracoNumber(), tracoTrig(), and X().