CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFClusterEnergyCorrectorBase.h
Go to the documentation of this file.
1 #ifndef __PFClusterEnergyCorrectorBase_H__
2 #define __PFClusterEnergyCorrectorBase_H__
3 
7 
8 #include <string>
9 
10 namespace edm {
11  class Event;
12  class EventSetup;
13 }
14 
17  public:
19  _algoName(conf.getParameter<std::string>("algoName")) { }
21  //get rid of things we should never use
22  PFClusterEnergyCorrectorBase(const Corrector&) = delete;
23  Corrector& operator=(const Corrector&) = delete;
24 
25  virtual void update(const edm::EventSetup&) { }
26 
27  // here we transform one PFCluster to use the new position calculation
28  virtual void correctEnergy(reco::PFCluster&) = 0;
29  // here you call a loop inside to transform the whole vector
30  virtual void correctEnergies(reco::PFClusterCollection&) = 0;
31 
32  const std::string& name() const { return _algoName; }
33 
34  private:
36 
37 };
38 
41 
42 #endif
Corrector & operator=(const Corrector &)=delete
Particle flow cluster, see clustering algorithm in PFClusterAlgo.
Definition: PFCluster.h:47
PFClusterEnergyCorrectorBase(const edm::ParameterSet &conf)
virtual void correctEnergies(reco::PFClusterCollection &)=0
const std::string & name() const
virtual void correctEnergy(reco::PFCluster &)=0
edmplugin::PluginFactory< PFClusterEnergyCorrectorBase *(const edm::ParameterSet &) > PFClusterEnergyCorrectorFactory
tuple conf
Definition: dbtoconf.py:185
PFClusterEnergyCorrectorBase Corrector
std::vector< PFCluster > PFClusterCollection
collection of PFCluster objects
Definition: PFClusterFwd.h:9
virtual void update(const edm::EventSetup &)