CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
DTSectCollThCand.cc
Go to the documentation of this file.
1 //-------------------------------------------------
2 //
3 // Class: DTSectCollThCand.cpp
4 //
5 // Description: A Sector Collector Theta Candidate
6 //
7 //
8 // Author List:
9 // C. Battilana
10 // Modifications:
11 //
12 //
13 //
14 //--------------------------------------------------
15 
16 
17 //-----------------------
18 // This Class's Header --
19 //-----------------------
21 
22 //---------------
23 // C++ Headers --
24 //---------------
25 #include <iostream>
26 
27 //----------------
28 // Constructors --
29 //----------------
31  : _tsc(tsc), _tstsegm(tstsegm) {
32 }
33 
34 
36 
37 }
38 
39 //--------------
40 // Destructor --
41 //--------------
43 }
44 
45 
46 //--------------
47 // Operations --
48 //--------------
49 
52  if(this != &tsccand){
53  _tsc = tsccand._tsc;
54  _tstsegm = tsccand._tstsegm;
55  }
56  return *this;
57 }
58 
59 void
61  _tstsegm=0;
62 }
63 
64 int
66  int stat= _tstsegm->ChamberId().station();
67  if (stat>3){
68  std::cout << "DTSectCollThCand::CoarseSync: station number outside valid range: "
69  << stat << " 0 returned" << std::endl;
70  return 0;
71  }
72  return config()->CoarseSync(stat);
73 }
74 
75  void
77  std::cout << "Sector Collector Theta Candidate: " << std::endl;
78  _tstsegm->print();
79  std::cout << "SC step: " << _tstsegm->step()+CoarseSync();
80  std::cout << std::endl;
81 
82  }
83 
int CoarseSync() const
Return the Coarse Sync Parameter.
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSC.h:42
int step() const
Return step number.
Definition: DTChambThSegm.h:60
void clear()
Clear the trigger.
void print() const
Print.
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const
Identifier of the associated chamber.
Definition: DTChambThSegm.h:63
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
~DTSectCollThCand()
Destructor.
tuple cout
Definition: gather_cfg.py:121
DTSectCollThCand()
Constructor.
DTSectCollThCand & operator=(const DTSectCollThCand &tsccand)
Assignment operator.
int station() const
Return the station number.
Definition: DTChamberId.h:51
void print() const
Print the trigger.