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 | Public Attributes
TrackAssociatorParameters Class Reference

#include <TrackAssociatorParameters.h>

Public Member Functions

void loadParameters (const edm::ParameterSet &, edm::ConsumesCollector &)
 
 TrackAssociatorParameters ()
 
 TrackAssociatorParameters (const edm::ParameterSet &, edm::ConsumesCollector &&)
 

Public Attributes

bool accountForTrajectoryChangeCalo
 
edm::ESGetToken< MagneticField,
IdealMagneticFieldRecord
bFieldToken
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
caloDetIdAssociatorToken
 
edm::EDGetTokenT
< CaloTowerCollection
caloTowersToken
 
edm::EDGetTokenT
< CSCSegmentCollection
cscSegmentsToken
 
double dREcal
 
double dREcalPreselection
 
double dRHcal
 
double dRHcalPreselection
 
double dRMuon
 
double dRMuonPreselection
 
double dRPreshowerPreselection
 
edm::EDGetTokenT
< DTRecSegment4DCollection
dtSegmentsToken
 
edm::EDGetTokenT
< EBRecHitCollection
EBRecHitsToken
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
ecalDetIdAssociatorToken
 
edm::EDGetTokenT
< EERecHitCollection
EERecHitsToken
 
edm::EDGetTokenT
< GEMSegmentCollection
gemSegmentsToken
 
edm::EDGetTokenT
< HBHERecHitCollection
HBHEcollToken
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
hcalDetIdAssociatorToken
 
edm::EDGetTokenT
< HORecHitCollection
HOcollToken
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
hoDetIdAssociatorToken
 
edm::EDGetTokenT
< ME0SegmentCollection
me0SegmentsToken
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
muonDetIdAssociatorToken
 
double muonMaxDistanceSigmaX
 
double muonMaxDistanceSigmaY
 
double muonMaxDistanceX
 
double muonMaxDistanceY
 
edm::ESGetToken
< DetIdAssociator,
DetIdAssociatorRecord
preshowerDetIdAssociatorToken
 
edm::EDGetTokenT
< edm::PCaloHitContainer
simEcalHitsEBToken
 
edm::EDGetTokenT
< edm::PCaloHitContainer
simEcalHitsEEToken
 
edm::EDGetTokenT
< edm::PCaloHitContainer
simHcalHitsToken
 
edm::EDGetTokenT
< edm::SimTrackContainer
simTracksToken
 
edm::EDGetTokenT
< edm::SimVertexContainer
simVerticesToken
 
edm::ESGetToken< CaloGeometry,
CaloGeometryRecord
theCaloGeometryToken
 
edm::InputTag theCaloTowerCollectionLabel
 
edm::InputTag theCSCSegmentCollectionLabel
 
edm::InputTag theDTRecSegment4DCollectionLabel
 
edm::InputTag theEBRecHitCollectionLabel
 Labels of the detector EDProducts. More...
 
edm::InputTag theEERecHitCollectionLabel
 
edm::InputTag theGEMSegmentCollectionLabel
 
edm::InputTag theHBHERecHitCollectionLabel
 
edm::InputTag theHORecHitCollectionLabel
 
edm::InputTag theME0SegmentCollectionLabel
 
edm::ESGetToken
< GlobalTrackingGeometry,
GlobalTrackingGeometryRecord
theTrackingGeometryToken
 
double trajectoryUncertaintyTolerance
 
bool truthMatch
 
bool useCalo
 
bool useEcal
 
bool useGEM
 
bool useHcal
 
bool useHO
 
bool useME0
 
bool useMuon
 
bool usePreshower
 

Detailed Description

Definition at line 43 of file TrackAssociatorParameters.h.

Constructor & Destructor Documentation

TrackAssociatorParameters::TrackAssociatorParameters ( )
inline

Definition at line 45 of file TrackAssociatorParameters.h.

45 {}
TrackAssociatorParameters::TrackAssociatorParameters ( const edm::ParameterSet iConfig,
edm::ConsumesCollector &&  iC 
)

Definition at line 95 of file TrackAssociatorParameters.cc.

References loadParameters().

95  {
96  loadParameters(iConfig, iC);
97 }
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)

Member Function Documentation

void TrackAssociatorParameters::loadParameters ( const edm::ParameterSet iConfig,
edm::ConsumesCollector iC 
)

Definition at line 18 of file TrackAssociatorParameters.cc.

References accountForTrajectoryChangeCalo, bFieldToken, caloDetIdAssociatorToken, caloTowersToken, edm::ConsumesCollector::consumes(), cscSegmentsToken, dREcal, dREcalPreselection, dRHcal, dRHcalPreselection, dRMuon, dRMuonPreselection, dRPreshowerPreselection, dtSegmentsToken, EBRecHitsToken, ecalDetIdAssociatorToken, EERecHitsToken, edm::ConsumesCollector::esConsumes(), gemSegmentsToken, edm::ParameterSet::getParameter(), HBHEcollToken, hcalDetIdAssociatorToken, HOcollToken, hoDetIdAssociatorToken, HLT_FULL_cff::InputTag, me0SegmentsToken, muonDetIdAssociatorToken, muonMaxDistanceSigmaX, muonMaxDistanceSigmaY, muonMaxDistanceX, muonMaxDistanceY, preshowerDetIdAssociatorToken, simEcalHitsEBToken, simEcalHitsEEToken, simHcalHitsToken, simTracksToken, simVerticesToken, theCaloGeometryToken, theCaloTowerCollectionLabel, theCSCSegmentCollectionLabel, theDTRecSegment4DCollectionLabel, theEBRecHitCollectionLabel, theEERecHitCollectionLabel, theGEMSegmentCollectionLabel, theHBHERecHitCollectionLabel, theHORecHitCollectionLabel, theME0SegmentCollectionLabel, theTrackingGeometryToken, truthMatch, useCalo, useEcal, useGEM, useHcal, useHO, useME0, useMuon, and usePreshower.

Referenced by CaloCleaner< T >::CaloCleaner(), muonisolation::CaloExtractorByAssociator::CaloExtractorByAssociator(), EcalCosmicsHists::EcalCosmicsHists(), EopTreeWriter::EopTreeWriter(), InterestingTrackEcalDetIdProducer::InterestingTrackEcalDetIdProducer(), IsolatedTracksCone::IsolatedTracksCone(), MuonIdProducer::MuonIdProducer(), cms::MuonMETValueMapProducer::MuonMETValueMapProducer(), pat::PATIsolatedTrackProducer::PATIsolatedTrackProducer(), TrackAssociatorParameters(), and ValidIsoTrkCalib::ValidIsoTrkCalib().

18  {
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 }
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > hoDetIdAssociatorToken
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > caloDetIdAssociatorToken
std::vector< PCaloHit > PCaloHitContainer
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > preshowerDetIdAssociatorToken
edm::EDGetTokenT< GEMSegmentCollection > gemSegmentsToken
edm::EDGetTokenT< EBRecHitCollection > EBRecHitsToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > ecalDetIdAssociatorToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEBToken
edm::EDGetTokenT< HORecHitCollection > HOcollToken
edm::ESGetToken< CaloGeometry, CaloGeometryRecord > theCaloGeometryToken
edm::EDGetTokenT< ME0SegmentCollection > me0SegmentsToken
edm::ESGetToken< GlobalTrackingGeometry, GlobalTrackingGeometryRecord > theTrackingGeometryToken
edm::EDGetTokenT< DTRecSegment4DCollection > dtSegmentsToken
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bFieldToken
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > muonDetIdAssociatorToken
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken
edm::EDGetTokenT< EERecHitCollection > EERecHitsToken
edm::EDGetTokenT< HBHERecHitCollection > HBHEcollToken
edm::EDGetTokenT< edm::SimVertexContainer > simVerticesToken
std::vector< SimVertex > SimVertexContainer
T getParameter(std::string const &) const
Definition: ParameterSet.h:303
edm::EDGetTokenT< edm::PCaloHitContainer > simHcalHitsToken
edm::InputTag theEBRecHitCollectionLabel
Labels of the detector EDProducts.
edm::ESGetToken< DetIdAssociator, DetIdAssociatorRecord > hcalDetIdAssociatorToken
edm::EDGetTokenT< CSCSegmentCollection > cscSegmentsToken
std::vector< SimTrack > SimTrackContainer
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEEToken

Member Data Documentation

bool TrackAssociatorParameters::accountForTrajectoryChangeCalo

account for trajectory change for calorimeters. allows to compute energy around original track direction (for example neutral particles in a jet) as well as energy around track projection on the inner surface of a calorimeter. Affects performance, so use wisely.

Definition at line 63 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::fillCaloTowers(), TrackDetectorAssociator::fillEcal(), TrackDetectorAssociator::fillHcal(), TrackDetectorAssociator::fillHO(), and loadParameters().

edm::ESGetToken<MagneticField, IdealMagneticFieldRecord> TrackAssociatorParameters::bFieldToken
edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::caloDetIdAssociatorToken

Definition at line 125 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::EDGetTokenT<CaloTowerCollection> TrackAssociatorParameters::caloTowersToken
edm::EDGetTokenT<CSCSegmentCollection> TrackAssociatorParameters::cscSegmentsToken
double TrackAssociatorParameters::dREcal
double TrackAssociatorParameters::dREcalPreselection
double TrackAssociatorParameters::dRHcal
double TrackAssociatorParameters::dRHcalPreselection
double TrackAssociatorParameters::dRMuon
double TrackAssociatorParameters::dRMuonPreselection
double TrackAssociatorParameters::dRPreshowerPreselection
edm::EDGetTokenT<DTRecSegment4DCollection> TrackAssociatorParameters::dtSegmentsToken
edm::EDGetTokenT<EBRecHitCollection> TrackAssociatorParameters::EBRecHitsToken
edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::ecalDetIdAssociatorToken

Definition at line 122 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::EDGetTokenT<EERecHitCollection> TrackAssociatorParameters::EERecHitsToken
edm::EDGetTokenT<GEMSegmentCollection> TrackAssociatorParameters::gemSegmentsToken
edm::EDGetTokenT<HBHERecHitCollection> TrackAssociatorParameters::HBHEcollToken
edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::hcalDetIdAssociatorToken

Definition at line 123 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::EDGetTokenT<HORecHitCollection> TrackAssociatorParameters::HOcollToken

Definition at line 111 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::fillHO(), and loadParameters().

edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::hoDetIdAssociatorToken

Definition at line 124 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::EDGetTokenT<ME0SegmentCollection> TrackAssociatorParameters::me0SegmentsToken
edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::muonDetIdAssociatorToken

Definition at line 126 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

double TrackAssociatorParameters::muonMaxDistanceSigmaX
double TrackAssociatorParameters::muonMaxDistanceSigmaY
double TrackAssociatorParameters::muonMaxDistanceX

maximal distance from a muon chamber. Can be considered as a preselection cut and fancier cuts can be applied in a muon producer, since the distance from a chamber should be available as output of the TrackAssociation

Definition at line 73 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::getTAMuonChamberMatches(), and loadParameters().

double TrackAssociatorParameters::muonMaxDistanceY
edm::ESGetToken<DetIdAssociator, DetIdAssociatorRecord> TrackAssociatorParameters::preshowerDetIdAssociatorToken

Definition at line 127 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::EDGetTokenT<edm::PCaloHitContainer> TrackAssociatorParameters::simEcalHitsEBToken
edm::EDGetTokenT<edm::PCaloHitContainer> TrackAssociatorParameters::simEcalHitsEEToken
edm::EDGetTokenT<edm::PCaloHitContainer> TrackAssociatorParameters::simHcalHitsToken
edm::EDGetTokenT<edm::SimTrackContainer> TrackAssociatorParameters::simTracksToken
edm::EDGetTokenT<edm::SimVertexContainer> TrackAssociatorParameters::simVerticesToken
edm::ESGetToken<CaloGeometry, CaloGeometryRecord> TrackAssociatorParameters::theCaloGeometryToken

Definition at line 128 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

edm::InputTag TrackAssociatorParameters::theCaloTowerCollectionLabel

Definition at line 91 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theCSCSegmentCollectionLabel

Definition at line 95 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theDTRecSegment4DCollectionLabel

Definition at line 94 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theEBRecHitCollectionLabel

Labels of the detector EDProducts.

Definition at line 89 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theEERecHitCollectionLabel

Definition at line 90 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theGEMSegmentCollectionLabel

Definition at line 96 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theHBHERecHitCollectionLabel

Definition at line 92 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theHORecHitCollectionLabel

Definition at line 93 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theME0SegmentCollectionLabel

Definition at line 97 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::ESGetToken<GlobalTrackingGeometry, GlobalTrackingGeometryRecord> TrackAssociatorParameters::theTrackingGeometryToken

Definition at line 129 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::init(), and loadParameters().

double TrackAssociatorParameters::trajectoryUncertaintyTolerance

Definition at line 105 of file TrackAssociatorParameters.h.

bool TrackAssociatorParameters::truthMatch
bool TrackAssociatorParameters::useCalo
bool TrackAssociatorParameters::useEcal
bool TrackAssociatorParameters::useGEM
bool TrackAssociatorParameters::useHcal
bool TrackAssociatorParameters::useHO
bool TrackAssociatorParameters::useME0
bool TrackAssociatorParameters::useMuon
bool TrackAssociatorParameters::usePreshower