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
 
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 ( edm::ParameterSet const &  pSet,
edm::ESConsumesCollectorT< DetIdAssociatorRecord > &&  iCollector 
)

Definition at line 34 of file CaloDetIdAssociatorMaker.cc.

References etaBinSize, nEta, and nPhi.

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

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
std::unique_ptr< DetIdAssociator > CaloDetIdAssociatorMaker::make ( CaloGeometry const &  iGeom,
int  nPhi,
int  nEta,
double  etaBinSize 
) const
privatevirtual

Member Data Documentation

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

Definition at line 45 of file CaloDetIdAssociatorMaker.h.

Referenced by make().

const int CaloDetIdAssociatorMaker::nEta
private
const int CaloDetIdAssociatorMaker::nPhi
private