test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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) DYTEstimators_.push_back(dytEstMap.find(st)->second);
30  else DYTEstimators_.push_back(-1);
31  }
32  };
33  void setDYTEstimators( const std::vector<double> &EstValues ) { DYTEstimators_ = EstValues; }
34 
36  const std::vector<bool>& UsedStations() const { return UsedStations_; };
37  void setUsedStations( const std::map<int, bool> &ustMap ) {
38  UsedStations_.clear();
39  for (int st = 1; st <= 4; st++)
40  UsedStations_.push_back(ustMap.find(st)->second);
41  };
42  void setUsedStations( const std::vector<bool> ustVal ) { UsedStations_ = ustVal; };
43 
45  const std::vector<DetId>& IdChambers() const { return IdChambers_; };
46  void setIdChambers( const std::map<int, DetId> &IdChambersMap ) {
47  IdChambers_.clear();
48  for (int st = 1; st <= 4; st++)
49  IdChambers_.push_back(IdChambersMap.find(st)->second);
50  };
51  void setIdChambers( const std::vector<DetId> &IdChambersVal ) { IdChambers_ = IdChambersVal; };
52 
54  const std::vector<double>& Thresholds() const { return Thresholds_; };
55  void setThresholds( const std::map<int, double> &ThresholdsMap ) {
56  Thresholds_.clear();
57  for (int st = 1; st <= 4; st++)
58  Thresholds_.push_back(ThresholdsMap.find(st)->second);
59  };
60  void setThresholds( const std::vector<double> &ThresholdsVal ) { Thresholds_ = ThresholdsVal; };
61 
62  private:
63 
64  int NStUsed_;
65  std::vector<bool> UsedStations_;
66  std::vector<double> DYTEstimators_;
67  std::vector<DetId> IdChambers_;
68  std::vector<double> Thresholds_;
69  };
70 }
71 #endif
DYTInfo()
Constructor - Destructor.
Definition: DYTInfo.cc:4
void setDYTEstimators(const std::vector< double > &EstValues)
Definition: DYTInfo.h:33
const std::vector< DetId > & IdChambers() const
DetId vector of chamber with valid estimator.
Definition: DYTInfo.h:45
void setUsedStations(const std::map< int, bool > &ustMap)
Definition: DYTInfo.h:37
const std::vector< bool > & UsedStations() const
number of segments tested per muon station
Definition: DYTInfo.h:36
void CopyFrom(const DYTInfo &)
copy from another DYTInfo
Definition: DYTInfo.cc:15
const std::vector< double > & Thresholds() const
vector of thresholds
Definition: DYTInfo.h:54
std::vector< DetId > IdChambers_
Definition: DYTInfo.h:67
void setDYTEstimators(const std::map< int, double > &dytEstMap)
Definition: DYTInfo.h:26
void setIdChambers(const std::vector< DetId > &IdChambersVal)
Definition: DYTInfo.h:51
const int NStUsed() const
number of stations used by DYT
Definition: DYTInfo.h:21
void setNStUsed(int NStUsed)
Definition: DYTInfo.h:22
std::vector< bool > UsedStations_
Definition: DYTInfo.h:65
std::vector< double > Thresholds_
Definition: DYTInfo.h:68
int NStUsed_
Definition: DYTInfo.h:60
void setIdChambers(const std::map< int, DetId > &IdChambersMap)
Definition: DYTInfo.h:46
void setThresholds(const std::vector< double > &ThresholdsVal)
Definition: DYTInfo.h:60
void setThresholds(const std::map< int, double > &ThresholdsMap)
Definition: DYTInfo.h:55
std::vector< double > DYTEstimators_
Definition: DYTInfo.h:66
void setUsedStations(const std::vector< bool > ustVal)
Definition: DYTInfo.h:42
const std::vector< double > & DYTEstimators() const
estimator values for all station
Definition: DYTInfo.h:25