CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PFRecHitCreatorBase Class Referenceabstract

#include <PFRecHitCreatorBase.h>

Inheritance diagram for PFRecHitCreatorBase:
PFEcalRecHitCreator< Geometry, Layer, Detector > PFEcalRecHitCreatorMaxSample< Geometry, Layer, Detector > PFHBHERecHitCreator PFHBHERecHitCreatorMaxSample PFHcalRecHitCreator< Digi, Geometry, Layer, Detector > PFHFRecHitCreator PFHGCalRecHitCreator< DET, Layer, subdet > PFPSRecHitCreator

Public Member Functions

virtual void importRecHits (std::auto_ptr< reco::PFRecHitCollection > &, std::auto_ptr< reco::PFRecHitCollection > &, const edm::Event &, const edm::EventSetup &)=0
 
 PFRecHitCreatorBase ()
 
 PFRecHitCreatorBase (const edm::ParameterSet &iConfig, edm::ConsumesCollector &iC)
 

Protected Member Functions

void beginEvent (const edm::Event &event, const edm::EventSetup &setup)
 

Protected Attributes

std::vector< std::unique_ptr
< PFRecHitQTestBase > > 
qualityTests_
 

Detailed Description

Definition at line 27 of file PFRecHitCreatorBase.h.

Constructor & Destructor Documentation

PFRecHitCreatorBase::PFRecHitCreatorBase ( )
inline

Definition at line 29 of file PFRecHitCreatorBase.h.

29 {}
PFRecHitCreatorBase::PFRecHitCreatorBase ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)
inline

Definition at line 30 of file PFRecHitCreatorBase.h.

References SurfaceDeformationFactory::create(), reco::get(), edm::ParameterSet::getParameter(), i, mergeVDriftHistosByStation::name, qualityTests_, and AlCaHLTBitMon_QueryRunRegistry::string.

30  {
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  }
T getParameter(std::string const &) const
int i
Definition: DBlmapReader.cc:9
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
SurfaceDeformation * create(int type, const std::vector< double > &params)
T get(const Candidate &c)
Definition: component.h:55

Member Function Documentation

void PFRecHitCreatorBase::beginEvent ( const edm::Event event,
const edm::EventSetup setup 
)
inlineprotected
virtual void PFRecHitCreatorBase::importRecHits ( std::auto_ptr< reco::PFRecHitCollection > &  ,
std::auto_ptr< reco::PFRecHitCollection > &  ,
const edm::Event ,
const edm::EventSetup  
)
pure virtual

Member Data Documentation

std::vector<std::unique_ptr<PFRecHitQTestBase> > PFRecHitCreatorBase::qualityTests_
protected