CMS 3D CMS Logo

MultiTrackValidator_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 multiTrackValidator = DQMEDAnalyzer(
10  "MultiTrackValidator",
11 
12 
14  TrackingParticleSelectionForEfficiency,
15 
16  # HistoProducerAlgo. Defines the set of plots to be booked and filled
17  histoProducerAlgoBlock = MTVHistoProducerAlgoForTrackerBlock,
18 
19  # set true if you do not want that MTV launch an exception
20  # if the track collectio is missing (e.g. HLT):
21  ignoremissingtrackcollection=cms.untracked.bool(False),
22 
23  useGsf=cms.bool(False),
24 
25 
26 
28  associators = cms.untracked.VInputTag("trackingParticleRecoTrackAsssociation"),
29  # Example of associator
30  #associators = cms.untracked.VInputTag("quickTrackAssociatorByHits"),
31  # if False, the src's above should specify the TP-RecoTrack association
32  # if True, the src's above should specify the associator
33  UseAssociators = cms.bool(False),
34 
35 
36  label_tp_effic = cms.InputTag("mix","MergedTrackTruth"),
37  label_tp_fake = cms.InputTag("mix","MergedTrackTruth"),
38  label_tp_effic_refvector = cms.bool(False),
39  label_tp_fake_refvector = cms.bool(False),
40  label_tv = cms.InputTag("mix","MergedTrackTruth"),
41  label_pileupinfo = cms.InputTag("addPileupInfo"),
42  sim = cms.VInputTag(
43  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
44  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelHighTof"),
45  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
46  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapHighTof"),
47  cms.InputTag("g4SimHits", "TrackerHitsTIBLowTof"),
48  cms.InputTag("g4SimHits", "TrackerHitsTIBHighTof"),
49  cms.InputTag("g4SimHits", "TrackerHitsTIDLowTof"),
50  cms.InputTag("g4SimHits", "TrackerHitsTIDHighTof"),
51  cms.InputTag("g4SimHits", "TrackerHitsTOBLowTof"),
52  cms.InputTag("g4SimHits", "TrackerHitsTOBHighTof"),
53  cms.InputTag("g4SimHits", "TrackerHitsTECLowTof"),
54  cms.InputTag("g4SimHits", "TrackerHitsTECHighTof"),
55  ),
56  parametersDefiner = cms.string('LhcParametersDefinerForTP'), # collision like tracks
57  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'), # cosmics tracks
58  simHitTpMapTag = cms.InputTag("simHitTPAssocProducer"), # needed by CosmicParametersDefinerForTP
59 
60  label_tp_nlayers = cms.InputTag("trackingParticleNumberOfLayersProducer", "trackerLayers"),
61  label_tp_npixellayers = cms.InputTag("trackingParticleNumberOfLayersProducer", "pixelLayers"),
62  label_tp_nstripstereolayers = cms.InputTag("trackingParticleNumberOfLayersProducer", "stripStereoLayers"),
63 
64 
65  label = cms.VInputTag(cms.InputTag("generalTracks")),
66  beamSpot = cms.InputTag("offlineBeamSpot"),
67 
68 
69  mvaLabels = cms.untracked.PSet(),
70 
71 
72  dEdx1Tag = cms.InputTag("dedxHarmonic2"),
73  dEdx2Tag = cms.InputTag("dedxTruncated40"),
74 
75 
76  dirName = cms.string('Tracking/Track/'),
77 
78 
80  calculateDrSingleCollection = cms.untracked.bool(True),
81  trackCollectionForDrCalculation = cms.InputTag("generalTracks"),
82 
83 
84  doPlotsOnlyForTruePV = cms.untracked.bool(False),
85  label_vertex = cms.untracked.InputTag("offlinePrimaryVertices"),
86  vertexAssociator = cms.untracked.InputTag("VertexAssociatorByPositionAndTracks"),
87 
88  simPVMaxZ = cms.untracked.double(-1),
89 
90 
91  doSummaryPlots = cms.untracked.bool(True),
92  doSimPlots = cms.untracked.bool(True),
93  doSimTrackPlots = cms.untracked.bool(True),
94  doRecoTrackPlots = cms.untracked.bool(True),
95  dodEdxPlots = cms.untracked.bool(False),
96  doPVAssociationPlots = cms.untracked.bool(False), # do plots that require true PV, if True, label_vertex and vertexAssociator are read
97  doSeedPlots = cms.untracked.bool(False), # input comes from TrackFromSeedProducer
98  doMVAPlots = cms.untracked.bool(False), # needs input from track MVA selectors
99 
100 
101  doResolutionPlotsForLabels = cms.VInputTag(),
102 
103  cores = cms.InputTag("highPtJetsForTrk"), #ak4CaloJets with pt>1 TeV
104 )
105 
106 from Configuration.Eras.Modifier_fastSim_cff import fastSim
107 fastSim.toModify(multiTrackValidator, sim = ['fastSimProducer:TrackerHits'])
108 
109 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
110 premix_stage2.toModify(multiTrackValidator,
111  label_tp_effic = "mixData:MergedTrackTruth",
112  label_tp_fake = "mixData:MergedTrackTruth",
113  label_tv = "mixData:MergedTrackTruth",
114 )
LhcParametersDefinerForTP_cfi
MTVHistoProducerAlgoForTrackerBlock_cfi
DQMEDAnalyzer
Definition: DQMEDAnalyzer.py:1
TrackingParticleSelectionForEfficiency_cfi
CosmicParametersDefinerForTP_cfi