test
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
DTSectCollPhSegm Class Reference

#include <DTSectCollPhSegm.h>

Inheritance diagram for DTSectCollPhSegm:
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...
 
 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
 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 ()
 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::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 35 of file DTSectCollPhSegm.cc.

References clear().

35  :
36  m_sectcollid(scId), m_step(step) {
37  clear();
38 }
void clear()
Clear.
int step() const
Return step number.
DTSectCollId m_sectcollid
DTSectCollPhSegm::DTSectCollPhSegm ( DTSectCollId  scId,
int  step,
const DTChambPhSegm tsPhiTrig,
int  isFirst 
)

Constructor.

Definition at line 40 of file DTSectCollPhSegm.cc.

42  :
43  m_sectcollid(scId), m_step(step),
45  m_tsphitrig(tsPhiTrig) {
46 }
const DTChambPhSegm * m_tsphitrig
int step() const
Return step number.
DTSectCollId m_sectcollid
int isFirst() const
Return if it is a first track.
DTSectCollPhSegm::DTSectCollPhSegm ( const DTSectCollPhSegm seg)

Constructor.

Definition at line 48 of file DTSectCollPhSegm.cc.

48  :
51 }
const DTChambPhSegm * m_tsphitrig
DTSectCollId m_sectcollid
DTSectCollPhSegm::~DTSectCollPhSegm ( )

Destructor.

Definition at line 56 of file DTSectCollPhSegm.cc.

56  {
57 }

Member Function Documentation

DTChamberId DTSectCollPhSegm::ChamberId ( ) const
inlinevirtual

Return chamber identifier.

Implements DTTrigData.

Definition at line 84 of file DTSectCollPhSegm.h.

References DTChambPhSegm::ChamberId(), and m_tsphitrig.

84 { return m_tsphitrig->ChamberId(); }
const DTChambPhSegm * m_tsphitrig
DTChamberId ChamberId() const
Return chamber identifier.
Definition: DTChambPhSegm.h:81
void DTSectCollPhSegm::clear ( void  )

Clear.

Definition at line 75 of file DTSectCollPhSegm.cc.

References m_isFirst, and m_tsphitrig.

Referenced by DTSectCollPhSegm().

75  {
76  m_tsphitrig = 0;
77  m_isFirst = 0;
78 }
const DTChambPhSegm * m_tsphitrig
int DTSectCollPhSegm::code ( ) const
inline

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

Definition at line 96 of file DTSectCollPhSegm.h.

References DTChambPhSegm::code(), and m_tsphitrig.

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

Return bending angle (bit pattern)

Definition at line 117 of file DTSectCollPhSegm.h.

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

Referenced by print().

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

Return if it is a first track.

Definition at line 93 of file DTSectCollPhSegm.h.

References m_isFirst.

Referenced by setTsPhiTrig().

93 { return m_isFirst==1; }
float DTSectCollPhSegm::K ( ) const
inline

Return trigger K parameter.

Definition at line 102 of file DTSectCollPhSegm.h.

References DTChambPhSegm::K(), and m_tsphitrig.

Referenced by print().

102 { return m_tsphitrig->K(); }
const DTChambPhSegm * m_tsphitrig
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:99
int DTSectCollPhSegm::oldCode ( ) const
inline

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

Definition at line 99 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::oldCode().

Referenced by print().

99 { 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:96
DTSectCollPhSegm & DTSectCollPhSegm::operator= ( const DTSectCollPhSegm seg)

Assignment operator.

Definition at line 64 of file DTSectCollPhSegm.cc.

References m_isFirst, m_sectcollid, m_step, and m_tsphitrig.

64  {
65  if(this != &seg){
67  m_step = seg.m_step;
68  m_tsphitrig = seg.m_tsphitrig ;
69  m_isFirst = seg.m_isFirst ;
70  }
71  return *this;
72 }
const DTChambPhSegm * m_tsphitrig
DTSectCollId m_sectcollid
int DTSectCollPhSegm::phi ( void  ) const
inline

Return trigger X parameter converted to angle (bit pattern)

Definition at line 114 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::psiR().

114 { return m_tsphitrig->psiR(); }
const DTChambPhSegm * m_tsphitrig
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
int DTSectCollPhSegm::phiB ( ) const
inline

Return bending angle (bit pattern)

Definition at line 120 of file DTSectCollPhSegm.h.

References DTChambPhSegm::DeltaPsiR(), and m_tsphitrig.

120 { return m_tsphitrig->DeltaPsiR(); }
const DTChambPhSegm * m_tsphitrig
int DeltaPsiR() const
Return bending angle (bit pattern)
int DTSectCollPhSegm::posMask ( ) const
inline

Return correlator output code (position of segments)

Definition at line 123 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::posMask().

Referenced by print().

123 { return m_tsphitrig->posMask(); }
const DTChambPhSegm * m_tsphitrig
int posMask() const
Return correlator output code (position of segments)
void DTSectCollPhSegm::print ( void  ) const
virtual

Print.

Implements DTTrigData.

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

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

Return trigger K parameter converted to angle (bit pattern)

Definition at line 108 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::psi().

Referenced by print().

108 { return m_tsphitrig->psi(); }
const DTChambPhSegm * m_tsphitrig
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int DTSectCollPhSegm::psiR ( ) 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 print().

111 { return m_tsphitrig->psiR(); }
const DTChambPhSegm * m_tsphitrig
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
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 126 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::pvCode().

126 { 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)
int DTSectCollPhSegm::pvK ( ) const
inline

Return the preview K.

Definition at line 129 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::pvK().

129 { return m_tsphitrig->pvK(); }
const DTChambPhSegm * m_tsphitrig
int pvK() const
Return the preview K.
DTSectCollId DTSectCollPhSegm::SCId ( ) const
inline

Return SC identifier.

Definition at line 81 of file DTSectCollPhSegm.h.

References m_sectcollid.

81 { return m_sectcollid; }
DTSectCollId m_sectcollid
void DTSectCollPhSegm::setTsPhiTrig ( const DTChambPhSegm tsphitrig,
int  isFirst 
)
inline

Associate a Trigger Server Phi trigger.

Definition at line 61 of file DTSectCollPhSegm.h.

References isFirst(), m_isFirst, and m_tsphitrig.

61  {
62  m_tsphitrig=tsphitrig;
64  }
const DTChambPhSegm * m_tsphitrig
int isFirst() const
Return if it is a first track.
int DTSectCollPhSegm::step ( ) const
inline

Return step number.

Definition at line 78 of file DTSectCollPhSegm.h.

References m_step.

Referenced by print().

78 { return m_step; }
int DTSectCollPhSegm::tracoNumber ( ) const
inline

Return parent TRACO number.

Definition at line 90 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::tracoNumber().

Referenced by print().

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

Return associated Trigger Server Phi trigger.

Definition at line 75 of file DTSectCollPhSegm.h.

References m_tsphitrig.

75 { return m_tsphitrig; }
const DTChambPhSegm * m_tsphitrig
float DTSectCollPhSegm::X ( ) const
inline

Return trigger X parameter.

Definition at line 105 of file DTSectCollPhSegm.h.

References m_tsphitrig, and DTChambPhSegm::X().

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

105 { return m_tsphitrig->X(); }
const DTChambPhSegm * m_tsphitrig
float X() const
Return trigger X parameter.

Member Data Documentation

myint8 DTSectCollPhSegm::m_isFirst
private

Definition at line 139 of file DTSectCollPhSegm.h.

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

DTSectCollId DTSectCollPhSegm::m_sectcollid
private

Definition at line 133 of file DTSectCollPhSegm.h.

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

myint8 DTSectCollPhSegm::m_step
private

Definition at line 136 of file DTSectCollPhSegm.h.

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

const DTChambPhSegm* DTSectCollPhSegm::m_tsphitrig
private