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 //----------------
35 DTChambPhSegm::DTChambPhSegm(DTChamberId chamberid, int step) : m_chamberid(chamberid), m_step(step) { clear(); }
36 
37 DTChambPhSegm::DTChambPhSegm(DTChamberId chamberid, int step, const DTTracoTrigData *tracotrig, int isfirst)
38  : m_chamberid(chamberid), m_step(step), m_isFirst(isfirst), m_tracotrig(tracotrig) {}
39 
41  : m_chamberid(seg.m_chamberid), m_step(seg.m_step), m_isFirst(seg.m_isFirst), m_tracotrig(seg.m_tracotrig) {}
42 
43 //--------------
44 // Destructor --
45 //--------------
47 
48 //--------------
49 // Operations --
50 //--------------
51 
53  if (this != &seg) {
55  m_step = seg.m_step;
57  m_isFirst = seg.m_isFirst;
58  }
59  return *this;
60 }
61 
63  m_tracotrig = nullptr;
64  m_isFirst = 0;
65 }
66 
67 void DTChambPhSegm::print() const {
68  std::cout << "TP at step " << step() << ", in wheel " << wheel();
69  std::cout << ", station " << station() << ", sector " << sector() << std::endl;
70  std::cout << "TSS " << (tracoTrig()->tracoNumber() - 1) / DTConfigTSPhi::NTCTSS + 1;
71  std::cout << ", TRACO " << tracoNumber() << " : " << std::endl;
72  std::cout << " --> code " << oldCode() << ", K " << K();
73  std::cout << ", X " << X() << ", position mask " << posMask() << std::endl;
74  std::cout << "inner bti equation=" << tracoTrig()->eqIn() << " outer bti equation=" << tracoTrig()->eqOut()
75  << std::endl;
76  std::cout << " psi " << psi() << ", psiR " << psiR();
77  std::cout << ", DeltaPsiR " << DeltaPsiR() << std::endl;
78 }
DTTracoTrigData::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTTracoTrigData.h:159
DTChambPhSegm::oldCode
int oldCode() const
Return trigger code (10*inner_code+outer_code; X_code=1,2,3,4,8)
Definition: DTChambPhSegm.h:91
step
step
Definition: StallMonitor.cc:94
DTTrigData::sector
int sector() const
Return sector number.
Definition: DTTrigData.h:53
DTChambPhSegm.h
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTConfigTSPhi.h
DTTrigData::station
int station() const
Return station number.
Definition: DTTrigData.h:50
DTChambPhSegm::X
float X() const
Return trigger X parameter.
Definition: DTChambPhSegm.h:97
DTChambPhSegm::m_chamberid
DTChamberId m_chamberid
parent chamber
Definition: DTChambPhSegm.h:125
DTChambPhSegm::clear
void clear()
Clear.
Definition: DTChambPhSegm.cc:62
DTChambPhSegm::DTChambPhSegm
DTChambPhSegm(DTChamberId, int)
Constructor.
Definition: DTChambPhSegm.cc:35
DTChambPhSegm::tracoTrig
const DTTracoTrigData * tracoTrig() const
Return associated TRACO trigger.
Definition: DTChambPhSegm.h:70
DTChambPhSegm::tracoNumber
int tracoNumber() const
Return parent TRACO number.
Definition: DTChambPhSegm.h:82
DTTracoTrigData::eqIn
int eqIn() const
Return bti trigger equation of inner segment.
Definition: DTTracoTrigData.h:177
DTChambPhSegm::psi
int psi() const
Return trigger K parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:100
DTChambPhSegm::print
void print() const override
Print.
Definition: DTChambPhSegm.cc:67
DTChambPhSegm::posMask
int posMask() const
Return correlator output code (position of segments)
Definition: DTChambPhSegm.h:115
DTTracoTrigData::eqOut
int eqOut() const
Return bti trigger equation of outer segment.
Definition: DTTracoTrigData.h:180
DTChambPhSegm::m_tracotrig
const DTTracoTrigData * m_tracotrig
the corresponding traco trigger
Definition: DTChambPhSegm.h:134
DTChambPhSegm::DeltaPsiR
int DeltaPsiR() const
Return bending angle (bit pattern)
Definition: DTChambPhSegm.h:109
DTChambPhSegm::~DTChambPhSegm
~DTChambPhSegm() override
Destructor.
Definition: DTChambPhSegm.cc:46
DTConfig::NTCTSS
static const int NTCTSS
Constant: number of TRACOs in input to a TSS.
Definition: DTConfig.h:40
DTChambPhSegm::operator=
DTChambPhSegm & operator=(const DTChambPhSegm &)
Assignment operator.
Definition: DTChambPhSegm.cc:52
DTChambPhSegm::K
float K() const
Return trigger K parameter.
Definition: DTChambPhSegm.h:94
DTChambPhSegm::step
int step() const
Return step number.
Definition: DTChambPhSegm.h:73
DTTracoTrigData
Definition: DTTracoTrigData.h:37
DTChambPhSegm
Definition: DTChambPhSegm.h:41
DTChambPhSegm::psiR
int psiR() const
Return trigger X parameter converted to angle (bit pattern)
Definition: DTChambPhSegm.h:103
DTChambPhSegm::m_isFirst
myint8 m_isFirst
first or second track
Definition: DTChambPhSegm.h:131
DTChamberId
Definition: DTChamberId.h:14
DTBtiTrigData.h
DTTracoTrig.h
DTTrigData::wheel
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
DTChambPhSegm::m_step
myint8 m_step
step number
Definition: DTChambPhSegm.h:128