CMS 3D CMS Logo

MuonTrackValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 
8 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
9 muonTrackValidator = DQMEDAnalyzer("MuonTrackValidator",
10  # define the TrackingParticleSelector for evaluation of efficiency
11  muonTPSelector = cms.PSet(muonTPSet),
12  # input TrackingParticle collections
13  label_tp_effic = cms.InputTag("mix","MergedTrackTruth"),
14  label_tp_fake = cms.InputTag("mix","MergedTrackTruth"),
15  label_pileupinfo = cms.InputTag("addPileupInfo"),
16  #
17  # input reco::Track collection
18  label = cms.VInputTag(cms.InputTag("globalMuons")),
19  beamSpot = cms.InputTag("offlineBeamSpot"),
20  #
21  # set true if you do not want that MTV launch an exception
22  # if the track collection is missing (e.g. HLT):
23  ignoremissingtrackcollection=cms.untracked.bool(False),
24  #
25  # collision-like tracks
26  parametersDefiner = cms.string('LhcParametersDefinerForTP'),
27  # cosmics tracks
28  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'),
29  #
30  # map linking SimHits to TrackingParticles, needed for cosmics validation`
31  simHitTpMapTag = cms.InputTag("simHitTPAssocProducer"),
32  #
33  # if !UseAssociators the association map has to be given in input
34  associators = cms.vstring('MuonAssociationByHits'),
35  UseAssociators = cms.bool(False),
36  useGEMs = cms.bool(False),
37  useME0 = cms.bool(False),
38  associatormap = cms.InputTag("tpToMuonTrackAssociation"),
39  #
40  # BiDirectional Logic for RecoToSim association corrects the Fake rates (counting ghosts and split tracks as fakes)
41  # setting it to False the ghost and split tracks are counted as good ones
42  # the default setting is True: should NOT be changed !
43  BiDirectional_RecoToSim_association = cms.bool(True),
44  #
45  # Output File / Directory
46  outputFile = cms.string(''),
47  dirName = cms.string('Muons/RecoMuonV/MuonTrack/'),
48  #
49  # Parameters defining which histograms to make and their attributes (nbins, range: min, max...)
50  muonHistoParameters = cms.PSet(defaultMuonHistoParameters)
51 )
52 
53 from Configuration.Eras.Modifier_run3_GEM_cff import run3_GEM
54 run3_GEM.toModify( muonTrackValidator, useGEMs = cms.bool(True) )
55 from Configuration.Eras.Modifier_phase2_muon_cff import phase2_muon
56 phase2_muon.toModify( muonTrackValidator, useME0 = cms.bool(True) )