CMS 3D CMS Logo

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