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 //
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 
19 
20 class GBRForest;
21 
23  public:
26 
27  void Initialize(const edm::EventSetup &iSetup, std::string regweights, bool weightsFromDB=false);
28  Bool_t IsInitialized() const { return fIsInitialized; }
29 
30  std::pair<double,double> CorrectedEnergyWithError(const reco::Photon &p, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
31  std::pair<double,double> CorrectedEnergyWithError(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
32 
33  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::Photon &p, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es, bool applyRescale = false);
34  std::pair<double,double> CorrectedEnergyWithErrorV3(const reco::GsfElectron &e, const reco::VertexCollection& vtxcol, double rho, EcalClusterLazyTools &clustertools, const edm::EventSetup &es);
35 
36  protected:
41 
43  Bool_t fOwnsForests;
44  Float_t *fVals;
45 
47 
48  };
49 
50 
51 #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
EcalClusterLocal _ecalLocal