CMS 3D CMS Logo

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

#include <PFRecHitCreatorBase.h>

Inheritance diagram for PFRecHitCreatorBase:
PFEcalBarrelRecHitCreator PFEcalEndcapRecHitCreator PFHBHERecHitCreator 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 &cc)
 
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 23 of file PFRecHitCreatorBase.h.

Constructor & Destructor Documentation

PFRecHitCreatorBase::PFRecHitCreatorBase ( )
inline

Definition at line 25 of file PFRecHitCreatorBase.h.

25 {}
PFRecHitCreatorBase::PFRecHitCreatorBase ( const edm::ParameterSet iConfig,
edm::ConsumesCollector cc 
)
inline

Definition at line 26 of file PFRecHitCreatorBase.h.

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

26  {
27  std::vector<edm::ParameterSet> qTests = iConfig.getParameter<std::vector<edm::ParameterSet> >("qualityTests");
28  for (auto& qTest : qTests) {
29  std::string name = qTest.getParameter<std::string>("name");
30  qualityTests_.emplace_back(PFRecHitQTestFactory::get()->create(name, qTest, cc));
31  }
32  }
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
#define get
virtual PFRecHitCreatorBase::~PFRecHitCreatorBase ( )
virtualdefault

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 35 of file PFRecHitCreatorBase.h.

35 {}

Member Data Documentation

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