CMS 3D CMS Logo

HGCalHistoClusteringConfig_SA.h
Go to the documentation of this file.
1 #ifndef __L1Trigger_L1THGCal_HGCalHistoCluteringConfig_SA_h__
2 #define __L1Trigger_L1THGCal_HGCalHistoCluteringConfig_SA_h__
3 
4 #include <vector>
5 
6 namespace l1thgcfirmware {
7 
9  public:
11  const double dr,
12  const std::vector<double>& dr_byLayer_coefficientA,
13  const std::vector<double>& dr_byLayer_coefficientB,
14  const float ptC3dThreshold)
16  dr_(dr),
20 
21  void setParameters(double midRadius,
22  double dr,
23  const std::vector<double>& dr_byLayer_coefficientA,
24  const std::vector<double>& dr_byLayer_coefficientB,
25  float ptC3dThreshold) {
27  dr_ = dr;
31  }
32 
33  void setParameters(const ClusterAlgoConfig& newConfig) {
34  setParameters(newConfig.midRadius(),
35  newConfig.dr(),
36  newConfig.dr_byLayer_coefficientA(),
37  newConfig.dr_byLayer_coefficientB(),
38  newConfig.ptC3dThreshold());
39  }
40  double midRadius() const { return midRadius_; }
41  double dr() const { return dr_; }
42  const std::vector<double>& dr_byLayer_coefficientA() const { return dr_byLayer_coefficientA_; }
43  const std::vector<double>& dr_byLayer_coefficientB() const { return dr_byLayer_coefficientB_; }
44  float ptC3dThreshold() const { return ptC3dThreshold_; }
45 
46  private:
47  double midRadius_;
48  double dr_;
49  std::vector<double> dr_byLayer_coefficientA_;
50  std::vector<double> dr_byLayer_coefficientB_;
52  };
53 
54 } // namespace l1thgcfirmware
55 
56 #endif
ClusterAlgoConfig(const double midRadius, const double dr, const std::vector< double > &dr_byLayer_coefficientA, const std::vector< double > &dr_byLayer_coefficientB, const float ptC3dThreshold)
const std::vector< double > & dr_byLayer_coefficientA() const
const std::vector< double > & dr_byLayer_coefficientB() const
void setParameters(double midRadius, double dr, const std::vector< double > &dr_byLayer_coefficientA, const std::vector< double > &dr_byLayer_coefficientB, float ptC3dThreshold)
void setParameters(const ClusterAlgoConfig &newConfig)