Back to home page

Project CMSSW displayed by LXR



File indexing completed on 2024-04-06 12:33:09

0001 # post-processors for reco Muon track validation in FullSim and FastSim
0002 #
0003 import FWCore.ParameterSet.Config as cms
0004 from DQMServices.Core.DQMEDHarvester import DQMEDHarvester
0006 from Validation.RecoMuon.PostProcessor_RecoMuonValidator_cff import *
0007 from Validation.RecoMuon.PostProcessor_RecoDisplacedMuonValidator_cff import *
0009 postProcessorMuonTrack = DQMEDHarvester("DQMGenericClient",
0010     subDirs = cms.untracked.vstring("Muons/RecoMuonV/MuonTrack/*"),
0011     efficiency = cms.vstring(
0012         "effic_vs_eta 'Efficiency vs #eta' num_assoSimToReco_eta num_simul_eta",
0013         "effic_vs_pt 'Efficiency vs p_{T}' num_assoSimToReco_pT num_simul_pT",
0014         "effic_vs_hit 'Efficiency vs number of Hits' num_assoSimToReco_hit num_simul_hit",
0015         "effic_vs_phi 'Efficiency vs #phi' num_assoSimToReco_phi num_simul_phi",
0016         "effic_vs_dxy 'Efficiency vs dxy' num_assoSimToReco_dxy num_simul_dxy",
0017         "effic_vs_dz 'Efficiency vs dz' num_assoSimToReco_dz num_simul_dz",
0018         "effic_vs_pu 'Efficiency vs number of pile-up interactions' num_assoSimToReco_pu num_simul_pu",
0019         "effic_vs_Rpos 'Efficiency vs production Radius' num_assoSimToReco_Rpos num_simul_Rpos",
0020         "effic_vs_Zpos 'Efficiency vs production Z position' num_assoSimToReco_Zpos num_simul_Zpos",
0022         "fakerate_vs_eta 'Fake rate vs #eta' num_assoRecoToSim_eta num_reco_eta fake",
0023         "fakerate_vs_pt 'Fake rate vs p_{T}' num_assoRecoToSim_pT num_reco_pT fake",
0024         "fakerate_vs_hit 'Fake rate vs number of Hits' num_assoRecoToSim_hit num_reco_hit fake",
0025         "fakerate_vs_phi 'Fake rate vs #phi' num_assoRecoToSim_phi num_reco_phi fake",
0026         "fakerate_vs_dxy 'Fake rate vs dxy' num_assoRecoToSim_dxy num_reco_dxy fake",
0027         "fakerate_vs_dz 'Fake rate vs dz' num_assoRecoToSim_dz num_reco_dz fake",
0028         "fakerate_vs_pu 'Fake rate vs number of pile-up interactions' num_assoRecoToSim_pu num_reco_pu fake", 
0030         "chargeMisId_vs_eta 'Charge MisID rate vs #eta' num_chargemisid_eta num_assoSimToReco_eta", 
0031         "chargeMisId_vs_pt 'Charge MisID rate vs p_{T}' num_chargemisid_pT num_assoSimToReco_pT", 
0032         "chargeMisId_vs_phi 'Charge MisID rate vs #phi' num_chargemisid_phi num_assoSimToReco_phi",
0033         "chargeMisId_vs_dxy 'Charge MisID rate vs dxy' num_chargemisid_dxy num_assoSimToReco_dxy", 
0034         "chargeMisId_vs_dz 'Charge MisID rate vs dz' num_chargemisid_dz num_assoSimToReco_dz",
0035         "chargeMisId_vs_pu 'Charge MisID rate vs number of pile-up interactions' num_chargemisid_pu num_assoSimToReco_pu",
0036         # charge MisId determined vs number of RecHits
0037         "chargeMisId_vs_hit 'Charge MisID rate vs number of RecHits' num_chargemisid_hit num_assoRecoToSim_hit"
0038     ),
0039     profile = cms.untracked.vstring(
0040         "chi2_vs_eta_prof 'mean #chi^{2} vs #eta' chi2_vs_eta", 
0041         "chi2_vs_phi_prof 'mean #chi^{2} vs #phi' chi2_vs_phi", 
0042         "chi2_vs_nhits_prof 'mean #chi^{2} vs number of Hits' chi2_vs_nhits", 
0043         "nhits_vs_eta_prof 'mean number of Hits vs #eta' nhits_vs_eta",
0044         "nhits_vs_phi_prof 'mean number of Hits vs #phi' nhits_vs_phi", 
0045         "nDThits_vs_eta_prof 'mean number of DT hits vs #eta' nDThits_vs_eta",
0046         "nCSChits_vs_eta_prof 'mean number of CSC hits vs #eta' nCSChits_vs_eta",
0047         "nRPChits_vs_eta_prof 'mean number of RPC hits vs #eta' nRPChits_vs_eta",
0048         "nTRK_LayersWithMeas_vs_eta_prof 'mean # TRK Layers With Meas vs #eta' nTRK_LayersWithMeas_vs_eta", 
0049         "nPixel_LayersWithMeas_vs_eta_prof 'mean # Pixel layers With Meas vs #eta' nPixel_LayersWithMeas_vs_eta",
0050         "nlosthits_vs_eta_prof 'mean number of lost hits vs #eta' nlosthits_vs_eta",  
0051         "nhits_vs_phi_prof 'mean #hits vs #phi' nhits_vs_phi"
0052     ),
0053     resolutionLimitedFit = cms.untracked.bool(False),
0054     resolution = cms.vstring(
0055         "dxypull_vs_eta 'dxy Pull vs #eta' dxypull_vs_eta",
0056         "dxyres_vs_eta 'dxy Residual vs #eta' dxyres_vs_eta",
0057         "dxyres_vs_phi 'dxy Residual vs #phi' dxyres_vs_phi",
0058         "dxyres_vs_pt 'dxy Residual vs p_{T}' dxyres_vs_pt",
0059         "dzpull_vs_eta 'dz Pull vs #eta' dzpull_vs_eta",
0060         "dzres_vs_eta 'dz Residual vs #eta' dzres_vs_eta",
0061         "dzres_vs_phi 'dz Residual vs #phi' dzres_vs_phi",
0062         "dzres_vs_pt 'dz Residual vs p_{T}' dzres_vs_pt",
0063         "phipull_vs_eta '#phi Pull vs #eta' phipull_vs_eta",
0064         "phipull_vs_phi '#phi Pull vs #phi' phipull_vs_phi",
0065         "phires_vs_eta '#phi Residual vs #eta' phires_vs_eta",
0066         "phires_vs_phi '#phi Residual vs #phi' phires_vs_phi",
0067         "phires_vs_pt '#phi Residual vs p_{T}' phires_vs_pt",
0068         "thetapull_vs_eta '#theta Pull vs #eta' thetapull_vs_eta",
0069         "thetapull_vs_phi '#theta Pull vs #phi' thetapull_vs_phi",
0070         "thetaCotres_vs_eta 'cot(#theta) Residual vs #eta' thetaCotres_vs_eta",
0071         "thetaCotres_vs_pt 'cot(#theta)) Residual vs p_{T}' thetaCotres_vs_pt",
0072         "ptpull_vs_eta 'p_{T} Pull vs #eta' ptpull_vs_eta",
0073         "ptpull_vs_phi 'p_{T} Pull vs #phi' ptpull_vs_phi",
0074         "ptres_vs_eta 'p_{T} Relative Residual vs #eta' ptres_vs_eta",
0075         "ptres_vs_phi 'p_{T} Relative Residual vs #phi' ptres_vs_phi",
0076         "ptres_vs_pt 'p_{T} Relative Residual vs p_{T}' ptres_vs_pt",
0077         "etares_vs_eta '#eta Residual vs #eta' etares_vs_eta"
0078     ),
0079     outputFileName = cms.untracked.string("")
0080 )
0083 postProcessorMuonTrackComp = DQMEDHarvester("DQMGenericClient",
0084     subDirs = cms.untracked.vstring("Muons/RecoMuonV/MuonTrack/"),
0085     efficiency = cms.vstring(
0086     "Eff_GlbTk_Eta_mabh 'Eff_{GLB,TK} vs #eta' globalMuons/effic_vs_eta probeTrks/effic_vs_eta",
0087     "Eff_GlbTk_Pt_mabh 'Eff_{GLB,TK} vs p_{T}' globalMuons/effic_vs_pt probeTrks/effic_vs_pt",
0088     "Eff_GlbTk_Hit_mabh 'Eff_{GLB,TK} vs n Hits' globalMuons/effic_vs_hit probeTrks/effic_vs_hit",
0089     "Eff_GlbSta_Eta_mabh 'Eff_{GLB,STA} vs #eta' globalMuons/effic_vs_eta standAloneMuons_UpdAtVtx/effic_vs_eta",
0090     "Eff_GlbSta_Pt_mabh 'Eff_{GLB,STA} vs p_{T}' globalMuons/effic_vs_pt standAloneMuons_UpdAtVtx/effic_vs_pt",
0091     "Eff_GlbSta_Hit_mabh 'Eff_{GLB,STA} vs n Hits' globalMuons/effic_vs_hit standAloneMuons_UpdAtVtx/effic_vs_hit",
0092     ),
0093     resolution = cms.vstring(""),
0094     outputFileName = cms.untracked.string("")
0095 )
0097 recoMuonPostProcessors = cms.Sequence( postProcessorMuonTrack 
0098                                           * postProcessorMuonTrackComp 
0099                                           * postProcessorsRecoMuonValidator_seq
0100                                           * postProcessorsRecoDisplacedMuonValidator_seq )