Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-18 22:30:59

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 from Validation.RecoTrack.TrackingParticleSelectionForEfficiency_cfi import *
0004 from Validation.RecoTrack.GenParticleSelectionsForEfficiency_cff import *
0005 from Validation.RecoTrack.MTVHistoProducerAlgoForTrackerBlock_cfi import *
0006 
0007 from DQMServices.Core.DQMEDAnalyzer import DQMEDAnalyzer
0008 multiTrackValidatorGenPs = DQMEDAnalyzer(
0009     "MultiTrackValidatorGenPs",
0010 
0011     ### general settings ###
0012     #ok this is not used, but is needed for the MTV contructor
0013     TrackingParticleSelectionForEfficiency,
0014     # selection of GP for evaluation of efficiency #
0015     GenParticleSelectionForEfficiency,
0016     
0017     # HistoProducerAlgo. Defines the set of plots to be booked and filled
0018     histoProducerAlgoBlock = MTVHistoProducerAlgoForTrackerBlock,
0019 
0020     # set true if you do not want that MTV launch an exception
0021     # if the track collectio is missing (e.g. HLT):
0022     ignoremissingtrackcollection=cms.untracked.bool(False),
0023     
0024     useGsf=cms.bool(False),
0025 
0026     
0027     ### matching configuration ###
0028     associators = cms.untracked.VInputTag("TrackAssociatorByChi2"),
0029     UseAssociators = cms.bool(True), # if False, the TP-RecoTrack maps has to be specified 
0030 
0031     ### sim input configuration ###
0032     label_tp_effic = cms.InputTag("genParticles"),
0033     label_tp_fake = cms.InputTag("genParticles"),
0034     label_tv = cms.InputTag("mix","MergedTrackTruth"),#this is not used
0035     label_pileupinfo = cms.InputTag("addPileupInfo"),
0036     sim = cms.VInputTag(
0037       cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelHighTof"),
0038       cms.InputTag("g4SimHits", "TrackerHitsPixelBarrelLowTof"),
0039       cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapHighTof"),
0040       cms.InputTag("g4SimHits", "TrackerHitsPixelEndcapLowTof"),
0041       cms.InputTag("g4SimHits", "TrackerHitsTECHighTof"),
0042       cms.InputTag("g4SimHits", "TrackerHitsTECLowTof"),
0043       cms.InputTag("g4SimHits", "TrackerHitsTIBHighTof"),
0044       cms.InputTag("g4SimHits", "TrackerHitsTIBLowTof"),
0045       cms.InputTag("g4SimHits", "TrackerHitsTIDHighTof"),
0046       cms.InputTag("g4SimHits", "TrackerHitsTIDLowTof"),
0047       cms.InputTag("g4SimHits", "TrackerHitsTOBHighTof"),
0048       cms.InputTag("g4SimHits", "TrackerHitsTOBLowTof")
0049     ),
0050     parametersDefiner = cms.string('LhcParametersDefinerForTP'),          # collision like tracks
0051     # parametersDefiner = cms.string('CosmicParametersDefinerForTP'),     # cosmics tracks
0052 
0053     ### reco input configuration ###
0054     label = cms.VInputTag(cms.InputTag("generalTracks")),
0055     beamSpot = cms.InputTag("offlineBeamSpot"),
0056 
0057     ### dE/dx configuration ###
0058     dEdx1Tag = cms.InputTag("dedxHarmonic2"),
0059     dEdx2Tag = cms.InputTag("dedxTruncated40"),
0060     
0061     ### output configuration
0062     dirName = cms.string('Tracking/Track/'),
0063 
0064     ### Allow switching off particular histograms
0065     doSimPlots = cms.untracked.bool(True),
0066     doSimTrackPlots = cms.untracked.bool(True),
0067     doRecoTrackPlots = cms.untracked.bool(True),
0068     dodEdxPlots = cms.untracked.bool(False),
0069 )
0070 
0071 from Configuration.ProcessModifiers.premix_stage2_cff import premix_stage2
0072 premix_stage2.toModify(multiTrackValidator,
0073     label_tv = "mixData:MergedTrackTruth",
0074 )