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 namespace reco {
9 
10  class HFValueStruct {
11  public:
13  HFValueStruct(const int& version, const std::vector<double>& vect);
14  // returns single value by index
15 
16  double EnCor(int ieta) const;
17  double PUSlope(int ieta) const;
18  double PUIntercept(int ieta) const;
19 
20  // sets single value by index
21  void setEnCor(int ieta, double val);
22  void setPUSlope(int ieta, double val);
23  void setPUIntercept(int ieta, double val);
24 
25  // returns whole vector
26  std::vector<double> EnCor() const;
27  std::vector<double> PUSlope() const;
28  std::vector<double> PUIntercept() const;
29 
30  // set whole vector
31  void setEnCor(const std::vector<double>& val);
32  void setPUSlope(const std::vector<double>& val);
33  void setPUIntercept(const std::vector<double>& val);
34 
35  private:
36  int v_;
37  std::vector<double> hfvv_;
38  //std::vector<double> SetHfvvFromDB_(); //will need when in database
39  bool doEnCor_, doPU_;
40 
41  int indexByIeta(int& ieta) const;
42  int ietaByIndex(int& indx) const;
43  };
44 } // namespace reco
45 #endif
reco::HFValueStruct::setEnCor
void setEnCor(int ieta, double val)
Definition: HFValueStruct.cc:64
reco::HFValueStruct::indexByIeta
int indexByIeta(int &ieta) const
Definition: HFValueStruct.cc:29
reco::HFValueStruct::PUSlope
std::vector< double > PUSlope() const
Definition: HFValueStruct.cc:90
reco::HFValueStruct
Definition: HFValueStruct.h:10
reco::HFValueStruct::v_
int v_
Definition: HFValueStruct.h:36
reco
fixed size matrix
Definition: AlignmentAlgorithmBase.h:45
reco::HFValueStruct::EnCor
std::vector< double > EnCor() const
Definition: HFValueStruct.cc:78
reco::HFValueStruct::setPUIntercept
void setPUIntercept(int ieta, double val)
Definition: HFValueStruct.cc:72
reco::HFValueStruct::PUIntercept
std::vector< double > PUIntercept() const
Definition: HFValueStruct.cc:102
reco::HFValueStruct::HFValueStruct
HFValueStruct()
Definition: HFValueStruct.h:12
reco::HFValueStruct::doPU_
bool doPU_
Definition: HFValueStruct.h:39
LEDCalibrationChannels.ieta
ieta
Definition: LEDCalibrationChannels.py:63
reco::HFValueStruct::setPUSlope
void setPUSlope(int ieta, double val)
Definition: HFValueStruct.cc:68
reco::HFValueStruct::doEnCor_
bool doEnCor_
Definition: HFValueStruct.h:39
reco::HFValueStruct::ietaByIndex
int ietaByIndex(int &indx) const
Definition: HFValueStruct.cc:30
heppy_batch.val
val
Definition: heppy_batch.py:351
reco::HFValueStruct::hfvv_
std::vector< double > hfvv_
Definition: HFValueStruct.h:37
BeamSplash_cfg.version
version
Definition: BeamSplash_cfg.py:45