CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EGEnergyCorrector.h
Go to the documentation of this file.
1 //--------------------------------------------------------------------------------------------------
2 // $Id $
3 //
4 // EGEnergyCorrector
5 //
6 // Helper Class for applying regression-based energy corrections with optimized BDT implementation
7 //
8 // Authors: J.Bendavid
9 //--------------------------------------------------------------------------------------------------
10 
11 #ifndef EGAMMATOOLS_EGEnergyCorrector_H
12 #define EGAMMATOOLS_EGEnergyCorrector_H
13 
19 
20 class GBRForest;
22 
24  public:
27 
28  void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false);
29  Bool_t IsInitialized() const { return fIsInitialized; }
30 
31  std::pair<double,double> CorrectedEnergyWithError(const reco::Photon &p, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
32  std::pair<double,double> CorrectedEnergyWithError(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
33 
34  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::Photon &p, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es, bool applyRescale = false);
35  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
36 
37  protected:
42 
44  Bool_t fOwnsForests;
45  Float_t *fVals;
46 
48 
49  };
50 
51 
52 #endif
void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false)
const GBRForest * fReaderee
const GBRForest * fReadereb
const GBRForest * fReaderebvariance
Definition: DDAxes.h:10
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
EcalClusterLocal _ecalLocal