CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSectCollPhSegm.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 
17 
18 //-----------------------
19 // This Class's Header --
20 //-----------------------
22 
23 //-------------------------------
24 // Collaborating Class Headers --
25 //-------------------------------
26 
27 //---------------
28 // C++ Headers --
29 //---------------
30 #include <iostream>
31 
32 //----------------
33 // Constructors --
34 //----------------
36  m_sectcollid(scId), m_step(step) {
37  clear();
38 }
39 
41  const DTChambPhSegm* tsPhiTrig,
42  int isFirst) :
43  m_sectcollid(scId), m_step(step),
44  m_isFirst(isFirst),
45  m_tsphitrig(tsPhiTrig) {
46 }
47 
49  m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_isFirst(seg.m_isFirst),
50  m_tsphitrig(seg.m_tsphitrig) {
51 }
52 
53 //--------------
54 // Destructor --
55 //--------------
57 }
58 
59 //--------------
60 // Operations --
61 //--------------
62 
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 }
73 
74 void
76  m_tsphitrig = 0;
77  m_isFirst = 0;
78 }
79 
80 void
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 }
93 
94 
95 
96 
97 
98 
const DTChambPhSegm * m_tsphitrig
DTSectCollPhSegm(DTSectCollId scId, int step)
Constructor.
int wheel() const
Return wheel number.
Definition: DTTrigData.h:48
int psi() const
Return trigger K parameter converted to angle (bit pattern)
isFirst
Definition: cuy.py:417
int tracoNumber() const
Return parent TRACO number.
void clear()
Clear.
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
~DTSectCollPhSegm()
Destructor.
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.
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
void print() const
Print.
DTSectCollId m_sectcollid
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.