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
reco::HFValueStruct::setEnCor
void setEnCor(int ieta, double val)
Definition: HFValueStruct.cc:62
reco::HFValueStruct::indexByIeta
int indexByIeta(int &ieta) const
Definition: HFValueStruct.cc:27
reco::HFValueStruct::PUSlope
std::vector< double > PUSlope() const
Definition: HFValueStruct.cc:88
reco::HFValueStruct
Definition: HFValueStruct.h:8
reco::HFValueStruct::v_
int v_
Definition: HFValueStruct.h:34
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::HFValueStruct::EnCor
std::vector< double > EnCor() const
Definition: HFValueStruct.cc:76
reco::HFValueStruct::setPUIntercept
void setPUIntercept(int ieta, double val)
Definition: HFValueStruct.cc:70
reco::HFValueStruct::PUIntercept
std::vector< double > PUIntercept() const
Definition: HFValueStruct.cc:100
reco::HFValueStruct::HFValueStruct
HFValueStruct()
Definition: HFValueStruct.h:10
reco::HFValueStruct::doPU_
bool doPU_
Definition: HFValueStruct.h:37
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
reco::HFValueStruct::setPUSlope
void setPUSlope(int ieta, double val)
Definition: HFValueStruct.cc:66
reco::HFValueStruct::doEnCor_
bool doEnCor_
Definition: HFValueStruct.h:37
reco::HFValueStruct::ietaByIndex
int ietaByIndex(int &indx) const
Definition: HFValueStruct.cc:28
heppy_batch.val
val
Definition: heppy_batch.py:351
reco::HFValueStruct::hfvv_
std::vector< double > hfvv_
Definition: HFValueStruct.h:35
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45