CMS 3D CMS Logo

MultiTrackValidatorGenPs_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
6 
7 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
8 multiTrackValidatorGenPs = DQMEDAnalyzer(
9  "MultiTrackValidatorGenPs",
10 
11 
13  TrackingParticleSelectionForEfficiency,
14  # selection of GP for evaluation of efficiency #
15  GenParticleSelectionForEfficiency,
16 
17  # HistoProducerAlgo. Defines the set of plots to be booked and filled
18  histoProducerAlgoBlock = MTVHistoProducerAlgoForTrackerBlock,
19 
20  # set true if you do not want that MTV launch an exception
21  # if the track collectio is missing (e.g. HLT):
22  ignoremissingtrackcollection=cms.untracked.bool(False),
23 
24  useGsf=cms.bool(False),
25 
26 
27 
28  associators = cms.untracked.VInputTag("TrackAssociatorByChi2"),
29  UseAssociators = cms.bool(True), # if False, the TP-RecoTrack maps has to be specified
30 
31 
32  label_tp_effic = cms.InputTag("genParticles"),
33  label_tp_fake = cms.InputTag("genParticles"),
34  label_tv = cms.InputTag("mix","MergedTrackTruth"),#this is not used
35  label_pileupinfo = cms.InputTag("addPileupInfo"),
36  sim = cms.VInputTag(
37  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelHighTof"),
38  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
39  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapHighTof"),
40  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
41  cms.InputTag("g4SimHits", "TrackerHitsTECHighTof"),
42  cms.InputTag("g4SimHits", "TrackerHitsTECLowTof"),
43  cms.InputTag("g4SimHits", "TrackerHitsTIBHighTof"),
44  cms.InputTag("g4SimHits", "TrackerHitsTIBLowTof"),
45  cms.InputTag("g4SimHits", "TrackerHitsTIDHighTof"),
46  cms.InputTag("g4SimHits", "TrackerHitsTIDLowTof"),
47  cms.InputTag("g4SimHits", "TrackerHitsTOBHighTof"),
48  cms.InputTag("g4SimHits", "TrackerHitsTOBLowTof")
49  ),
50  parametersDefiner = cms.string('LhcParametersDefinerForTP'), # collision like tracks
51  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'), # cosmics tracks
52 
53 
54  label = cms.VInputTag(cms.InputTag("generalTracks")),
55  beamSpot = cms.InputTag("offlineBeamSpot"),
56 
57 
58  dEdx1Tag = cms.InputTag("dedxHarmonic2"),
59  dEdx2Tag = cms.InputTag("dedxTruncated40"),
60 
61 
62  dirName = cms.string('Tracking/Track/'),
63 
64 
65  doSimPlots = cms.untracked.bool(True),
66  doSimTrackPlots = cms.untracked.bool(True),
67  doRecoTrackPlots = cms.untracked.bool(True),
68  dodEdxPlots = cms.untracked.bool(False),
69 )
70 
71 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
72 premix_stage2.toModify(multiTrackValidator,
73  label_tv = "mixData:MergedTrackTruth",
74 )