CMS 3D CMS Logo

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 }
DTConfigSectColl::CoarseSync
int CoarseSync(int istat) const
Return coarsesync parameter in Sector Collector for station istat (5 is second MB4 station)
Definition: DTConfigSectColl.h:67
DTSectCollThCand::CoarseSync
int CoarseSync() const
Return the Coarse Sync Parameter.
Definition: DTSectCollThCand.cc:52
gather_cfg.cout
cout
Definition: gather_cfg.py:144
DTChambThSegm::step
int step() const
Return step number.
Definition: DTChambThSegm.h:57
DTSectCollThCand::_tsc
DTSC * _tsc
Definition: DTSectCollThCand.h:70
DTSectCollThCand::config
const DTConfigSectColl * config() const
Configuration set.
Definition: DTSectCollThCand.h:55
hgcalPlots.stat
stat
Definition: hgcalPlots.py:1111
DTChambThSegm
Definition: DTChambThSegm.h:39
DTSectCollThCand::clear
void clear()
Clear the trigger.
Definition: DTSectCollThCand.cc:50
DTChambThSegm::print
void print() const override
Print.
Definition: DTChambThSegm.cc:97
DTSectCollThCand::_tstsegm
const DTChambThSegm * _tstsegm
Definition: DTSectCollThCand.h:71
DTSC
Definition: DTSC.h:41
DTSectCollThCand::DTSectCollThCand
DTSectCollThCand()
Constructor.
Definition: DTSectCollThCand.cc:31
DTSectCollThCand
Definition: DTSectCollThCand.h:31
DTSectCollThCand::~DTSectCollThCand
~DTSectCollThCand()
Destructor.
Definition: DTSectCollThCand.cc:36
DTChambThSegm::ChamberId
DTChamberId ChamberId() const override
Identifier of the associated chamber.
Definition: DTChambThSegm.h:60
DTSectCollThCand.h
DTSectCollThCand::operator=
DTSectCollThCand & operator=(const DTSectCollThCand &tsccand)
Assignment operator.
Definition: DTSectCollThCand.cc:42
DTSectCollThCand::print
void print() const
Print the trigger.
Definition: DTSectCollThCand.cc:62
DTChamberId::station
int station() const
Return the station number.
Definition: DTChamberId.h:42