CMS 3D CMS Logo

DTSectCollThSegm.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTSectCollThSegm.cpp
4 //
5 // Description: Muon Sector Collector Trigger Theta candidate
6 //
7 //
8 // Author List:
9 // C. Battilana
10 // Modifications:
11 //
12 //
13 //--------------------------------------------------
14 
15 //-----------------------
16 // This Class's Header --
17 //-----------------------
19 
20 //-------------------------------
21 // Collaborating Class Headers --
22 //-------------------------------
23 
24 //---------------
25 // C++ Headers --
26 //---------------
27 #include <iostream>
28 
29 //----------------
30 // Constructors --
31 //----------------
33  : m_sectcollid(scid), m_step(step), m_tsthetatrig(tstheta_seg) {}
34 
36  : m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_tsthetatrig(seg.m_tsthetatrig) {}
37 
38 //--------------
39 // Destructor --
40 //--------------
42 
43 //--------------
44 // Operations --
45 //--------------
46 
48  if (this != &seg) {
50  m_step = seg.m_step;
52  }
53  return *this;
54 }
55 
57  std::cout << "TP at step " << step() << ", in wheel " << wheel();
58  std::cout << ", station " << station() << ", sector " << sector();
59  std::cout << " : " << std::endl;
60  std::cout << " output codes : ";
61  int i = 0;
62  for (i = 0; i < 7; i++) {
63  std::cout << (int)(position(i) + quality(i)) << " ";
64  }
65  std::cout << "\n";
66 }
DTSectCollThSegm(DTSectCollId, int, const DTChambThSegm *)
Constructor.
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
int sector() const
Return sector number.
Definition: DTTrigData.h:53
int step() const
Return step number.
myint8 m_step
step number
int station() const
Return station number.
Definition: DTTrigData.h:50
DTSectCollThSegm & operator=(const DTSectCollThSegm &seg)
Assignment operator.
int quality(const int i) const
Return the quality for a given set of 7 BTI.
DTSectCollId m_sectcollid
parent sector collector
void print() const override
Print.
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
int position(const int i) const
Return the position for a given set of 7 BTI.
~DTSectCollThSegm() override
Destructor.
step
Definition: StallMonitor.cc:98