CMS 3D CMS Logo

EGEnergyCorrector.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 //
3 // EGEnergyCorrector
4 //
5 // Helper Class for applying regression-based energy corrections with optimized BDT implementation
6 //
7 // Authors: J.Bendavid
8 //--------------------------------------------------------------------------------------------------
9 
10 #ifndef EGAMMATOOLS_EGEnergyCorrector_H
11 #define EGAMMATOOLS_EGEnergyCorrector_H
12 
18 
19 class GBRForest;
20 
22  public:
25 
26  void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false);
27  Bool_t IsInitialized() const { return fIsInitialized; }
28 
29  std::pair<double,double> CorrectedEnergyWithError(const reco::Photon &p, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
30  std::pair<double,double> CorrectedEnergyWithError(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
31 
32  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::Photon &p, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es, bool applyRescale = false);
33  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
34 
35  protected:
40 
42  Bool_t fOwnsForests;
43  Float_t *fVals;
44 
45  };
46 
47 
48 #endif
void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false)
const GBRForest * fReaderee
const GBRForest * fReadereb
const GBRForest * fReaderebvariance
std::vector< Vertex > VertexCollection
collection of Vertex objects
Definition: VertexFwd.h:9
std::pair< double, double > CorrectedEnergyWithError(const reco::Photon &p, const reco::VertexCollection &vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es)
std::pair< double, double > CorrectedEnergyWithErrorV3(const reco::Photon &p, const reco::VertexCollection &vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es, bool applyRescale=false)
Bool_t IsInitialized() const
const GBRForest * fReadereevariance