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 
86  loadParameters(iConfig, iC);
87 }
TrackAssociatorParameters::theME0SegmentCollectionLabel
edm::InputTag theME0SegmentCollectionLabel
Definition: TrackAssociatorParameters.h:88
TrackAssociatorParameters::usePreshower
bool usePreshower
Definition: TrackAssociatorParameters.h:73
TrackAssociatorParameters::dREcal
double dREcal
Definition: TrackAssociatorParameters.h:40
TrackAssociatorParameters::EERecHitsToken
edm::EDGetTokenT< EERecHitCollection > EERecHitsToken
Definition: TrackAssociatorParameters.h:99
TrackAssociatorParameters::useME0
bool useME0
Definition: TrackAssociatorParameters.h:77
TrackAssociatorParameters::theHBHERecHitCollectionLabel
edm::InputTag theHBHERecHitCollectionLabel
Definition: TrackAssociatorParameters.h:83
TrackAssociatorParameters::useCalo
bool useCalo
Definition: TrackAssociatorParameters.h:72
TrackAssociatorParameters::dtSegmentsToken
edm::EDGetTokenT< DTRecSegment4DCollection > dtSegmentsToken
Definition: TrackAssociatorParameters.h:103
TrackAssociatorParameters::truthMatch
bool truthMatch
Definition: TrackAssociatorParameters.h:75
edm::SortedCollection< EcalRecHit >
TrackAssociatorParameters::simEcalHitsEEToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEEToken
Definition: TrackAssociatorParameters.h:110
CSCSegmentCollection
TrackAssociatorParameters::dREcalPreselection
double dREcalPreselection
Definition: TrackAssociatorParameters.h:44
TrackAssociatorParameters::useMuon
bool useMuon
Definition: TrackAssociatorParameters.h:74
TrackAssociatorParameters::caloTowersToken
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken
Definition: TrackAssociatorParameters.h:100
TrackAssociatorParameters::muonMaxDistanceY
double muonMaxDistanceY
Definition: TrackAssociatorParameters.h:65
TrackAssociatorParameters::theCaloTowerCollectionLabel
edm::InputTag theCaloTowerCollectionLabel
Definition: TrackAssociatorParameters.h:82
TrackAssociatorParameters::me0SegmentsToken
edm::EDGetTokenT< ME0SegmentCollection > me0SegmentsToken
Definition: TrackAssociatorParameters.h:106
TrackAssociatorParameters::simHcalHitsToken
edm::EDGetTokenT< edm::PCaloHitContainer > simHcalHitsToken
Definition: TrackAssociatorParameters.h:111
TrackAssociatorParameters::muonMaxDistanceSigmaY
double muonMaxDistanceSigmaY
Definition: TrackAssociatorParameters.h:67
TrackAssociatorParameters::theDTRecSegment4DCollectionLabel
edm::InputTag theDTRecSegment4DCollectionLabel
Definition: TrackAssociatorParameters.h:85
TrackAssociatorParameters::theEBRecHitCollectionLabel
edm::InputTag theEBRecHitCollectionLabel
Labels of the detector EDProducts.
Definition: TrackAssociatorParameters.h:80
TrackAssociatorParameters::muonMaxDistanceX
double muonMaxDistanceX
Definition: TrackAssociatorParameters.h:64
edm::ConsumesCollector::consumes
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
Definition: ConsumesCollector.h:49
TrackAssociatorParameters::dRPreshowerPreselection
double dRPreshowerPreselection
Definition: TrackAssociatorParameters.h:47
TrackAssociatorParameters::HBHEcollToken
edm::EDGetTokenT< HBHERecHitCollection > HBHEcollToken
Definition: TrackAssociatorParameters.h:101
TrackAssociatorParameters::loadParameters
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)
Definition: TrackAssociatorParameters.cc:18
DTRecSegment4DCollection
TrackAssociatorParameters::simTracksToken
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken
Definition: TrackAssociatorParameters.h:107
TrackAssociatorParameters::theCSCSegmentCollectionLabel
edm::InputTag theCSCSegmentCollectionLabel
Definition: TrackAssociatorParameters.h:86
HLT_2018_cff.InputTag
InputTag
Definition: HLT_2018_cff.py:79016
edm::ParameterSet
Definition: ParameterSet.h:36
TrackAssociatorParameters::useHO
bool useHO
Definition: TrackAssociatorParameters.h:71
TrackAssociatorParameters::simVerticesToken
edm::EDGetTokenT< edm::SimVertexContainer > simVerticesToken
Definition: TrackAssociatorParameters.h:108
GEMSegmentCollection
TrackAssociatorParameters::accountForTrajectoryChangeCalo
bool accountForTrajectoryChangeCalo
Definition: TrackAssociatorParameters.h:54
TrackAssociatorParameters::dRMuon
double dRMuon
Definition: TrackAssociatorParameters.h:42
TrackAssociatorParameters::HOcollToken
edm::EDGetTokenT< HORecHitCollection > HOcollToken
Definition: TrackAssociatorParameters.h:102
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
TrackAssociatorParameters::dRHcal
double dRHcal
Definition: TrackAssociatorParameters.h:41
TrackAssociatorParameters::useHcal
bool useHcal
Definition: TrackAssociatorParameters.h:70
TrackAssociatorParameters::dRMuonPreselection
double dRMuonPreselection
Definition: TrackAssociatorParameters.h:46
TrackAssociatorParameters::theEERecHitCollectionLabel
edm::InputTag theEERecHitCollectionLabel
Definition: TrackAssociatorParameters.h:81
TrackAssociatorParameters::muonMaxDistanceSigmaX
double muonMaxDistanceSigmaX
Definition: TrackAssociatorParameters.h:66
edm::SimTrackContainer
std::vector< SimTrack > SimTrackContainer
Definition: SimTrackContainer.h:12
TrackAssociatorParameters::useGEM
bool useGEM
Definition: TrackAssociatorParameters.h:76
TrackAssociatorParameters::simEcalHitsEBToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEBToken
Definition: TrackAssociatorParameters.h:109
edm::PCaloHitContainer
std::vector< PCaloHit > PCaloHitContainer
Definition: PCaloHitContainer.h:8
TrackAssociatorParameters::dRHcalPreselection
double dRHcalPreselection
Definition: TrackAssociatorParameters.h:45
TrackAssociatorParameters::gemSegmentsToken
edm::EDGetTokenT< GEMSegmentCollection > gemSegmentsToken
Definition: TrackAssociatorParameters.h:105
TrackAssociatorParameters::EBRecHitsToken
edm::EDGetTokenT< EBRecHitCollection > EBRecHitsToken
Definition: TrackAssociatorParameters.h:98
TrackAssociatorParameters::cscSegmentsToken
edm::EDGetTokenT< CSCSegmentCollection > cscSegmentsToken
Definition: TrackAssociatorParameters.h:104
TrackAssociatorParameters::theHORecHitCollectionLabel
edm::InputTag theHORecHitCollectionLabel
Definition: TrackAssociatorParameters.h:84
ME0SegmentCollection
TrackAssociatorParameters.h
edm::SimVertexContainer
std::vector< SimVertex > SimVertexContainer
Definition: SimVertexContainer.h:12
edm::InputTag
Definition: InputTag.h:15
edm::ConsumesCollector
Definition: ConsumesCollector.h:39
TrackAssociatorParameters::TrackAssociatorParameters
TrackAssociatorParameters()
Definition: TrackAssociatorParameters.h:36
TrackAssociatorParameters::useEcal
bool useEcal
Definition: TrackAssociatorParameters.h:69
TrackAssociatorParameters::theGEMSegmentCollectionLabel
edm::InputTag theGEMSegmentCollectionLabel
Definition: TrackAssociatorParameters.h:87