test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros 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  const DTChambThSegm* tstheta_seg) :
34  m_sectcollid(scid), m_step(step), m_tsthetatrig(tstheta_seg) {
35 }
36 
38  m_sectcollid(seg.m_sectcollid), m_step(seg.m_step), m_tsthetatrig(seg.m_tsthetatrig) {
39 }
40 
41 //--------------
42 // Destructor --
43 //--------------
45 }
46 
47 //--------------
48 // Operations --
49 //--------------
50 
53  if(this != &seg){
55  m_step = seg.m_step;
57  }
58  return *this;
59 }
60 
61 void
63  std::cout << "TP at step " << step() << ", in wheel " << wheel();
64  std::cout << ", station " << station() << ", sector " << sector();
65  std::cout << " : " << std::endl;
66  std::cout << " output codes : ";
67  int i=0;
68  for(i=0;i<7;i++){
69  std::cout << (int)(position(i)+quality(i)) << " ";
70  }
71  std::cout << "\n";
72 
73 }
DTSectCollThSegm(DTSectCollId, int, const DTChambThSegm *)
Constructor.
int i
Definition: DBlmapReader.cc:9
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:48
int step() const
Return step number.
void print() const
Print.
myint8 m_step
step number
int sector() const
Return sector number.
Definition: DTTrigData.h:54
int station() const
Return station number.
Definition: DTTrigData.h:51
DTSectCollThSegm & operator=(const DTSectCollThSegm &seg)
Assignment operator.
~DTSectCollThSegm()
Destructor.
DTSectCollId m_sectcollid
parent sector collector
const DTChambThSegm * m_tsthetatrig
the corresponding TS theta trigger
tuple cout
Definition: gather_cfg.py:145