CMS 3D CMS Logo

TrackAssociatorParameters.cc
Go to the documentation of this file.
1 // -*- C++ -*-
2 //
3 // Package: TrackAssociator
4 // Class: TrackAssociatorParameters
5 //
6 /*
7 
8  Description: track associator parameters
9 
10 */
11 //
12 // Original Author: Dmytro Kovalskyi
13 //
14 //
15 
17 
19  dREcal = iConfig.getParameter<double>("dREcal");
20  dRHcal = iConfig.getParameter<double>("dRHcal");
21  dRMuon = iConfig.getParameter<double>("dRMuon");
22 
23  dREcalPreselection = iConfig.getParameter<double>("dREcalPreselection");
24  dRHcalPreselection = iConfig.getParameter<double>("dRHcalPreselection");
25  dRMuonPreselection = iConfig.getParameter<double>("dRMuonPreselection");
26  dRPreshowerPreselection = iConfig.getParameter<double>("dRPreshowerPreselection");
27 
28  muonMaxDistanceX = iConfig.getParameter<double>("muonMaxDistanceX");
29  muonMaxDistanceY = iConfig.getParameter<double>("muonMaxDistanceY");
30  muonMaxDistanceSigmaX = iConfig.getParameter<double>("muonMaxDistanceSigmaX");
31  muonMaxDistanceSigmaY = iConfig.getParameter<double>("muonMaxDistanceSigmaY");
32 
33  useEcal = iConfig.getParameter<bool>("useEcal");
34  useHcal = iConfig.getParameter<bool>("useHcal");
35  useHO = iConfig.getParameter<bool>("useHO");
36  useCalo = iConfig.getParameter<bool>("useCalo");
37  useMuon = iConfig.getParameter<bool>("useMuon");
38  usePreshower = iConfig.getParameter<bool>("usePreshower");
39  useGEM = iConfig.getParameter<bool>("useGEM");
40  useME0 = iConfig.getParameter<bool>("useME0");
41 
42  theEBRecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("EBRecHitCollectionLabel");
43  theEERecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("EERecHitCollectionLabel");
44  theCaloTowerCollectionLabel = iConfig.getParameter<edm::InputTag>("CaloTowerCollectionLabel");
45  theHBHERecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("HBHERecHitCollectionLabel");
46  theHORecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("HORecHitCollectionLabel");
47  theDTRecSegment4DCollectionLabel = iConfig.getParameter<edm::InputTag>("DTRecSegment4DCollectionLabel");
48  theCSCSegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("CSCSegmentCollectionLabel");
49  theGEMSegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("GEMSegmentCollectionLabel");
50  theME0SegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("ME0SegmentCollectionLabel");
51 
52  accountForTrajectoryChangeCalo = iConfig.getParameter<bool>("accountForTrajectoryChangeCalo");
53  // accountForTrajectoryChangeMuon = iConfig.getParameter<bool>("accountForTrajectoryChangeMuon");
54 
55  truthMatch = iConfig.getParameter<bool>("truthMatch");
56  muonMaxDistanceSigmaY = iConfig.getParameter<double>("trajectoryUncertaintyTolerance");
57 
58  if (useEcal) {
61  }
62  if (useCalo)
64  if (useHcal)
66  if (useHO)
68  if (useMuon) {
71  if (useGEM)
73  if (useME0)
75  }
76  if (truthMatch) {
79  simEcalHitsEBToken = iC.consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "EcalHitsEB"));
80  simEcalHitsEEToken = iC.consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "EcalHitsEE"));
81  simHcalHitsToken = iC.consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits", "HcalHits"));
82  }
83 
84  ecalDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "EcalDetIdAssociator"));
85  hcalDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "HcalDetIdAssociator"));
86  hoDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "HODetIdAssociator"));
87  caloDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "CaloDetIdAssociator"));
88  muonDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "MuonDetIdAssociator"));
89  preshowerDetIdAssociatorToken = iC.esConsumes(edm::ESInputTag("", "PreshowerDetIdAssociator"));
92  bFieldToken = iC.esConsumes();
93 }
94 
96  loadParameters(iConfig, iC);
97 }
TrackAssociatorParameters::theME0SegmentCollectionLabel
edm::InputTag theME0SegmentCollectionLabel
Definition: TrackAssociatorParameters.h:97
TrackAssociatorParameters::usePreshower
bool usePreshower
Definition: TrackAssociatorParameters.h:82
TrackAssociatorParameters::dREcal
double dREcal
Definition: TrackAssociatorParameters.h:49
edm::ESInputTag
Definition: ESInputTag.h:87
TrackAssociatorParameters::muonDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > muonDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:126
TrackAssociatorParameters::EERecHitsToken
edm::EDGetTokenT< EERecHitCollection > EERecHitsToken
Definition: TrackAssociatorParameters.h:108
TrackAssociatorParameters::useME0
bool useME0
Definition: TrackAssociatorParameters.h:86
TrackAssociatorParameters::theHBHERecHitCollectionLabel
edm::InputTag theHBHERecHitCollectionLabel
Definition: TrackAssociatorParameters.h:92
TrackAssociatorParameters::useCalo
bool useCalo
Definition: TrackAssociatorParameters.h:81
TrackAssociatorParameters::dtSegmentsToken
edm::EDGetTokenT< DTRecSegment4DCollection > dtSegmentsToken
Definition: TrackAssociatorParameters.h:112
HLT_FULL_cff.InputTag
InputTag
Definition: HLT_FULL_cff.py:89285
TrackAssociatorParameters::truthMatch
bool truthMatch
Definition: TrackAssociatorParameters.h:84
edm::SortedCollection< EcalRecHit >
TrackAssociatorParameters::simEcalHitsEEToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEEToken
Definition: TrackAssociatorParameters.h:119
CSCSegmentCollection
TrackAssociatorParameters::dREcalPreselection
double dREcalPreselection
Definition: TrackAssociatorParameters.h:53
TrackAssociatorParameters::useMuon
bool useMuon
Definition: TrackAssociatorParameters.h:83
TrackAssociatorParameters::caloTowersToken
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken
Definition: TrackAssociatorParameters.h:109
edm::ConsumesCollector::esConsumes
auto esConsumes()
Definition: ConsumesCollector.h:97
TrackAssociatorParameters::muonMaxDistanceY
double muonMaxDistanceY
Definition: TrackAssociatorParameters.h:74
TrackAssociatorParameters::theCaloTowerCollectionLabel
edm::InputTag theCaloTowerCollectionLabel
Definition: TrackAssociatorParameters.h:91
TrackAssociatorParameters::me0SegmentsToken
edm::EDGetTokenT< ME0SegmentCollection > me0SegmentsToken
Definition: TrackAssociatorParameters.h:115
TrackAssociatorParameters::simHcalHitsToken
edm::EDGetTokenT< edm::PCaloHitContainer > simHcalHitsToken
Definition: TrackAssociatorParameters.h:120
TrackAssociatorParameters::muonMaxDistanceSigmaY
double muonMaxDistanceSigmaY
Definition: TrackAssociatorParameters.h:76
TrackAssociatorParameters::theDTRecSegment4DCollectionLabel
edm::InputTag theDTRecSegment4DCollectionLabel
Definition: TrackAssociatorParameters.h:94
TrackAssociatorParameters::theEBRecHitCollectionLabel
edm::InputTag theEBRecHitCollectionLabel
Labels of the detector EDProducts.
Definition: TrackAssociatorParameters.h:89
TrackAssociatorParameters::muonMaxDistanceX
double muonMaxDistanceX
Definition: TrackAssociatorParameters.h:73
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:55
TrackAssociatorParameters::dRPreshowerPreselection
double dRPreshowerPreselection
Definition: TrackAssociatorParameters.h:56
TrackAssociatorParameters::HBHEcollToken
edm::EDGetTokenT< HBHERecHitCollection > HBHEcollToken
Definition: TrackAssociatorParameters.h:110
TrackAssociatorParameters::loadParameters
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: TrackAssociatorParameters.cc:18
DTRecSegment4DCollection
TrackAssociatorParameters::simTracksToken
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken
Definition: TrackAssociatorParameters.h:116
TrackAssociatorParameters::theCSCSegmentCollectionLabel
edm::InputTag theCSCSegmentCollectionLabel
Definition: TrackAssociatorParameters.h:95
TrackAssociatorParameters::hoDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > hoDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:124
edm::ParameterSet
Definition: ParameterSet.h:47
TrackAssociatorParameters::useHO
bool useHO
Definition: TrackAssociatorParameters.h:80
TrackAssociatorParameters::simVerticesToken
edm::EDGetTokenT< edm::SimVertexContainer > simVerticesToken
Definition: TrackAssociatorParameters.h:117
TrackAssociatorParameters::preshowerDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > preshowerDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:127
TrackAssociatorParameters::theTrackingGeometryToken
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > theTrackingGeometryToken
Definition: TrackAssociatorParameters.h:129
GEMSegmentCollection
TrackAssociatorParameters::accountForTrajectoryChangeCalo
bool accountForTrajectoryChangeCalo
Definition: TrackAssociatorParameters.h:63
TrackAssociatorParameters::dRMuon
double dRMuon
Definition: TrackAssociatorParameters.h:51
TrackAssociatorParameters::HOcollToken
edm::EDGetTokenT< HORecHitCollection > HOcollToken
Definition: TrackAssociatorParameters.h:111
TrackAssociatorParameters::dRHcal
double dRHcal
Definition: TrackAssociatorParameters.h:50
TrackAssociatorParameters::useHcal
bool useHcal
Definition: TrackAssociatorParameters.h:79
TrackAssociatorParameters::dRMuonPreselection
double dRMuonPreselection
Definition: TrackAssociatorParameters.h:55
TrackAssociatorParameters::theEERecHitCollectionLabel
edm::InputTag theEERecHitCollectionLabel
Definition: TrackAssociatorParameters.h:90
TrackAssociatorParameters::muonMaxDistanceSigmaX
double muonMaxDistanceSigmaX
Definition: TrackAssociatorParameters.h:75
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition: SimTrackContainer.h:12
TrackAssociatorParameters::useGEM
bool useGEM
Definition: TrackAssociatorParameters.h:85
TrackAssociatorParameters::caloDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > caloDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:125
TrackAssociatorParameters::simEcalHitsEBToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEBToken
Definition: TrackAssociatorParameters.h:118
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
TrackAssociatorParameters::theCaloGeometryToken
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > theCaloGeometryToken
Definition: TrackAssociatorParameters.h:128
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
TrackAssociatorParameters::bFieldToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bFieldToken
Definition: TrackAssociatorParameters.h:130
TrackAssociatorParameters::dRHcalPreselection
double dRHcalPreselection
Definition: TrackAssociatorParameters.h:54
TrackAssociatorParameters::gemSegmentsToken
edm::EDGetTokenT< GEMSegmentCollection > gemSegmentsToken
Definition: TrackAssociatorParameters.h:114
TrackAssociatorParameters::ecalDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > ecalDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:122
TrackAssociatorParameters::hcalDetIdAssociatorToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > hcalDetIdAssociatorToken
Definition: TrackAssociatorParameters.h:123
TrackAssociatorParameters::EBRecHitsToken
edm::EDGetTokenT< EBRecHitCollection > EBRecHitsToken
Definition: TrackAssociatorParameters.h:107
TrackAssociatorParameters::cscSegmentsToken
edm::EDGetTokenT< CSCSegmentCollection > cscSegmentsToken
Definition: TrackAssociatorParameters.h:113
TrackAssociatorParameters::theHORecHitCollectionLabel
edm::InputTag theHORecHitCollectionLabel
Definition: TrackAssociatorParameters.h:93
ME0SegmentCollection
TrackAssociatorParameters.h
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition: SimVertexContainer.h:12
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:45
TrackAssociatorParameters::TrackAssociatorParameters
TrackAssociatorParameters()
Definition: TrackAssociatorParameters.h:45
TrackAssociatorParameters::useEcal
bool useEcal
Definition: TrackAssociatorParameters.h:78
TrackAssociatorParameters::theGEMSegmentCollectionLabel
edm::InputTag theGEMSegmentCollectionLabel
Definition: TrackAssociatorParameters.h:96