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

References clear().

35 : m_chamberid(chamberid), m_step(step) { clear(); }
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
step
Definition: StallMonitor.cc:98
void clear()
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) {}
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
step
Definition: StallMonitor.cc:98
myint8 m_isFirst
first or second track

◆ DTChambPhSegm() [3/3]

DTChambPhSegm::DTChambPhSegm ( const DTChambPhSegm seg)

Constructor */.

Definition at line 40 of file DTChambPhSegm.cc.

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::~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.

References m_chamberid.

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

76 { return m_chamberid; }
DTChamberId m_chamberid
parent chamber

◆ clear()

void DTChambPhSegm::clear ( void  )

Clear.

Definition at line 62 of file DTChambPhSegm.cc.

References m_isFirst, and m_tracotrig.

Referenced by DTChambPhSegm().

62  {
63  m_tracotrig = nullptr;
64  m_isFirst = 0;
65 }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
myint8 m_isFirst
first or second track

◆ code()

int DTChambPhSegm::code ( ) const
inline

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

Definition at line 88 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::qdec().

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

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

◆ DeltaPsiR()

int DTChambPhSegm::DeltaPsiR ( ) const
inline

Return bending angle (bit pattern)

Definition at line 109 of file DTChambPhSegm.h.

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

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

109 { return m_tracotrig->DeltaPsiR(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int DeltaPsiR() const
Return DeltaPsiR.

◆ isFirst()

int DTChambPhSegm::isFirst ( ) const
inline

Return if it is a first track.

Definition at line 85 of file DTChambPhSegm.h.

References m_isFirst.

Referenced by setTracoTrig().

85 { return m_isFirst == 1; }
myint8 m_isFirst
first or second track

◆ K()

float DTChambPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 94 of file DTChambPhSegm.h.

References DTTracoTrigData::K(), and m_tracotrig.

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

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

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

References DTTracoTrigData::code(), and m_tracotrig.

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

91 { return m_tracotrig->code(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int code() const
Return trigger code.

◆ operator=()

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

Assignment operator.

Definition at line 52 of file DTChambPhSegm.cc.

References m_chamberid, m_isFirst, m_step, and m_tracotrig.

52  {
53  if (this != &seg) {
55  m_step = seg.m_step;
57  m_isFirst = seg.m_isFirst;
58  }
59  return *this;
60 }
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

◆ phi()

int DTChambPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 106 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psiR().

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

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

◆ phiB()

int DTChambPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 112 of file DTChambPhSegm.h.

References DTTracoTrigData::DeltaPsiR(), and m_tracotrig.

112 { return m_tracotrig->DeltaPsiR(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int DeltaPsiR() const
Return DeltaPsiR.

◆ posMask()

int DTChambPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 115 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::posMask().

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

115 { return m_tracotrig->posMask(); }
int posMask() const
Return correlator output code (position of segments)
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger

◆ print()

void DTChambPhSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 67 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().

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 }
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
int sector() const
Return sector number.
Definition: DTTrigData.h:53
int psi() const
Return trigger K parameter converted to angle (bit pattern)
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:40
int station() const
Return station number.
Definition: DTTrigData.h:50
int posMask() const
Return correlator output code (position of segments)
int tracoNumber() const
Return parent TRACO number.
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int step() const
Return step number.
Definition: DTChambPhSegm.h:73
int DeltaPsiR() const
Return bending angle (bit pattern)
int eqOut() const
Return bti trigger equation of outer segment.
int eqIn() const
Return bti trigger equation of inner segment.

◆ psi()

int DTChambPhSegm::psi ( ) const
inline

Return trigger K parameter converted to angle (bit pattern)

Definition at line 100 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psi().

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

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

◆ psiR()

int DTChambPhSegm::psiR ( ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 103 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::psiR().

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

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

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

References m_tracotrig, and DTTracoTrigData::pvCode().

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

118 { return m_tracotrig->pvCode(); }
int pvCode() const
Return the preview code.
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger

◆ pvK()

int DTChambPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 121 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::pvK().

Referenced by DTSectCollPhSegm::pvK().

121 { return m_tracotrig->pvK(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int pvK() const
Return the preview K.

◆ setTracoTrig()

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

Associate a TRACO trigger.

Definition at line 61 of file DTChambPhSegm.h.

References isFirst(), m_isFirst, and m_tracotrig.

61  {
62  m_tracotrig = tracotrig;
64  }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int isFirst() const
Return if it is a first track.
Definition: DTChambPhSegm.h:85
myint8 m_isFirst
first or second track

◆ step()

int DTChambPhSegm::step ( ) const
inline

Return step number.

Definition at line 73 of file DTChambPhSegm.h.

References m_step.

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

73 { return m_step; }
myint8 m_step
step number

◆ tracoNumber()

int DTChambPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 82 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::tracoNumber().

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

82 { return m_tracotrig->tracoNumber(); }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int tracoNumber() const
Return parent TRACO number.

◆ tracoTrig()

const DTTracoTrigData* DTChambPhSegm::tracoTrig ( ) const
inline

Return associated TRACO trigger.

Definition at line 70 of file DTChambPhSegm.h.

References m_tracotrig.

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

70 { return m_tracotrig; }
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger

◆ X()

float DTChambPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 97 of file DTChambPhSegm.h.

References m_tracotrig, and DTTracoTrigData::X().

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

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

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