CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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,
CSCBadChambersRcd
badChambersToken_
 
const double etaBinSize
 
edm::ESGetToken
< GlobalTrackingGeometry,
GlobalTrackingGeometryRecord
geomToken_
 
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  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

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

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