CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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  ### general settings ###
12  #ok this is not used, but is needed for the MTV contructor
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  ### matching configuration ###
28  associators = cms.untracked.VInputTag("TrackAssociatorByChi2"),
29  UseAssociators = cms.bool(True), # if False, the TP-RecoTrack maps has to be specified
30 
31  ### sim input configuration ###
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  ### reco input configuration ###
54  label = cms.VInputTag(cms.InputTag("generalTracks")),
55  beamSpot = cms.InputTag("offlineBeamSpot"),
56 
57  ### dE/dx configuration ###
58  dEdx1Tag = cms.InputTag("dedxHarmonic2"),
59  dEdx2Tag = cms.InputTag("dedxTruncated40"),
60 
61  ### output configuration
62  dirName = cms.string('Tracking/Track/'),
63 
64  ### Allow switching off particular histograms
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 )