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
 
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.

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 }

References edm::ParameterSet::getParameter().

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.

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 }

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

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().

MuonDetIdAssociatorMaker::nPhi
const int nPhi
Definition: MuonDetIdAssociatorMaker.h:49
MuonDetIdAssociator
Definition: MuonDetIdAssociator.h:29
MuonDetIdAssociatorMaker::geomToken_
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
Definition: MuonDetIdAssociatorMaker.h:46
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition: DependentRecordImplementation.h:109
MuonDetIdAssociatorMaker::etaBinSize
const double etaBinSize
Definition: MuonDetIdAssociatorMaker.h:48
MuonDetIdAssociatorMaker::badChambersToken_
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badChambersToken_
Definition: MuonDetIdAssociatorMaker.h:47
MuonDetIdAssociatorMaker::includeME0_
const bool includeME0_
Definition: MuonDetIdAssociatorMaker.h:53
edm::ESConsumesCollectorT::consumes
auto consumes(ESInputTag const &tag)
Definition: ESConsumesCollector.h:137
MuonDetIdAssociatorMaker::includeGEM_
const bool includeGEM_
Definition: MuonDetIdAssociatorMaker.h:52
MuonDetIdAssociatorMaker::includeBadChambers_
const bool includeBadChambers_
Definition: MuonDetIdAssociatorMaker.h:51
MuonDetIdAssociatorMaker::nEta
const int nEta
Definition: MuonDetIdAssociatorMaker.h:50