CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
PFRecHitCreatorBase.h
Go to the documentation of this file.
1 #ifndef RecoParticleFlow_PFClusterProducer_PFRecHitCreatorBase_h
2 #define RecoParticleFlow_PFClusterProducer_PFRecHitCreatorBase_h
3 
4 
5 
11 
12 
22 
24 #include <memory>
25 
26 
28  public:
31  std::vector<edm::ParameterSet> qTests = iConfig.getParameter<std::vector<edm::ParameterSet> >("qualityTests");
32  for (unsigned int i=0;i<qTests.size();++i) {
33  std::string name = qTests.at(i).getParameter<std::string>("name");
34  qualityTests_.emplace_back(PFRecHitQTestFactory::get()->create(name,qTests.at(i)));
35  }
36  }
37 
38 
39 
40  virtual void importRecHits(std::auto_ptr<reco::PFRecHitCollection>&,std::auto_ptr<reco::PFRecHitCollection>& ,const edm::Event&,const edm::EventSetup&)=0;
41 
42  protected:
43  std::vector<std::unique_ptr<PFRecHitQTestBase> > qualityTests_;
44 
45 };
46 
47 
50 #endif
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
PFRecHitCreatorBase(const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
edmplugin::PluginFactory< PFRecHitCreatorBase *(const edm::ParameterSet &, edm::ConsumesCollector &)> PFRecHitFactory
virtual void importRecHits(std::auto_ptr< reco::PFRecHitCollection > &, std::auto_ptr< reco::PFRecHitCollection > &, const edm::Event &, const edm::EventSetup &)=0
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:55