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

Definition at line 34 of file MuonDetIdAssociatorMaker.cc.

References badChambersToken_, geomToken_, edm::ParameterSet::getParameter(), includeBadChambers_, includeGEM_, includeME0_, nEta, and nPhi.

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  iCollector.setConsumes(geomToken_).setConsumes(badChambersToken_);
43 }
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
ESConsumesCollector & setConsumes(ESGetToken< Product, Record > &token, ESInputTag const &tag)
edm::ESGetToken< CSCBadChambers, CSCBadChambersRcd > badChambersToken_

Member Function Documentation

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

Implements DetIdAssociatorMaker.

Definition at line 45 of file MuonDetIdAssociatorMaker.cc.

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

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

Member Data Documentation

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

Definition at line 47 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const double MuonDetIdAssociatorMaker::etaBinSize
private

Definition at line 48 of file MuonDetIdAssociatorMaker.h.

Referenced by make().

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

Definition at line 46 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const bool MuonDetIdAssociatorMaker::includeBadChambers_
private

Definition at line 51 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const bool MuonDetIdAssociatorMaker::includeGEM_
private

Definition at line 52 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const bool MuonDetIdAssociatorMaker::includeME0_
private

Definition at line 53 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const int MuonDetIdAssociatorMaker::nEta
private

Definition at line 50 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().

const int MuonDetIdAssociatorMaker::nPhi
private

Definition at line 49 of file MuonDetIdAssociatorMaker.h.

Referenced by make(), and MuonDetIdAssociatorMaker().