CMS 3D CMS Logo

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

#include "MuonDetIdAssociatorMaker.h"

Inheritance diagram for MuonDetIdAssociatorMaker:
DetIdAssociatorMaker

Public Member Functions

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

Private Attributes

edm::ESGetToken< CSCBadChambers, CSCBadChambersRcdbadChambersToken_
 
const double etaBinSize
 
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecordgeomToken_
 
const bool includeBadChambers_
 
const bool includeGEM_
 
const bool includeME0_
 
const int nEta
 
const int nPhi
 

Detailed Description

Description: [one line class summary]

Usage: <usage>

Definition at line 38 of file MuonDetIdAssociatorMaker.h.

Constructor & Destructor Documentation

◆ MuonDetIdAssociatorMaker()

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

Definition at line 34 of file MuonDetIdAssociatorMaker.cc.

References edm::ParameterSet::getParameter().

36  : etaBinSize{pSet.getParameter<double>("etaBinSize")},
37  nPhi{pSet.getParameter<int>("nPhi")},
38  nEta{pSet.getParameter<int>("nEta")},
39  includeBadChambers_{pSet.getParameter<bool>("includeBadChambers")},
40  includeGEM_{pSet.getParameter<bool>("includeGEM")},
41  includeME0_{pSet.getParameter<bool>("includeME0")} {
42  geomToken_ = iCollector.consumes();
43  badChambersToken_ = iCollector.consumes();
44 }
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
auto consumes(ESInputTag const &tag)
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badChambersToken_

Member Function Documentation

◆ make()

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

Implements DetIdAssociatorMaker.

Definition at line 46 of file MuonDetIdAssociatorMaker.cc.

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

46  {
47  return std::unique_ptr<DetIdAssociator>(new MuonDetIdAssociator(nPhi,
48  nEta,
49  etaBinSize,
50  &iRecord.get(geomToken_),
51  &iRecord.get(badChambersToken_),
54  includeME0_));
55 }
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badChambersToken_

Member Data Documentation

◆ badChambersToken_

edm::ESGetToken<CSCBadChambers, CSCBadChambersRcd> MuonDetIdAssociatorMaker::badChambersToken_
private

Definition at line 47 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ etaBinSize

const double MuonDetIdAssociatorMaker::etaBinSize
private

Definition at line 48 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ geomToken_

edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> MuonDetIdAssociatorMaker::geomToken_
private

Definition at line 46 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ includeBadChambers_

const bool MuonDetIdAssociatorMaker::includeBadChambers_
private

Definition at line 51 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ includeGEM_

const bool MuonDetIdAssociatorMaker::includeGEM_
private

Definition at line 52 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ includeME0_

const bool MuonDetIdAssociatorMaker::includeME0_
private

Definition at line 53 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ nEta

const int MuonDetIdAssociatorMaker::nEta
private

Definition at line 50 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

◆ nPhi

const int MuonDetIdAssociatorMaker::nPhi
private

Definition at line 49 of file MuonDetIdAssociatorMaker.h.

Referenced by make().