CMS 3D CMS Logo

DTSectCollPhSegm.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
14 //
15 //--------------------------------------------------
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
21 
22 //-------------------------------
23 // Collaborating Class Headers --
24 //-------------------------------
25 
26 //---------------
27 // C++ Headers --
28 //---------------
29 #include <iostream>
30 
31 //----------------
32 // Constructors --
33 //----------------
34 DTSectCollPhSegm::DTSectCollPhSegm(DTSectCollId scId, int step) : m_sectcollid(scId), m_step(step) { clear(); }
35 
37  : m_sectcollid(scId), m_step(step), m_isFirst(isFirst), m_tsphitrig(tsPhiTrig) {}
38 
40  : m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), m_tsphitrig(seg.m_tsphitrig) {}
41 
42 //--------------
43 // Destructor --
44 //--------------
46 
47 //--------------
48 // Operations --
49 //--------------
50 
52  if (this != &seg) {
54  m_step = seg.m_step;
56  m_isFirst = seg.m_isFirst;
57  }
58  return *this;
59 }
60 
62  m_tsphitrig = nullptr;
63  m_isFirst = 0;
64 }
65 
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 }
DTSectCollPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:105
DTSectCollPhSegm::DTSectCollPhSegm
DTSectCollPhSegm(DTSectCollId scId, int step)
Constructor.
Definition: DTSectCollPhSegm.cc:34
DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
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
DTSectCollPhSegm::~DTSectCollPhSegm
~DTSectCollPhSegm() override
Destructor.
Definition: DTSectCollPhSegm.cc:45
DTTrigData::sector
int sector() const
Return sector number.
Definition: DTTrigData.h:53
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTSectCollPhSegm::print
void print() const override
Print.
Definition: DTSectCollPhSegm.cc:66
DTSectCollPhSegm::m_tsphitrig
const DTChambPhSegm * m_tsphitrig
Definition: DTSectCollPhSegm.h:139
DTTrigData::station
int station() const
Return station number.
Definition: DTTrigData.h:50
cuy.isFirst
isFirst
Definition: cuy.py:418
DTChambPhSegm::tracoTrig
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
DTTracoTrigData::eqIn
int eqIn() const
Return bti trigger equation of inner segment.
Definition: DTTracoTrigData.h:177
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
DTSectCollId
Definition: DTSectCollId.h:18
DTSectCollPhSegm.h
DTSectCollPhSegm::operator=
DTSectCollPhSegm & operator=(const DTSectCollPhSegm &seg)
Assignment operator.
Definition: DTSectCollPhSegm.cc:51
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
DTSectCollPhSegm::m_sectcollid
DTSectCollId m_sectcollid
Definition: DTSectCollPhSegm.h:130
DTSectCollPhSegm
Definition: DTSectCollPhSegm.h:39
DTSectCollPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTSectCollPhSegm.h:87
DTSectCollPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTSectCollPhSegm.h:108
DTChambPhSegm
Definition: DTChambPhSegm.h:41
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
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