CMS 3D CMS Logo

HFValueStruct.h
Go to the documentation of this file.
1 #ifndef _HFVALUESTRUCT_H
2 #define _HFVALUESTRUCT_H
3 
4 #include <vector>
5 
6 namespace reco {
7 
8  class HFValueStruct {
9  public:
11  HFValueStruct(const int& version, const std::vector<double>& vect);
12  // returns single value by index
13 
14  double EnCor(int ieta) const;
15  double PUSlope(int ieta) const;
16  double PUIntercept(int ieta) const;
17 
18  // sets single value by index
19  void setEnCor(int ieta, double val);
20  void setPUSlope(int ieta, double val);
21  void setPUIntercept(int ieta, double val);
22 
23  // returns whole vector
24  std::vector<double> EnCor() const;
25  std::vector<double> PUSlope() const;
26  std::vector<double> PUIntercept() const;
27 
28  // set whole vector
29  void setEnCor(const std::vector<double>& val);
30  void setPUSlope(const std::vector<double>& val);
31  void setPUIntercept(const std::vector<double>& val);
32 
33  private:
34  int v_;
35  std::vector<double> hfvv_;
36  //std::vector<double> SetHfvvFromDB_(); //will need when in database
37  bool doEnCor_, doPU_;
38 
39  int indexByIeta(int& ieta) const;
40  int ietaByIndex(int& indx) const;
41  };
42 } // namespace reco
43 #endif
void setEnCor(int ieta, double val)
std::vector< double > PUSlope() const
int ietaByIndex(int &indx) const
std::vector< double > hfvv_
Definition: HFValueStruct.h:35
void setPUSlope(int ieta, double val)
int indexByIeta(int &ieta) const
fixed size matrix
void setPUIntercept(int ieta, double val)
std::vector< double > EnCor() const
std::vector< double > PUIntercept() const