CMS 3D CMS Logo

MuonDetIdAssociatorMaker.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TrackingTools/TrackAssociator
4 // Class : MuonDetIdAssociatorMaker
5 //
6 // Implementation:
7 // [Notes on implementation]
8 //
9 // Original Author: Christopher Jones
10 // Created: Thu, 30 May 2019 15:05:57 GMT
11 //
12 
13 // system include files
14 
15 // user include files
21 #include "MuonDetIdAssociator.h"
22 
23 //
24 // constants, enums and typedefs
25 //
26 
27 //
28 // static data member definitions
29 //
30 
31 //
32 // constructors and destructor
33 //
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 }
45 
46 std::unique_ptr<DetIdAssociator> MuonDetIdAssociatorMaker::make(const DetIdAssociatorRecord& iRecord) const {
47  return std::unique_ptr<DetIdAssociator>(new MuonDetIdAssociator(nPhi,
48  nEta,
49  etaBinSize,
50  &iRecord.get(geomToken_),
51  &iRecord.get(badChambersToken_),
54  includeME0_));
55 }
MuonDetIdAssociatorMaker::nPhi
const int nPhi
Definition: MuonDetIdAssociatorMaker.h:49
MuonDetIdAssociator
Definition: MuonDetIdAssociator.h:29
ESHandle.h
HLT_FULL_cff.nEta
nEta
Definition: HLT_FULL_cff.py:6586
MuonDetIdAssociatorMaker::geomToken_
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > geomToken_
Definition: MuonDetIdAssociatorMaker.h:46
MuonDetIdAssociatorMaker::make
std::unique_ptr< DetIdAssociator > make(const DetIdAssociatorRecord &) const final
Definition: MuonDetIdAssociatorMaker.cc:46
HLT_FULL_cff.etaBinSize
etaBinSize
Definition: HLT_FULL_cff.py:6585
edm::ESConsumesCollectorT
Definition: ESConsumesCollector.h:125
MuonDetIdAssociatorMaker::MuonDetIdAssociatorMaker
MuonDetIdAssociatorMaker(edm::ParameterSet const &, edm::ESConsumesCollectorT< DetIdAssociatorRecord > &&)
Definition: MuonDetIdAssociatorMaker.cc:34
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
edm::ParameterSet
Definition: ParameterSet.h:47
HLT_FULL_cff.nPhi
nPhi
Definition: HLT_FULL_cff.py:6587
MuonDetIdAssociatorMaker::includeME0_
const bool includeME0_
Definition: MuonDetIdAssociatorMaker.h:53
DetIdAssociatorRecord.h
DetIdAssociatorRecord
Definition: DetIdAssociatorRecord.h:13
MuonDetIdAssociatorMaker::includeGEM_
const bool includeGEM_
Definition: MuonDetIdAssociatorMaker.h:52
MuonDetIdAssociatorMaker::includeBadChambers_
const bool includeBadChambers_
Definition: MuonDetIdAssociatorMaker.h:51
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
MuonDetIdAssociator.h
ParameterSet.h
MuonDetIdAssociatorMaker.h
MuonGeometryRecord.h
MuonDetIdAssociatorMaker::nEta
const int nEta
Definition: MuonDetIdAssociatorMaker.h:50