CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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")} {}
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
auto consumesFrom(ESInputTag const &tag)

Member Function Documentation

◆ make() [1/2]

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

Implements DetIdAssociatorMaker.

Definition at line 41 of file CaloDetIdAssociatorMaker.cc.

References etaBinSize, geomToken_, edm::eventsetup::DependentRecordImplementation< RecordT, ListT >::get(), nEta, and nPhi.

41  {
42  return make(iRecord.get(geomToken_), nPhi, nEta, etaBinSize);
43 }
const edm::ESGetToken< CaloGeometry, CaloGeometryRecord > geomToken_
std::unique_ptr< DetIdAssociator > make(const DetIdAssociatorRecord &) const final
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const

◆ make() [2/2]

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

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