CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFEnergyCalibrationHF.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFClusterTools_PFEnergyCalibrationHF_h
2 #define RecoParticleFlow_PFClusterTools_PFEnergyCalibrationHF_h
3 
5 
6 // -*- C++ -*-
7 //
8 // Package: PFClusterTools
9 // Class: PFEnergyCalibrationHF
10 //
21 #include <iostream>
23 
25 {
26  public:
27  PFEnergyCalibrationHF(); // default constructor;
28  // needed by PFRootEvent
29  explicit PFEnergyCalibrationHF(bool calibHF_use,
30  const std::vector<double>& calibHF_eta_step,
31  const std::vector<double>& calibHF_a_EMonly,
32  const std::vector<double>& calibHF_b_HADonly,
33  const std::vector<double>& calibHF_a_EMHAD,
34  const std::vector<double>& calibHF_b_EMHAD);
35 
37 
38 
39  double energyEm(double uncalibratedEnergyECAL,
40  double eta, double phi);
41 
42  // HCAL only calibration
43  double energyHad(double uncalibratedEnergyHCAL,
44  double eta, double phi) ;
45 
46 
47  // ECAL+HCAL (abc) calibration
48  double energyEmHad(double uncalibratedEnergyECAL,
49  double uncalibratedEnergyHCAL,
50  double eta, double phi) ;
51 
52 
53 
54  friend std::ostream& operator<<(std::ostream& out,
56 
57  const bool& getcalibHF_use() const
58  { return calibHF_use_;}
59  const std::vector<double>& getcalibHF_eta_step() const
60  {return calibHF_eta_step_;}
61  const std::vector<double>& getcalibHF_a_EMonly() const
62  {return calibHF_a_EMonly_;}
63  const std::vector<double>& getcalibHF_b_HADonly() const
64  {return calibHF_b_HADonly_;}
65  const std::vector<double>& getcalibHF_a_EMHAD() const
66  {return calibHF_a_EMHAD_;}
67  const std::vector<double>& getcalibHF_b_EMHAD() const
68  {return calibHF_b_EMHAD_;}
69 
70 
71  protected:
72 
73  private:
75  std::vector<double> calibHF_eta_step_;
76  std::vector<double> calibHF_a_EMonly_;
77  std::vector<double> calibHF_b_HADonly_;
78  std::vector<double> calibHF_a_EMHAD_;
79  std::vector<double> calibHF_b_EMHAD_ ;
80 };
81 
82 #endif
83 
84 
friend std::ostream & operator<<(std::ostream &out, const PFEnergyCalibrationHF &calib)
const std::vector< double > & getcalibHF_a_EMonly() const
std::vector< double > calibHF_eta_step_
const std::vector< double > & getcalibHF_eta_step() const
const std::vector< double > & getcalibHF_b_EMHAD() const
double energyEmHad(double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi)
MVATrainerComputer * calib
Definition: MVATrainer.cc:64
const std::vector< double > & getcalibHF_a_EMHAD() const
double energyEm(double uncalibratedEnergyECAL, double eta, double phi)
std::vector< double > calibHF_a_EMonly_
const bool & getcalibHF_use() const
tuple out
Definition: dbtoconf.py:99
double energyHad(double uncalibratedEnergyHCAL, double eta, double phi)
std::vector< double > calibHF_b_EMHAD_
std::vector< double > calibHF_a_EMHAD_
std::vector< double > calibHF_b_HADonly_
const std::vector< double > & getcalibHF_b_HADonly() const