CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 quality(const int i) const
Return the quality for a given set of 7 BTI.
int position(const int i) const
Return the position for a given set of 7 BTI.
int wheel() const
Return wheel number.
Definition: DTTrigData.h:47
int step() const
Return step number.
myint8 m_step
step number
int sector() const
Return sector number.
Definition: DTTrigData.h:53
int station() const
Return station number.
Definition: DTTrigData.h:50
DTSectCollThSegm & operator=(const DTSectCollThSegm &seg)
Assignment operator.
DTSectCollId m_sectcollid
parent sector collector
void print() const override
Print.
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
~DTSectCollThSegm() override
Destructor.
tuple cout
Definition: gather_cfg.py:144
step
Definition: StallMonitor.cc:94