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 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() [1/2]

PFRecHitCreatorBase::PFRecHitCreatorBase ( )
inline

Definition at line 25 of file PFRecHitCreatorBase.h.

25 {}

◆ PFRecHitCreatorBase() [2/2]

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(), Skims_PA_cff::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  }
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
std::vector< std::unique_ptr< PFRecHitQTestBase > > qualityTests_
def create(alignables, pedeDump, additionalData, outputFile, config)
#define get

◆ ~PFRecHitCreatorBase()

virtual PFRecHitCreatorBase::~PFRecHitCreatorBase ( )
virtualdefault

Member Function Documentation

◆ beginEvent()

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

◆ importRecHits()

virtual void PFRecHitCreatorBase::importRecHits ( std::unique_ptr< reco::PFRecHitCollection > &  ,
std::unique_ptr< reco::PFRecHitCollection > &  ,
const edm::Event ,
const edm::EventSetup  
)
pure virtual

◆ init()

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

◆ qualityTests_

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