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  virtual void importRecHits(std::auto_ptr<reco::PFRecHitCollection>&,std::auto_ptr<reco::PFRecHitCollection>& ,const edm::Event&,const edm::EventSetup&)=0;
40 
41  protected:
42 
44  for (unsigned int i=0;i<qualityTests_.size();++i)
45  qualityTests_[i]->beginEvent(event,setup);
46  }
47 
48 
49 
50  std::vector<std::unique_ptr<PFRecHitQTestBase> > qualityTests_;
51 
52 };
53 
54 
57 #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)
void beginEvent(const edm::Event &event, const edm::EventSetup &setup)
How EventSelector::AcceptEvent() decides whether to accept an event for output otherwise it is excluding the probing of A single or multiple positive and the trigger will pass if any such matching triggers are PASS or EXCEPTION[A criterion thatmatches no triggers at all is detected and causes a throw.] A single negative with an expectation of appropriate bit checking in the decision and the trigger will pass if any such matching triggers are FAIL or EXCEPTION A wildcarded negative criterion that matches more than one trigger in the trigger but the state exists so we define the behavior If all triggers are the negative crieriion will lead to accepting the event(this again matches the behavior of"!*"before the partial wildcard feature was incorporated).The per-event"cost"of each negative criterion with multiple relevant triggers is about the same as!*was in the past
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
void setup(std::vector< TH2F > &depth, std::string name, std::string units="")
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:55