CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
EcalClusterLocalContCorrectionBaseClass.h
Go to the documentation of this file.
1 #ifndef RecoEcal_EgammaCoreTools_EcalClusterLocalContCorrectionBaseClass_h
2 #define RecoEcal_EgammaCoreTools_EcalClusterLocalContCorrectionBaseClass_h
3 
14 
15 //#include "FWCore/ParameterSet/interface/ParameterSet.h"
17 
20 
22 
23 namespace edm {
24  class EventSetup;
25  class ParameterSet;
26 }
27 
29  public:
33 
34  // get/set explicit methods for parameters
36  // check initialization
37  void checkInit() const;
38 
39  // compute the correction
40  virtual float getValue( const reco::BasicCluster &, const EcalRecHitCollection & ) const = 0;
41  virtual float getValue( const reco::SuperCluster &, const int mode ) const = 0;
42 
43  // set parameters
44  virtual void init( const edm::EventSetup& es );
45 
46  protected:
49  const edm::EventSetup * es_; //needed to access the ECAL geometry
50 
51 };
52 
53 #endif
edm::ESHandle< EcalClusterLocalContCorrParameters > esParams_
const EcalClusterLocalContCorrParameters * getParameters() const
const EcalClusterLocalContCorrParameters * params_
virtual float getValue(const reco::BasicCluster &, const EcalRecHitCollection &) const =0