CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
MultiTrackValidator_cfi.py
Go to the documentation of this file.
1 import FWCore.ParameterSet.Config as cms
2 
7 
8 multiTrackValidator = cms.EDAnalyzer(
9  "MultiTrackValidator",
10 
11  ### general settings ###
12  # selection of TP for evaluation of efficiency #
13  TrackingParticleSelectionForEfficiency,
14 
15  # HistoProducerAlgo. Defines the set of plots to be booked and filled
16  histoProducerAlgoBlock = MTVHistoProducerAlgoForTrackerBlock,
17 
18  # set true if you do not want that MTV launch an exception
19  # if the track collectio is missing (e.g. HLT):
20  ignoremissingtrackcollection=cms.untracked.bool(False),
21 
22  useGsf=cms.bool(False),
23 
24 
25  ### matching configuration ###
26  # Example of TP-Track map
27  associators = cms.untracked.VInputTag("trackingParticleRecoTrackAsssociation"),
28  # Example of associator
29  #associators = cms.untracked.VInputTag("quickTrackAssociatorByHits"),
30  # if False, the src's above should specify the TP-RecoTrack association
31  # if True, the src's above should specify the associator
32  UseAssociators = cms.bool(False),
33 
34  ### sim input configuration ###
35  label_tp_effic = cms.InputTag("mix","MergedTrackTruth"),
36  label_tp_fake = cms.InputTag("mix","MergedTrackTruth"),
37  label_tv = cms.InputTag("mix","MergedTrackTruth"),
38  label_pileupinfo = cms.InputTag("addPileupInfo"),
39  sim = cms.VInputTag(
40  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
41  cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelHighTof"),
42  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
43  cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapHighTof"),
44  cms.InputTag("g4SimHits", "TrackerHitsTIBLowTof"),
45  cms.InputTag("g4SimHits", "TrackerHitsTIBHighTof"),
46  cms.InputTag("g4SimHits", "TrackerHitsTIDLowTof"),
47  cms.InputTag("g4SimHits", "TrackerHitsTIDHighTof"),
48  cms.InputTag("g4SimHits", "TrackerHitsTOBLowTof"),
49  cms.InputTag("g4SimHits", "TrackerHitsTOBHighTof"),
50  cms.InputTag("g4SimHits", "TrackerHitsTECLowTof"),
51  cms.InputTag("g4SimHits", "TrackerHitsTECHighTof"),
52  ),
53  parametersDefiner = cms.string('LhcParametersDefinerForTP'), # collision like tracks
54  # parametersDefiner = cms.string('CosmicParametersDefinerForTP'), # cosmics tracks
55  simHitTpMapTag = cms.InputTag("simHitTPAssocProducer"), # needed by CosmicParametersDefinerForTP
56 
57  ### reco input configuration ###
58  label = cms.VInputTag(cms.InputTag("generalTracks")),
59  beamSpot = cms.InputTag("offlineBeamSpot"),
60 
61  ### dE/dx configuration ###
62  dEdx1Tag = cms.InputTag("dedxHarmonic2"),
63  dEdx2Tag = cms.InputTag("dedxTruncated40"),
64 
65  ### output configuration
66  dirName = cms.string('Tracking/Track/'),
67 
68  ### for fake rate vs dR ###
69  # True=use collection below; False=use "label" collection itself
70  calculateDrSingleCollection = cms.untracked.bool(True),
71  trackCollectionForDrCalculation = cms.InputTag("generalTracks"),
72 
73  ### Do plots only if first reco vertex is from hard scatter?
74  doPlotsOnlyForTruePV = cms.untracked.bool(False),
75  label_vertex = cms.untracked.InputTag("offlinePrimaryVertices"),
76  vertexAssociator = cms.untracked.InputTag("VertexAssociatorByPositionAndTracks"),
77 
78  ### Allow switching off particular histograms
79  doSummaryPlots = cms.untracked.bool(True),
80  doSimPlots = cms.untracked.bool(True),
81  doSimTrackPlots = cms.untracked.bool(True),
82  doRecoTrackPlots = cms.untracked.bool(True),
83  dodEdxPlots = cms.untracked.bool(False),
84  doPVAssociationPlots = cms.untracked.bool(False), # do plots that require true PV, if True, label_vertex and vertexAssociator are read
85 )
86 
87 from Configuration.StandardSequences.Eras import eras
88 if eras.fastSim.isChosen():
89  multiTrackValidator.sim = [cms.InputTag('famosSimHits','TrackerHits')]
90