CMS 3D CMS Logo

List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
PFRecHitCreatorBase Class Referenceabstract

#include <PFRecHitCreatorBase.h>

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

Public Member Functions

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

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 beamerCreator::create(), reco::get(), edm::ParameterSet::getParameter(), dataset::name, qualityTests_, AlCaHLTBitMon_QueryRunRegistry::string, and ~PFRecHitCreatorBase().

30  {
31  std::vector<edm::ParameterSet> qTests = iConfig.getParameter<std::vector<edm::ParameterSet> >("qualityTests");
32  for (auto & qTest : qTests) {
33  std::string name = qTest.getParameter<std::string>("name");
34  qualityTests_.emplace_back(PFRecHitQTestFactory::get()->create(name,qTest));
35  }
36  }
T getParameter(std::string const &) const
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
def create(alignables, pedeDump, additionalData, outputFile, config)
T get(const Candidate &c)
Definition: component.h:55
virtual PFRecHitCreatorBase::~PFRecHitCreatorBase ( )
virtualdefault

Referenced by PFRecHitCreatorBase().

Member Function Documentation

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

Reimplemented in PFEcalEndcapRecHitCreator, and PFEcalBarrelRecHitCreator.

Definition at line 39 of file PFRecHitCreatorBase.h.

References importRecHits().

39 { }

Member Data Documentation

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