CMS 3D CMS Logo

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::EDGetTokenT< CaloTowerCollectioncaloTowersToken
 
edm::EDGetTokenT< CSCSegmentCollectioncscSegmentsToken
 
double dREcal
 
double dREcalPreselection
 
double dRHcal
 
double dRHcalPreselection
 
double dRMuon
 
double dRMuonPreselection
 
double dRPreshowerPreselection
 
edm::EDGetTokenT< DTRecSegment4DCollectiondtSegmentsToken
 
edm::EDGetTokenT< EBRecHitCollectionEBRecHitsToken
 
edm::EDGetTokenT< EERecHitCollectionEERecHitsToken
 
edm::EDGetTokenT< GEMSegmentCollectiongemSegmentsToken
 
edm::EDGetTokenT< HBHERecHitCollectionHBHEcollToken
 
edm::EDGetTokenT< HORecHitCollectionHOcollToken
 
edm::EDGetTokenT< ME0SegmentCollectionme0SegmentsToken
 
double muonMaxDistanceSigmaX
 
double muonMaxDistanceSigmaY
 
double muonMaxDistanceX
 
double muonMaxDistanceY
 
edm::EDGetTokenT< edm::PCaloHitContainersimEcalHitsEBToken
 
edm::EDGetTokenT< edm::PCaloHitContainersimEcalHitsEEToken
 
edm::EDGetTokenT< edm::PCaloHitContainersimHcalHitsToken
 
edm::EDGetTokenT< edm::SimTrackContainersimTracksToken
 
edm::EDGetTokenT< edm::SimVertexContainersimVerticesToken
 
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
 
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 34 of file TrackAssociatorParameters.h.

Constructor & Destructor Documentation

TrackAssociatorParameters::TrackAssociatorParameters ( )
inline

Definition at line 36 of file TrackAssociatorParameters.h.

References loadParameters().

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

Definition at line 82 of file TrackAssociatorParameters.cc.

References loadParameters().

83 {
84  loadParameters( iConfig, iC );
85 }
void loadParameters(const edm::ParameterSet &, edm::ConsumesCollector &)

Member Function Documentation

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

Definition at line 19 of file TrackAssociatorParameters.cc.

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

Referenced by BetaCalculatorECAL::BetaCalculatorECAL(), CaloCleaner< T >::CaloCleaner(), muonisolation::CaloExtractorByAssociator::CaloExtractorByAssociator(), EcalCosmicsHists::EcalCosmicsHists(), EopTreeWriter::EopTreeWriter(), HighPtTrackEcalDetIdProducer::HighPtTrackEcalDetIdProducer(), InterestingTrackEcalDetIdProducer::InterestingTrackEcalDetIdProducer(), IsolatedTracksCone::IsolatedTracksCone(), muonisolation::JetExtractor::JetExtractor(), MuonIdProducer::MuonIdProducer(), cms::MuonMETValueMapProducer::MuonMETValueMapProducer(), ReduceHcalRecHitCollectionProducer::ReduceHcalRecHitCollectionProducer(), and TrackAssociatorParameters().

20 {
21  dREcal = iConfig.getParameter<double>("dREcal");
22  dRHcal = iConfig.getParameter<double>("dRHcal");
23  dRMuon = iConfig.getParameter<double>("dRMuon");
24 
25  dREcalPreselection = iConfig.getParameter<double>("dREcalPreselection");
26  dRHcalPreselection = iConfig.getParameter<double>("dRHcalPreselection");
27  dRMuonPreselection = iConfig.getParameter<double>("dRMuonPreselection");
28  dRPreshowerPreselection = iConfig.getParameter<double>("dRPreshowerPreselection");
29 
30  muonMaxDistanceX = iConfig.getParameter<double>("muonMaxDistanceX");
31  muonMaxDistanceY = iConfig.getParameter<double>("muonMaxDistanceY");
32  muonMaxDistanceSigmaX = iConfig.getParameter<double>("muonMaxDistanceSigmaX");
33  muonMaxDistanceSigmaY = iConfig.getParameter<double>("muonMaxDistanceSigmaY");
34 
35  useEcal = iConfig.getParameter<bool>("useEcal");
36  useHcal = iConfig.getParameter<bool>("useHcal");
37  useHO = iConfig.getParameter<bool>("useHO");
38  useCalo = iConfig.getParameter<bool>("useCalo");
39  useMuon = iConfig.getParameter<bool>("useMuon");
40  usePreshower = iConfig.getParameter<bool>("usePreshower");
41  useGEM = iConfig.getParameter<bool>("useGEM");
42  useME0 = iConfig.getParameter<bool>("useME0");
43 
44  theEBRecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("EBRecHitCollectionLabel");
45  theEERecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("EERecHitCollectionLabel");
46  theCaloTowerCollectionLabel = iConfig.getParameter<edm::InputTag>("CaloTowerCollectionLabel");
47  theHBHERecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("HBHERecHitCollectionLabel");
48  theHORecHitCollectionLabel = iConfig.getParameter<edm::InputTag>("HORecHitCollectionLabel");
49  theDTRecSegment4DCollectionLabel = iConfig.getParameter<edm::InputTag>("DTRecSegment4DCollectionLabel");
50  theCSCSegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("CSCSegmentCollectionLabel");
51  theGEMSegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("GEMSegmentCollectionLabel");
52  theME0SegmentCollectionLabel = iConfig.getParameter<edm::InputTag>("ME0SegmentCollectionLabel");
53 
54  accountForTrajectoryChangeCalo = iConfig.getParameter<bool>("accountForTrajectoryChangeCalo");
55  // accountForTrajectoryChangeMuon = iConfig.getParameter<bool>("accountForTrajectoryChangeMuon");
56 
57  truthMatch = iConfig.getParameter<bool>("truthMatch");
58  muonMaxDistanceSigmaY = iConfig.getParameter<double>("trajectoryUncertaintyTolerance");
59 
60  if (useEcal) {
63  }
67  if (useMuon) {
72  }
73  if (truthMatch) {
76  simEcalHitsEBToken=iC.consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits","EcalHitsEB"));
77  simEcalHitsEEToken=iC.consumes<edm::PCaloHitContainer>(edm::InputTag("g4SimHits","EcalHitsEE"));
79  }
80 }
edm::EDGetTokenT< CaloTowerCollection > caloTowersToken
EDGetTokenT< ProductType > consumes(edm::InputTag const &tag)
T getParameter(std::string const &) const
std::vector< PCaloHit > PCaloHitContainer
edm::EDGetTokenT< GEMSegmentCollection > gemSegmentsToken
edm::EDGetTokenT< EBRecHitCollection > EBRecHitsToken
edm::EDGetTokenT< edm::PCaloHitContainer > simEcalHitsEBToken
edm::EDGetTokenT< HORecHitCollection > HOcollToken
edm::EDGetTokenT< ME0SegmentCollection > me0SegmentsToken
edm::EDGetTokenT< DTRecSegment4DCollection > dtSegmentsToken
edm::EDGetTokenT< edm::SimTrackContainer > simTracksToken
edm::EDGetTokenT< EERecHitCollection > EERecHitsToken
edm::EDGetTokenT< HBHERecHitCollection > HBHEcollToken
edm::EDGetTokenT< edm::SimVertexContainer > simVerticesToken
std::vector< SimVertex > SimVertexContainer
edm::EDGetTokenT< edm::PCaloHitContainer > simHcalHitsToken
edm::InputTag theEBRecHitCollectionLabel
Labels of the detector EDProducts.
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 54 of file TrackAssociatorParameters.h.

Referenced by TrackDetectorAssociator::fillCaloTowers(), TrackDetectorAssociator::fillEcal(), TrackDetectorAssociator::fillHcal(), TrackDetectorAssociator::fillHO(), 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::EDGetTokenT<EERecHitCollection> TrackAssociatorParameters::EERecHitsToken
edm::EDGetTokenT<GEMSegmentCollection> TrackAssociatorParameters::gemSegmentsToken
edm::EDGetTokenT<HBHERecHitCollection> TrackAssociatorParameters::HBHEcollToken
edm::EDGetTokenT<HORecHitCollection> TrackAssociatorParameters::HOcollToken

Definition at line 102 of file TrackAssociatorParameters.h.

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

edm::EDGetTokenT<ME0SegmentCollection> TrackAssociatorParameters::me0SegmentsToken
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 64 of file TrackAssociatorParameters.h.

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

double TrackAssociatorParameters::muonMaxDistanceY
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::InputTag TrackAssociatorParameters::theCaloTowerCollectionLabel

Definition at line 82 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theCSCSegmentCollectionLabel

Definition at line 86 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theDTRecSegment4DCollectionLabel

Definition at line 85 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theEBRecHitCollectionLabel

Labels of the detector EDProducts.

Definition at line 80 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theEERecHitCollectionLabel

Definition at line 81 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theGEMSegmentCollectionLabel

Definition at line 87 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theHBHERecHitCollectionLabel

Definition at line 83 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theHORecHitCollectionLabel

Definition at line 84 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

edm::InputTag TrackAssociatorParameters::theME0SegmentCollectionLabel

Definition at line 88 of file TrackAssociatorParameters.h.

Referenced by loadParameters().

double TrackAssociatorParameters::trajectoryUncertaintyTolerance

Definition at line 96 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