CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 // This Class's Header --
18 //-----------------------
20 
21 //---------------
22 // C++ Headers --
23 //---------------
24 #include <iostream>
25 
26 //----------------
27 // Constructors --
28 //----------------
29 DTSectCollThCand::DTSectCollThCand(DTSC* tsc, const DTChambThSegm* tstsegm) : _tsc(tsc), _tstsegm(tstsegm) {}
30 
32 
33 //--------------
34 // Destructor --
35 //--------------
37 
38 //--------------
39 // Operations --
40 //--------------
41 
43  if (this != &tsccand) {
44  _tsc = tsccand._tsc;
45  _tstsegm = tsccand._tstsegm;
46  }
47  return *this;
48 }
49 
50 void DTSectCollThCand::clear() { _tstsegm = nullptr; }
51 
53  int stat = _tstsegm->ChamberId().station();
54  if (stat > 3) {
55  std::cout << "DTSectCollThCand::CoarseSync: station number outside valid range: " << stat << " 0 returned"
56  << std::endl;
57  return 0;
58  }
59  return config()->CoarseSync(stat);
60 }
61 
63  std::cout << "Sector Collector Theta Candidate: " << std::endl;
64  _tstsegm->print();
65  std::cout << "SC step: " << _tstsegm->step() + CoarseSync();
66  std::cout << std::endl;
67 }
int CoarseSync() const
Return the Coarse Sync Parameter.
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSC.h:41
int step() const
Return step number.
Definition: DTChambThSegm.h:57
void clear()
Clear the trigger.
const DTChambThSegm * _tstsegm
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station) ...
void print() const override
Print.
~DTSectCollThCand()
Destructor.
tuple cout
Definition: gather_cfg.py:144
DTSectCollThCand()
Constructor.
DTSectCollThCand & operator=(const DTSectCollThCand &tsccand)
Assignment operator.
int station() const
Return the station number.
Definition: DTChamberId.h:42
void print() const
Print the trigger.