CMS 3D CMS Logo

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