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 (DTSectCollId scId, int step)
 Constructor. More...
 
 DTSectCollPhSegm (DTSectCollId scId, int step, const DTChambPhSegm *tsPhiTrig, int isFirst)
 Constructor. More...
 
 DTSectCollPhSegm (const DTSectCollPhSegm &)
 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.

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

References clear().

34 : m_sectcollid(scId), m_step(step) { clear(); }
void clear()
Clear.
DTSectCollId m_sectcollid
step
Definition: StallMonitor.cc:98

◆ DTSectCollPhSegm() [2/3]

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

Constructor.

Definition at line 36 of file DTSectCollPhSegm.cc.

const DTChambPhSegm * m_tsphitrig
int isFirst() const
Return if it is a first track.
DTSectCollId m_sectcollid
step
Definition: StallMonitor.cc:98
const DTChambPhSegm * tsPhiTrig() const
Return associated Trigger Server Phi trigger.

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

References DTChambPhSegm::ChamberId(), and m_tsphitrig.

81 { return m_tsphitrig->ChamberId(); }
const DTChambPhSegm * m_tsphitrig
DTChamberId ChamberId() const override
Return chamber identifier.
Definition: DTChambPhSegm.h:76

◆ clear()

void DTSectCollPhSegm::clear ( void  )

Clear.

Definition at line 61 of file DTSectCollPhSegm.cc.

References m_isFirst, and m_tsphitrig.

Referenced by DTSectCollPhSegm().

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

◆ code()

int DTSectCollPhSegm::code ( ) const
inline

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

Definition at line 93 of file DTSectCollPhSegm.h.

References DTChambPhSegm::code(), and m_tsphitrig.

93 { return m_tsphitrig->code(); }
const DTChambPhSegm * m_tsphitrig
int code() const
Return trigger code (MTTF input format [0,7])
Definition: DTChambPhSegm.h:88

◆ DeltaPsiR()

int DTSectCollPhSegm::DeltaPsiR ( ) const
inline

Return bending angle (bit pattern)

Definition at line 114 of file DTSectCollPhSegm.h.

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

Referenced by print().

114 { return m_tsphitrig->DeltaPsiR(); }
const DTChambPhSegm * m_tsphitrig
int DeltaPsiR() const
Return bending angle (bit pattern)

◆ isFirst()

int DTSectCollPhSegm::isFirst ( ) const
inline

Return if it is a first track.

Definition at line 90 of file DTSectCollPhSegm.h.

References m_isFirst.

Referenced by setTsPhiTrig().

90 { return m_isFirst == 1; }

◆ K()

float DTSectCollPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 99 of file DTSectCollPhSegm.h.

References DTChambPhSegm::K(), and m_tsphitrig.

Referenced by print().

99 { return m_tsphitrig->K(); }
const DTChambPhSegm * m_tsphitrig
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94

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

References m_tsphitrig, and DTChambPhSegm::oldCode().

Referenced by print().

96 { return m_tsphitrig->oldCode(); }
const DTChambPhSegm * m_tsphitrig
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91

◆ operator=()

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

Assignment operator.

Definition at line 51 of file DTSectCollPhSegm.cc.

References m_isFirst, m_sectcollid, m_step, and m_tsphitrig.

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

◆ phi()

int DTSectCollPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 111 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::psiR().

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

111 { return m_tsphitrig->psiR(); }
const DTChambPhSegm * m_tsphitrig
int psiR() const
Return trigger X parameter converted to angle (bit pattern)

◆ phiB()

int DTSectCollPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 117 of file DTSectCollPhSegm.h.

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

117 { return m_tsphitrig->DeltaPsiR(); }
const DTChambPhSegm * m_tsphitrig
int DeltaPsiR() const
Return bending angle (bit pattern)

◆ posMask()

int DTSectCollPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 120 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::posMask().

Referenced by print().

120 { return m_tsphitrig->posMask(); }
const DTChambPhSegm * m_tsphitrig
int posMask() const
Return correlator output code (position of segments)

◆ print()

void DTSectCollPhSegm::print ( void  ) const
overridevirtual

Print.

Implements DTTrigData.

Definition at line 66 of file DTSectCollPhSegm.cc.

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

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 }
int DeltaPsiR() const
Return bending angle (bit pattern)
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
float X() const
Return trigger X parameter.
float K() const
Return trigger K parameter.
int sector() const
Return sector number.
Definition: DTTrigData.h:53
const DTChambPhSegm * m_tsphitrig
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.
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 tracoNumber() const
Return parent TRACO number.
int step() const
Return step number.
int posMask() const
Return correlator output code (position of segments)
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
int eqOut() const
Return bti trigger equation of outer segment.
int eqIn() const
Return bti trigger equation of inner segment.

◆ psi()

int DTSectCollPhSegm::psi ( ) const
inline

Return trigger K parameter converted to angle (bit pattern)

Definition at line 105 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::psi().

Referenced by print().

105 { return m_tsphitrig->psi(); }
const DTChambPhSegm * m_tsphitrig
int psi() const
Return trigger K parameter converted to angle (bit pattern)

◆ psiR()

int DTSectCollPhSegm::psiR ( ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 108 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::psiR().

Referenced by print().

108 { return m_tsphitrig->psiR(); }
const DTChambPhSegm * m_tsphitrig
int psiR() const
Return trigger X parameter converted to angle (bit pattern)

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

References m_tsphitrig, and DTChambPhSegm::pvCode().

123 { return m_tsphitrig->pvCode(); }
const DTChambPhSegm * m_tsphitrig
int pvCode() const
Return the preview code (10*inner_code or outer_code; X_code=1,2,3,4,8)

◆ pvK()

int DTSectCollPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 126 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::pvK().

126 { return m_tsphitrig->pvK(); }
const DTChambPhSegm * m_tsphitrig
int pvK() const
Return the preview K.

◆ SCId()

DTSectCollId DTSectCollPhSegm::SCId ( ) const
inline

Return SC identifier.

Definition at line 78 of file DTSectCollPhSegm.h.

References m_sectcollid.

78 { return m_sectcollid; }
DTSectCollId 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.

References isFirst(), m_isFirst, and m_tsphitrig.

58  {
59  m_tsphitrig = tsphitrig;
61  }
const DTChambPhSegm * m_tsphitrig
int isFirst() const
Return if it is a first track.

◆ step()

int DTSectCollPhSegm::step ( ) const
inline

Return step number.

Definition at line 75 of file DTSectCollPhSegm.h.

References m_step.

Referenced by print().

75 { return m_step; }

◆ tracoNumber()

int DTSectCollPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 87 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::tracoNumber().

Referenced by print().

87 { return m_tsphitrig->tracoNumber(); }
const DTChambPhSegm * m_tsphitrig
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82

◆ tsPhiTrig()

const DTChambPhSegm* DTSectCollPhSegm::tsPhiTrig ( ) const
inline

Return associated Trigger Server Phi trigger.

Definition at line 72 of file DTSectCollPhSegm.h.

References m_tsphitrig.

72 { return m_tsphitrig; }
const DTChambPhSegm * m_tsphitrig

◆ X()

float DTSectCollPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 102 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::X().

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

102 { return m_tsphitrig->X(); }
const DTChambPhSegm * m_tsphitrig
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97

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