CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
DTSectCollPhSegm Class Reference

#include <DTSectCollPhSegm.h>

Inheritance diagram for DTSectCollPhSegm:
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...
 
 DTSectCollPhSegm (const DTSectCollPhSegm &)
 Constructor. More...
 
 DTSectCollPhSegm (DTSectCollId scId, int step)
 Constructor. More...
 
 DTSectCollPhSegm (DTSectCollId scId, int step, const DTChambPhSegm *tsPhiTrig, int isFirst)
 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...
 
DTSectCollPhSegmoperator= (const DTSectCollPhSegm &seg)
 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...
 
DTSectCollId SCId () const
 Return SC identifier. More...
 
void setTsPhiTrig (const DTChambPhSegm *tsphitrig, int isFirst)
 Associate a Trigger Server Phi trigger. More...
 
int step () const
 Return step number. More...
 
int tracoNumber () const
 Return parent TRACO number. More...
 
const DTChambPhSegmtsPhiTrig () const
 Return associated Trigger Server Phi trigger. More...
 
float X () const
 Return trigger X parameter. More...
 
 ~DTSectCollPhSegm () 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

myint8 m_isFirst
 
DTSectCollId m_sectcollid
 
myint8 m_step
 
const DTChambPhSegmm_tsphitrig
 

Detailed Description

Muon Sector Collector Trigger Phi candidate

Author
S. Marcellini, D. Bonacorsi

Definition at line 39 of file DTSectCollPhSegm.h.

Constructor & Destructor Documentation

◆ DTSectCollPhSegm() [1/3]

DTSectCollPhSegm::DTSectCollPhSegm ( DTSectCollId  scId,
int  step 
)

Constructor.

\Class: DTSectCollPhSegm.cc

Muon Sector Collector Trigger Phi candidate

Authors: S. Marcellini, D. Bonacorsi Modifications: 11/11/06 C. Battilana: New Syc Functionalities implemented

Definition at line 34 of file DTSectCollPhSegm.cc.

34 : m_sectcollid(scId), m_step(step) { clear(); }

References clear().

◆ DTSectCollPhSegm() [2/3]

DTSectCollPhSegm::DTSectCollPhSegm ( DTSectCollId  scId,
int  step,
const DTChambPhSegm tsPhiTrig,
int  isFirst 
)

Constructor.

Definition at line 36 of file DTSectCollPhSegm.cc.

◆ DTSectCollPhSegm() [3/3]

DTSectCollPhSegm::DTSectCollPhSegm ( const DTSectCollPhSegm seg)

Constructor.

Definition at line 39 of file DTSectCollPhSegm.cc.

◆ ~DTSectCollPhSegm()

DTSectCollPhSegm::~DTSectCollPhSegm ( )
override

Destructor.

Definition at line 45 of file DTSectCollPhSegm.cc.

45 {}

Member Function Documentation

◆ ChamberId()

DTChamberId DTSectCollPhSegm::ChamberId ( ) const
inlineoverridevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 81 of file DTSectCollPhSegm.h.

81 { return m_tsphitrig->ChamberId(); }

References DTChambPhSegm::ChamberId(), and m_tsphitrig.

◆ clear()

void DTSectCollPhSegm::clear ( void  )

Clear.

Definition at line 61 of file DTSectCollPhSegm.cc.

61  {
62  m_tsphitrig = nullptr;
63  m_isFirst = 0;
64 }

References m_isFirst, and m_tsphitrig.

Referenced by DTSectCollPhSegm().

◆ code()

int DTSectCollPhSegm::code ( ) const
inline

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

Definition at line 93 of file DTSectCollPhSegm.h.

93 { return m_tsphitrig->code(); }

References DTChambPhSegm::code(), and m_tsphitrig.

◆ DeltaPsiR()

int DTSectCollPhSegm::DeltaPsiR ( ) const
inline

Return bending angle (bit pattern)

Definition at line 114 of file DTSectCollPhSegm.h.

114 { return m_tsphitrig->DeltaPsiR(); }

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

Referenced by print().

◆ isFirst()

int DTSectCollPhSegm::isFirst ( ) const
inline

Return if it is a first track.

Definition at line 90 of file DTSectCollPhSegm.h.

90 { return m_isFirst == 1; }

References m_isFirst.

Referenced by setTsPhiTrig().

◆ K()

float DTSectCollPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 99 of file DTSectCollPhSegm.h.

99 { return m_tsphitrig->K(); }

References DTChambPhSegm::K(), and m_tsphitrig.

Referenced by print().

◆ oldCode()

int DTSectCollPhSegm::oldCode ( ) const
inline

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

Definition at line 96 of file DTSectCollPhSegm.h.

96 { return m_tsphitrig->oldCode(); }

References m_tsphitrig, and DTChambPhSegm::oldCode().

Referenced by print().

◆ operator=()

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

Assignment operator.

Definition at line 51 of file DTSectCollPhSegm.cc.

51  {
52  if (this != &seg) {
54  m_step = seg.m_step;
56  m_isFirst = seg.m_isFirst;
57  }
58  return *this;
59 }

References m_isFirst, m_sectcollid, m_step, and m_tsphitrig.

◆ phi()

int DTSectCollPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 111 of file DTSectCollPhSegm.h.

111 { return m_tsphitrig->psiR(); }

References m_tsphitrig, and DTChambPhSegm::psiR().

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

◆ phiB()

int DTSectCollPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 117 of file DTSectCollPhSegm.h.

117 { return m_tsphitrig->DeltaPsiR(); }

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

◆ posMask()

int DTSectCollPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 120 of file DTSectCollPhSegm.h.

120 { return m_tsphitrig->posMask(); }

References m_tsphitrig, and DTChambPhSegm::posMask().

Referenced by print().

◆ print()

void DTSectCollPhSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 66 of file DTSectCollPhSegm.cc.

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

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

◆ psi()

int DTSectCollPhSegm::psi ( ) const
inline

Return trigger K parameter converted to angle (bit pattern)

Definition at line 105 of file DTSectCollPhSegm.h.

105 { return m_tsphitrig->psi(); }

References m_tsphitrig, and DTChambPhSegm::psi().

Referenced by print().

◆ psiR()

int DTSectCollPhSegm::psiR ( ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 108 of file DTSectCollPhSegm.h.

108 { return m_tsphitrig->psiR(); }

References m_tsphitrig, and DTChambPhSegm::psiR().

Referenced by print().

◆ pvCode()

int DTSectCollPhSegm::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 DTSectCollPhSegm.h.

123 { return m_tsphitrig->pvCode(); }

References m_tsphitrig, and DTChambPhSegm::pvCode().

◆ pvK()

int DTSectCollPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 126 of file DTSectCollPhSegm.h.

126 { return m_tsphitrig->pvK(); }

References m_tsphitrig, and DTChambPhSegm::pvK().

◆ SCId()

DTSectCollId DTSectCollPhSegm::SCId ( ) const
inline

Return SC identifier.

Definition at line 78 of file DTSectCollPhSegm.h.

78 { return m_sectcollid; }

References m_sectcollid.

◆ setTsPhiTrig()

void DTSectCollPhSegm::setTsPhiTrig ( const DTChambPhSegm tsphitrig,
int  isFirst 
)
inline

Associate a Trigger Server Phi trigger.

Definition at line 58 of file DTSectCollPhSegm.h.

58  {
59  m_tsphitrig = tsphitrig;
61  }

References isFirst(), m_isFirst, and m_tsphitrig.

◆ step()

int DTSectCollPhSegm::step ( ) const
inline

Return step number.

Definition at line 75 of file DTSectCollPhSegm.h.

75 { return m_step; }

References m_step.

Referenced by print().

◆ tracoNumber()

int DTSectCollPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 87 of file DTSectCollPhSegm.h.

87 { return m_tsphitrig->tracoNumber(); }

References m_tsphitrig, and DTChambPhSegm::tracoNumber().

Referenced by print().

◆ tsPhiTrig()

const DTChambPhSegm* DTSectCollPhSegm::tsPhiTrig ( ) const
inline

Return associated Trigger Server Phi trigger.

Definition at line 72 of file DTSectCollPhSegm.h.

72 { return m_tsphitrig; }

References m_tsphitrig.

◆ X()

float DTSectCollPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 102 of file DTSectCollPhSegm.h.

102 { return m_tsphitrig->X(); }

References m_tsphitrig, and DTChambPhSegm::X().

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

Member Data Documentation

◆ m_isFirst

myint8 DTSectCollPhSegm::m_isFirst
private

Definition at line 136 of file DTSectCollPhSegm.h.

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

◆ m_sectcollid

DTSectCollId DTSectCollPhSegm::m_sectcollid
private

Definition at line 130 of file DTSectCollPhSegm.h.

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

◆ m_step

myint8 DTSectCollPhSegm::m_step
private

Definition at line 133 of file DTSectCollPhSegm.h.

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

◆ m_tsphitrig

const DTChambPhSegm* DTSectCollPhSegm::m_tsphitrig
private
DTSectCollPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:105
DTChambPhSegm::pvCode
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:118
DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
DTChambPhSegm::code
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:88
DTSectCollPhSegm::tsPhiTrig
const DTChambPhSegm * tsPhiTrig() const
Return associated Trigger Server Phi trigger.
Definition: DTSectCollPhSegm.h:72
DTChambPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
DTSectCollPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTSectCollPhSegm.h:102
DTSectCollPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTSectCollPhSegm.h:114
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
DTSectCollPhSegm::m_tsphitrig
const DTChambPhSegm * m_tsphitrig
Definition: DTSectCollPhSegm.h:139
DTChambPhSegm::pvK
int pvK() const
Return the preview K.
Definition: DTChambPhSegm.h:121
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::tracoTrig
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
DTSectCollPhSegm::isFirst
int isFirst() const
Return if it is a first track.
Definition: DTSectCollPhSegm.h:90
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::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:100
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
DTSectCollPhSegm::m_step
myint8 m_step
Definition: DTSectCollPhSegm.h:133
DTChambPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:109
DTSectCollPhSegm::step
int step() const
Return step number.
Definition: DTSectCollPhSegm.h:75
DTConfig::NTCTSS
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:40
DTChambPhSegm::ChamberId
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76
DTSectCollPhSegm::m_sectcollid
DTSectCollId m_sectcollid
Definition: DTSectCollPhSegm.h:130
DTSectCollPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTSectCollPhSegm.h:87
DTChambPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
DTSectCollPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:108
DTSectCollPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTSectCollPhSegm.h:120
DTSectCollPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTSectCollPhSegm.h:96
DTChambPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:103
DTSectCollPhSegm::m_isFirst
myint8 m_isFirst
Definition: DTSectCollPhSegm.h:136
DTSectCollPhSegm::clear
void clear()
Clear.
Definition: DTSectCollPhSegm.cc:61
DTTrigData::wheel
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
DTSectCollPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTSectCollPhSegm.h:99