CMS 3D CMS Logo

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