CMS 3D CMS Logo

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 override
 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 (const DTChambPhSegm &)
 Constructor *‍/. More...
 
 DTChambPhSegm (DTChamberId, int)
 Constructor. More...
 
 DTChambPhSegm (DTChamberId, int, const DTTracoTrigData *, int)
 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 override
 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 () override
 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() [1/3]

DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step 
)

Constructor.

Definition at line 35 of file DTChambPhSegm.cc.

35 : m_chamberid(chamberid), m_step(step) { clear(); }

References clear().

◆ DTChambPhSegm() [2/3]

DTChambPhSegm::DTChambPhSegm ( DTChamberId  chamberid,
int  step,
const DTTracoTrigData tracotrig,
int  isfirst 
)

Constructor.

Definition at line 37 of file DTChambPhSegm.cc.

38  : m_chamberid(chamberid), m_step(step), m_isFirst(isfirst), m_tracotrig(tracotrig) {}

◆ DTChambPhSegm() [3/3]

DTChambPhSegm::DTChambPhSegm ( const DTChambPhSegm seg)

Constructor *‍/.

Definition at line 40 of file DTChambPhSegm.cc.

◆ ~DTChambPhSegm()

DTChambPhSegm::~DTChambPhSegm ( )
override

Destructor.

Definition at line 46 of file DTChambPhSegm.cc.

46 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTChambPhSegm::ChamberId ( ) const
inlineoverridevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 76 of file DTChambPhSegm.h.

76 { return m_chamberid; }

References m_chamberid.

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

◆ clear()

void DTChambPhSegm::clear ( void  )

Clear.

Definition at line 62 of file DTChambPhSegm.cc.

62  {
63  m_tracotrig = nullptr;
64  m_isFirst = 0;
65 }

References m_isFirst, and m_tracotrig.

Referenced by DTChambPhSegm().

◆ code()

int DTChambPhSegm::code ( ) const
inline

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

Definition at line 88 of file DTChambPhSegm.h.

88 { return m_tracotrig->qdec(); }

References m_tracotrig, and DTTracoTrigData::qdec().

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

◆ DeltaPsiR()

int DTChambPhSegm::DeltaPsiR ( ) const
inline

Return bending angle (bit pattern)

Definition at line 109 of file DTChambPhSegm.h.

109 { return m_tracotrig->DeltaPsiR(); }

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

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

◆ isFirst()

int DTChambPhSegm::isFirst ( ) const
inline

Return if it is a first track.

Definition at line 85 of file DTChambPhSegm.h.

85 { return m_isFirst == 1; }

References m_isFirst.

Referenced by setTracoTrig().

◆ K()

float DTChambPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 94 of file DTChambPhSegm.h.

94 { return m_tracotrig->K(); }

References DTTracoTrigData::K(), and m_tracotrig.

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

◆ oldCode()

int DTChambPhSegm::oldCode ( ) const
inline

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

Definition at line 91 of file DTChambPhSegm.h.

91 { return m_tracotrig->code(); }

References DTTracoTrigData::code(), and m_tracotrig.

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

◆ operator=()

DTChambPhSegm & DTChambPhSegm::operator= ( const DTChambPhSegm seg)

Assignment operator.

Definition at line 52 of file DTChambPhSegm.cc.

52  {
53  if (this != &seg) {
55  m_step = seg.m_step;
57  m_isFirst = seg.m_isFirst;
58  }
59  return *this;
60 }

References m_chamberid, m_isFirst, m_step, and m_tracotrig.

◆ phi()

int DTChambPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 106 of file DTChambPhSegm.h.

106 { return m_tracotrig->psiR(); }

References m_tracotrig, and DTTracoTrigData::psiR().

Referenced by Particle.Particle::__str__(), and ntupleDataFormat.Track::phiPull().

◆ phiB()

int DTChambPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 112 of file DTChambPhSegm.h.

112 { return m_tracotrig->DeltaPsiR(); }

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

◆ posMask()

int DTChambPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 115 of file DTChambPhSegm.h.

115 { return m_tracotrig->posMask(); }

References m_tracotrig, and DTTracoTrigData::posMask().

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

◆ print()

void DTChambPhSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 67 of file DTChambPhSegm.cc.

67  {
68  std::cout << "TP at step " << step() << ", in wheel " << wheel();
69  std::cout << ", station " << station() << ", sector " << sector() << std::endl;
70  std::cout << "TSS " << (tracoTrig()->tracoNumber() - 1) / DTConfigTSPhi::NTCTSS + 1;
71  std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
72  std::cout << " --> code " << oldCode() << ", K " << K();
73  std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
74  std::cout << "inner bti equation=" << tracoTrig()->eqIn() << " outer bti equation=" << tracoTrig()->eqOut()
75  << std::endl;
76  std::cout << " psi " << psi() << ", psiR " << psiR();
77  std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
78 }

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

◆ psi()

int DTChambPhSegm::psi ( ) const
inline

Return trigger K parameter converted to angle (bit pattern)

Definition at line 100 of file DTChambPhSegm.h.

100 { return m_tracotrig->psi(); }

References m_tracotrig, and DTTracoTrigData::psi().

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

◆ psiR()

int DTChambPhSegm::psiR ( ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 103 of file DTChambPhSegm.h.

103 { return m_tracotrig->psiR(); }

References m_tracotrig, and DTTracoTrigData::psiR().

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

◆ pvCode()

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 118 of file DTChambPhSegm.h.

118 { return m_tracotrig->pvCode(); }

References m_tracotrig, and DTTracoTrigData::pvCode().

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

◆ pvK()

int DTChambPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 121 of file DTChambPhSegm.h.

121 { return m_tracotrig->pvK(); }

References m_tracotrig, and DTTracoTrigData::pvK().

Referenced by DTSectCollPhSegm::pvK().

◆ setTracoTrig()

void DTChambPhSegm::setTracoTrig ( const DTTracoTrigData tracotrig,
int  isFirst 
)
inline

Associate a TRACO trigger.

Definition at line 61 of file DTChambPhSegm.h.

61  {
62  m_tracotrig = tracotrig;
64  }

References isFirst(), m_isFirst, and m_tracotrig.

◆ step()

int DTChambPhSegm::step ( ) const
inline

Return step number.

Definition at line 73 of file DTChambPhSegm.h.

73 { return m_step; }

References m_step.

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

◆ tracoNumber()

int DTChambPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 82 of file DTChambPhSegm.h.

82 { return m_tracotrig->tracoNumber(); }

References m_tracotrig, and DTTracoTrigData::tracoNumber().

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

◆ tracoTrig()

const DTTracoTrigData* DTChambPhSegm::tracoTrig ( ) const
inline

Return associated TRACO trigger.

Definition at line 70 of file DTChambPhSegm.h.

70 { return m_tracotrig; }

References m_tracotrig.

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

◆ X()

float DTChambPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 97 of file DTChambPhSegm.h.

97 { return m_tracotrig->X(); }

References m_tracotrig, and DTTracoTrigData::X().

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

Member Data Documentation

◆ m_chamberid

DTChamberId DTChambPhSegm::m_chamberid
private

parent chamber

Definition at line 125 of file DTChambPhSegm.h.

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

◆ m_isFirst

myint8 DTChambPhSegm::m_isFirst
private

first or second track

Definition at line 131 of file DTChambPhSegm.h.

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

◆ m_step

myint8 DTChambPhSegm::m_step
private

step number

Definition at line 128 of file DTChambPhSegm.h.

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

◆ m_tracotrig

const DTTracoTrigData* DTChambPhSegm::m_tracotrig
private

the corresponding traco trigger

Definition at line 134 of file DTChambPhSegm.h.

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

DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
DTChambPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
step
step
Definition: StallMonitor.cc:94
DTTrigData::sector
int sector() const
Return sector number.
Definition: DTTrigData.h:53
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTTracoTrigData::pvCode
int pvCode() const
Return the preview code.
Definition: DTTracoTrigData.h:186
DTTrigData::station
int station() const
Return station number.
Definition: DTTrigData.h:50
DTChambPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
DTChambPhSegm::m_chamberid
DTChamberId m_chamberid
parent chamber
Definition: DTChambPhSegm.h:125
DTChambPhSegm::clear
void clear()
Clear.
Definition: DTChambPhSegm.cc:62
DTChambPhSegm::tracoTrig
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
DTChambPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
DTTracoTrigData::eqIn
int eqIn() const
Return bti trigger equation of inner segment.
Definition: DTTracoTrigData.h:177
DTChambPhSegm::isFirst
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:85
DTTracoTrigData::pvK
int pvK() const
Return the preview K.
Definition: DTTracoTrigData.h:189
DTChambPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:100
DTTracoTrigData::psi
int psi() const
Return trigger K parameter converted to angle.
Definition: DTTracoTrigData.h:204
DTChambPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTChambPhSegm.h:115
DTTracoTrigData::eqOut
int eqOut() const
Return bti trigger equation of outer segment.
Definition: DTTracoTrigData.h:180
DTChambPhSegm::m_tracotrig
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
Definition: DTChambPhSegm.h:134
DTTracoTrigData::psiR
int psiR() const
Return trigger X parameter converted to angle.
Definition: DTTracoTrigData.h:207
DTChambPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:109
DTTracoTrigData::K
int K() const
Return trigger K parameter.
Definition: DTTracoTrigData.h:198
DTTracoTrigData::qdec
int qdec() const
Return the trigger code in new format.
Definition: DTTracoTrigData.cc:41
DTTracoTrigData::X
int X() const
Return trigger X parameter.
Definition: DTTracoTrigData.h:201
DTConfig::NTCTSS
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:40
DTTracoTrigData::code
int code() const
Return trigger code.
Definition: DTTracoTrigData.h:165
DTChambPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
DTChambPhSegm::step
int step() const
Return step number.
Definition: DTChambPhSegm.h:73
DTTracoTrigData::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTTracoTrigData.h:168
DTChambPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:103
DTChambPhSegm::m_isFirst
myint8 m_isFirst
first or second track
Definition: DTChambPhSegm.h:131
DTTracoTrigData::DeltaPsiR
int DeltaPsiR() const
Return DeltaPsiR.
Definition: DTTracoTrigData.h:210
DTTrigData::wheel
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
DTChambPhSegm::m_step
myint8 m_step
step number
Definition: DTChambPhSegm.h:128