CMS 3D CMS Logo

List of all members | Public Member Functions | Private Member Functions
EcalDetIdAssociatorMaker Class Reference

#include "EcalDetIdAssociatorMaker.h"

Inheritance diagram for EcalDetIdAssociatorMaker:
CaloDetIdAssociatorMaker DetIdAssociatorMaker

Public Member Functions

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

Private Member Functions

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

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 29 of file EcalDetIdAssociatorMaker.h.

Member Function Documentation

◆ CaloDetIdAssociatorMaker()

CaloDetIdAssociatorMaker::CaloDetIdAssociatorMaker

Definition at line 34 of file CaloDetIdAssociatorMaker.cc.

36  : geomToken_{iCollector.consumesFrom<CaloGeometry, CaloGeometryRecord>()},
37  etaBinSize{pSet.getParameter<double>("etaBinSize")},
38  nPhi{pSet.getParameter<int>("nPhi")},
39  nEta{pSet.getParameter<int>("nEta")} {}

◆ make()

std::unique_ptr<DetIdAssociator> EcalDetIdAssociatorMaker::make ( CaloGeometry const &  geom,
int  nPhi,
int  nEta,
double  etaBinSize 
) const
inlinefinalprivatevirtual

Reimplemented from CaloDetIdAssociatorMaker.

Definition at line 34 of file EcalDetIdAssociatorMaker.h.

34  {
35  return std::unique_ptr<DetIdAssociator>(new EcalDetIdAssociator(nPhi, nEta, etaBinSize, &geom));
36  }

References CaloDetIdAssociatorMaker::etaBinSize, relativeConstraints::geom, CaloDetIdAssociatorMaker::nEta, and CaloDetIdAssociatorMaker::nPhi.

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
relativeConstraints.geom
geom
Definition: relativeConstraints.py:72
CaloDetIdAssociatorMaker::nPhi
const int nPhi
Definition: CaloDetIdAssociatorMaker.h:47
CaloDetIdAssociatorMaker::etaBinSize
const double etaBinSize
Definition: CaloDetIdAssociatorMaker.h:46
EcalDetIdAssociator
Definition: EcalDetIdAssociator.h:23