CMS 3D CMS Logo

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 public:
26  PFEnergyCalibrationHF(); // default constructor;
27  // needed by PFRootEvent
28  explicit PFEnergyCalibrationHF(bool calibHF_use,
29  const std::vector<double>& calibHF_eta_step,
30  const std::vector<double>& calibHF_a_EMonly,
31  const std::vector<double>& calibHF_b_HADonly,
32  const std::vector<double>& calibHF_a_EMHAD,
33  const std::vector<double>& calibHF_b_EMHAD);
34 
36 
37  double energyEm(double uncalibratedEnergyECAL, double eta, double phi);
38 
39  // HCAL only calibration
40  double energyHad(double uncalibratedEnergyHCAL, double eta, double phi);
41 
42  // ECAL+HCAL (abc) calibration
43  double energyEmHad(double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi);
44 
45  friend std::ostream& operator<<(std::ostream& out, const PFEnergyCalibrationHF& calib);
46 
47  const bool& getcalibHF_use() const { return calibHF_use_; }
48  const std::vector<double>& getcalibHF_eta_step() const { return calibHF_eta_step_; }
49  const std::vector<double>& getcalibHF_a_EMonly() const { return calibHF_a_EMonly_; }
50  const std::vector<double>& getcalibHF_b_HADonly() const { return calibHF_b_HADonly_; }
51  const std::vector<double>& getcalibHF_a_EMHAD() const { return calibHF_a_EMHAD_; }
52  const std::vector<double>& getcalibHF_b_EMHAD() const { return calibHF_b_EMHAD_; }
53 
54 protected:
55 private:
57  std::vector<double> calibHF_eta_step_;
58  std::vector<double> calibHF_a_EMonly_;
59  std::vector<double> calibHF_b_HADonly_;
60  std::vector<double> calibHF_a_EMHAD_;
61  std::vector<double> calibHF_b_EMHAD_;
62 };
63 
64 #endif
PFEnergyCalibrationHF::getcalibHF_a_EMonly
const std::vector< double > & getcalibHF_a_EMonly() const
Definition: PFEnergyCalibrationHF.h:49
HLT_FULL_cff.calibHF_eta_step
calibHF_eta_step
Definition: HLT_FULL_cff.py:13754
PFEnergyCalibrationHF::~PFEnergyCalibrationHF
~PFEnergyCalibrationHF()
Definition: PFEnergyCalibrationHF.cc:44
PFEnergyCalibrationHF::getcalibHF_eta_step
const std::vector< double > & getcalibHF_eta_step() const
Definition: PFEnergyCalibrationHF.h:48
PFEnergyCalibrationHF::PFEnergyCalibrationHF
PFEnergyCalibrationHF()
Definition: PFEnergyCalibrationHF.cc:10
PFEnergyCalibrationHF::getcalibHF_b_EMHAD
const std::vector< double > & getcalibHF_b_EMHAD() const
Definition: PFEnergyCalibrationHF.h:52
PFEnergyCalibrationHF::getcalibHF_a_EMHAD
const std::vector< double > & getcalibHF_a_EMHAD() const
Definition: PFEnergyCalibrationHF.h:51
HLT_FULL_cff.calibHF_b_EMHAD
calibHF_b_EMHAD
Definition: HLT_FULL_cff.py:13758
PFEnergyCalibrationHF::getcalibHF_b_HADonly
const std::vector< double > & getcalibHF_b_HADonly() const
Definition: PFEnergyCalibrationHF.h:50
PFEnergyCalibrationHF::operator<<
friend std::ostream & operator<<(std::ostream &out, const PFEnergyCalibrationHF &calib)
Definition: PFEnergyCalibrationHF.cc:92
PVValHelper::eta
Definition: PVValidationHelpers.h:70
PFEnergyCalibrationHF::energyHad
double energyHad(double uncalibratedEnergyHCAL, double eta, double phi)
Definition: PFEnergyCalibrationHF.cc:63
PFEnergyCalibrationHF::energyEmHad
double energyEmHad(double uncalibratedEnergyECAL, double uncalibratedEnergyHCAL, double eta, double phi)
Definition: PFEnergyCalibrationHF.cc:76
PFCluster.h
PFEnergyCalibrationHF::calibHF_b_HADonly_
std::vector< double > calibHF_b_HADonly_
Definition: PFEnergyCalibrationHF.h:59
calib
Definition: CalibElectron.h:12
PFEnergyCalibrationHF::calibHF_use_
bool calibHF_use_
Definition: PFEnergyCalibrationHF.h:56
HLT_FULL_cff.calibHF_a_EMHAD
calibHF_a_EMHAD
Definition: HLT_FULL_cff.py:13756
PFEnergyCalibrationHF::calibHF_a_EMonly_
std::vector< double > calibHF_a_EMonly_
Definition: PFEnergyCalibrationHF.h:58
PFEnergyCalibrationHF::energyEm
double energyEm(double uncalibratedEnergyECAL, double eta, double phi)
Definition: PFEnergyCalibrationHF.cc:48
DDAxes::phi
HLT_FULL_cff.calibHF_use
calibHF_use
Definition: HLT_FULL_cff.py:13753
HLT_FULL_cff.calibHF_b_HADonly
calibHF_b_HADonly
Definition: HLT_FULL_cff.py:13757
PFEnergyCalibrationHF::calibHF_a_EMHAD_
std::vector< double > calibHF_a_EMHAD_
Definition: PFEnergyCalibrationHF.h:60
HLT_FULL_cff.calibHF_a_EMonly
calibHF_a_EMonly
Definition: HLT_FULL_cff.py:13755
PFEnergyCalibrationHF::calibHF_eta_step_
std::vector< double > calibHF_eta_step_
Definition: PFEnergyCalibrationHF.h:57
PFEnergyCalibrationHF::calibHF_b_EMHAD_
std::vector< double > calibHF_b_EMHAD_
Definition: PFEnergyCalibrationHF.h:61
PFEnergyCalibrationHF
Definition: PFEnergyCalibrationHF.h:24
MillePedeFileConverter_cfg.out
out
Definition: MillePedeFileConverter_cfg.py:31
PFEnergyCalibrationHF::getcalibHF_use
const bool & getcalibHF_use() const
Definition: PFEnergyCalibrationHF.h:47
ParameterSet.h