CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions | Private Attributes
CaloDetIdAssociatorMaker Class Reference

#include "CaloDetIdAssociatorMaker.h"

Inheritance diagram for CaloDetIdAssociatorMaker:
DetIdAssociatorMaker EcalDetIdAssociatorMaker HcalDetIdAssociatorMaker HODetIdAssociatorMaker PreshowerDetIdAssociatorMaker

Public Member Functions

 CaloDetIdAssociatorMaker (edm::ParameterSet const &, edm::ESConsumesCollectorT< DetIdAssociatorRecord > &&)
 
std::unique_ptr< DetIdAssociatormake (const DetIdAssociatorRecord &) const final
 
- Public Member Functions inherited from DetIdAssociatorMaker
 DetIdAssociatorMaker ()=default
 
 DetIdAssociatorMaker (const DetIdAssociatorMaker &)=delete
 
const DetIdAssociatorMakeroperator= (const DetIdAssociatorMaker &)=delete
 
virtual ~DetIdAssociatorMaker ()=default
 

Private Member Functions

virtual std::unique_ptr< DetIdAssociatormake (CaloGeometry const &, int nPhi, int nEta, double etaBinSize) const
 

Private Attributes

const double etaBinSize
 
const edm::ESGetToken< CaloGeometry, CaloGeometryRecordgeomToken_
 
const int nEta
 
const int nPhi
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 36 of file CaloDetIdAssociatorMaker.h.

Constructor & Destructor Documentation

◆ CaloDetIdAssociatorMaker()

CaloDetIdAssociatorMaker::CaloDetIdAssociatorMaker ( edm::ParameterSet const &  pSet,
edm::ESConsumesCollectorT< DetIdAssociatorRecord > &&  iCollector 
)

Definition at line 34 of file CaloDetIdAssociatorMaker.cc.

37  etaBinSize{pSet.getParameter<double>("etaBinSize")},
38  nPhi{pSet.getParameter<int>("nPhi")},
39  nEta{pSet.getParameter<int>("nEta")} {}

Member Function Documentation

◆ make() [1/2]

std::unique_ptr< DetIdAssociator > CaloDetIdAssociatorMaker::make ( CaloGeometry const &  iGeom,
int  nPhi,
int  nEta,
double  etaBinSize 
) const
privatevirtual

Reimplemented in EcalDetIdAssociatorMaker, HcalDetIdAssociatorMaker, HODetIdAssociatorMaker, and PreshowerDetIdAssociatorMaker.

Definition at line 45 of file CaloDetIdAssociatorMaker.cc.

48  {
49  return std::unique_ptr<DetIdAssociator>(new CaloDetIdAssociator(nPhi, nEta, etaBinSize, &iGeom));
50 }

References etaBinSize, nEta, and nPhi.

◆ make() [2/2]

std::unique_ptr< DetIdAssociator > CaloDetIdAssociatorMaker::make ( const DetIdAssociatorRecord iRecord) const
finalvirtual

Member Data Documentation

◆ etaBinSize

const double CaloDetIdAssociatorMaker::etaBinSize
private

◆ geomToken_

const edm::ESGetToken<CaloGeometry, CaloGeometryRecord> CaloDetIdAssociatorMaker::geomToken_
private

Definition at line 45 of file CaloDetIdAssociatorMaker.h.

Referenced by make().

◆ nEta

const int CaloDetIdAssociatorMaker::nEta
private

◆ nPhi

const int CaloDetIdAssociatorMaker::nPhi
private
CaloDetIdAssociatorMaker::make
std::unique_ptr< DetIdAssociator > make(const DetIdAssociatorRecord &) const final
Definition: CaloDetIdAssociatorMaker.cc:41
CaloGeometryRecord
Definition: CaloGeometryRecord.h:30
CaloGeometry
Definition: CaloGeometry.h:21
CaloDetIdAssociatorMaker::geomToken_
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
Definition: CaloDetIdAssociatorMaker.h:45
CaloDetIdAssociatorMaker::nEta
const int nEta
Definition: CaloDetIdAssociatorMaker.h:48
CaloDetIdAssociator
Definition: CaloDetIdAssociator.h:27
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
CaloDetIdAssociatorMaker::nPhi
const int nPhi
Definition: CaloDetIdAssociatorMaker.h:47
edm::ESConsumesCollector::consumesFrom
auto consumesFrom(ESInputTag const &tag)
Definition: ESConsumesCollector.h:71
CaloDetIdAssociatorMaker::etaBinSize
const double etaBinSize
Definition: CaloDetIdAssociatorMaker.h:46