CMS 3D CMS Logo

DTChambPhSegm.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTChambPhSegm.cpp
4 //
5 // Description: Muon Chamber Trigger Phi candidate
6 //
7 //
8 // Author List:
9 // C. Grandi
10 // Modifications:
11 //
12 //
13 //--------------------------------------------------
14 
15 //-----------------------
16 // This Class's Header --
17 //-----------------------
22 
23 //-------------------------------
24 // Collaborating Class Headers --
25 //-------------------------------
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <iostream>
31 
32 //----------------
33 // Constructors --
34 //----------------
36  : m_chamberid(chamberid), m_step(step) {
37  clear();
38 }
39 
41  const DTTracoTrigData *tracotrig, int isfirst)
42  : m_chamberid(chamberid), m_step(step), m_isFirst(isfirst),
43  m_tracotrig(tracotrig) {}
44 
46  : m_chamberid(seg.m_chamberid), m_step(seg.m_step),
48 
49 //--------------
50 // Destructor --
51 //--------------
53 
54 //--------------
55 // Operations --
56 //--------------
57 
59  if (this != &seg) {
61  m_step = seg.m_step;
63  m_isFirst = seg.m_isFirst;
64  }
65  return *this;
66 }
67 
69  m_tracotrig = nullptr;
70  m_isFirst = 0;
71 }
72 
73 void DTChambPhSegm::print() const {
74  std::cout << "TP at step " << step() << ", in wheel " << wheel();
75  std::cout << ", station " << station() << ", sector " << sector()
76  << std::endl;
77  std::cout << "TSS "
78  << (tracoTrig()->tracoNumber() - 1) / DTConfigTSPhi::NTCTSS + 1;
79  std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
80  std::cout << " --> code " << oldCode() << ", K " << K();
81  std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
82  std::cout << "inner bti equation=" << tracoTrig()->eqIn()
83  << " outer bti equation=" << tracoTrig()->eqOut() << std::endl;
84  std::cout << " psi " << psi() << ", psiR " << psiR();
85  std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
86 }
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:84
int wheel() const
Return wheel number.
Definition: DTTrigData.h:48
int tracoNumber() const
Return parent TRACO number.
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
int psi() const
Return trigger K parameter converted to angle (bit pattern)
int step() const
Return step number.
Definition: DTChambPhSegm.h:75
void print() const override
Print.
DTChamberId m_chamberid
parent chamber
myint8 m_step
step number
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:41
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:93
int sector() const
Return sector number.
Definition: DTTrigData.h:54
int station() const
Return station number.
Definition: DTTrigData.h:51
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:99
DTChambPhSegm(DTChamberId, int)
Constructor.
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:96
int posMask() const
Return correlator output code (position of segments)
int eqOut() const
Return bti trigger equation of outer segment.
int DeltaPsiR() const
Return bending angle (bit pattern)
~DTChambPhSegm() override
Destructor.
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:72
step
Definition: StallMonitor.cc:94
int eqIn() const
Return bti trigger equation of inner segment.
myint8 m_isFirst
first or second track
void clear()
Clear.