CMS 3D CMS Logo

DYTInfo.h
Go to the documentation of this file.
1 #ifndef MuonReco_DYTInfo_h
2 #define MuonReco_DYTInfo_h
3 
4 #include <vector>
5 #include <map>
6 #include <iostream>
8 
9 namespace reco {
10 
11  class DYTInfo {
12  public:
14  DYTInfo();
15  ~DYTInfo();
16 
18  void CopyFrom(const DYTInfo &);
19 
21  const int NStUsed() const { return NStUsed_; };
22  void setNStUsed(int NStUsed) { NStUsed_ = NStUsed; };
23 
25  const std::vector<double> &DYTEstimators() const { return DYTEstimators_; };
26  void setDYTEstimators(const std::map<int, double> &dytEstMap) {
27  DYTEstimators_.clear();
28  for (int st = 1; st <= 4; st++) {
29  if (dytEstMap.count(st) > 0)
30  DYTEstimators_.push_back(dytEstMap.find(st)->second);
31  else
32  DYTEstimators_.push_back(-1);
33  }
34  };
35  void setDYTEstimators(const std::vector<double> &EstValues) { DYTEstimators_ = EstValues; }
36 
38  const std::vector<bool> &UsedStations() const { return UsedStations_; };
39  void setUsedStations(const std::map<int, bool> &ustMap) {
40  UsedStations_.clear();
41  for (int st = 1; st <= 4; st++)
42  UsedStations_.push_back(ustMap.find(st)->second);
43  };
44  void setUsedStations(const std::vector<bool> ustVal) { UsedStations_ = ustVal; };
45 
47  const std::vector<DetId> &IdChambers() const { return IdChambers_; };
48  void setIdChambers(const std::map<int, DetId> &IdChambersMap) {
49  IdChambers_.clear();
50  for (int st = 1; st <= 4; st++)
51  IdChambers_.push_back(IdChambersMap.find(st)->second);
52  };
53  void setIdChambers(const std::vector<DetId> &IdChambersVal) { IdChambers_ = IdChambersVal; };
54 
56  const std::vector<double> &Thresholds() const { return Thresholds_; };
57  void setThresholds(const std::map<int, double> &ThresholdsMap) {
58  Thresholds_.clear();
59  for (int st = 1; st <= 4; st++)
60  Thresholds_.push_back(ThresholdsMap.find(st)->second);
61  };
62  void setThresholds(const std::vector<double> &ThresholdsVal) { Thresholds_ = ThresholdsVal; };
63 
64  private:
65  int NStUsed_;
66  std::vector<bool> UsedStations_;
67  std::vector<double> DYTEstimators_;
68  std::vector<DetId> IdChambers_;
69  std::vector<double> Thresholds_;
70  };
71 } // namespace reco
72 #endif
DYTInfo()
Constructor - Destructor.
Definition: DYTInfo.cc:4
void setDYTEstimators(const std::vector< double > &EstValues)
Definition: DYTInfo.h:35
const std::vector< double > & Thresholds() const
vector of thresholds
Definition: DYTInfo.h:56
const std::vector< DetId > & IdChambers() const
DetId vector of chamber with valid estimator.
Definition: DYTInfo.h:47
void setUsedStations(const std::map< int, bool > &ustMap)
Definition: DYTInfo.h:39
void CopyFrom(const DYTInfo &)
copy from another DYTInfo
Definition: DYTInfo.cc:14
const std::vector< double > & DYTEstimators() const
estimator values for all station
Definition: DYTInfo.h:25
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:68
void setDYTEstimators(const std::map< int, double > &dytEstMap)
Definition: DYTInfo.h:26
void setIdChambers(const std::vector< DetId > &IdChambersVal)
Definition: DYTInfo.h:53
void setNStUsed(int NStUsed)
Definition: DYTInfo.h:22
std::vector< bool > UsedStations_
Definition: DYTInfo.h:66
std::vector< double > Thresholds_
Definition: DYTInfo.h:69
int NStUsed_
Definition: DYTInfo.h:62
void setIdChambers(const std::map< int, DetId > &IdChambersMap)
Definition: DYTInfo.h:48
fixed size matrix
void setThresholds(const std::vector< double > &ThresholdsVal)
Definition: DYTInfo.h:62
const std::vector< bool > & UsedStations() const
number of segments tested per muon station
Definition: DYTInfo.h:38
void setThresholds(const std::map< int, double > &ThresholdsMap)
Definition: DYTInfo.h:57
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:67
void setUsedStations(const std::vector< bool > ustVal)
Definition: DYTInfo.h:44
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21