7 from collections
import OrderedDict
9 texfile =
'muon_validation.tex'
13 TestVersion =
'Zprime'
20 Title =
'Muon Validation of {0}'.
format( TestVersion, RefVersion )
25 ShortInstitute =
'CERN'
28 ShortTitle =
r'\textcolor{red}{Test: %s} \textcolor{black}{Ref: %s}'%( TestVersion, RefVersion )
46 PlotPages = OrderedDict()
50 PlotPages[
r'Kinematics - $p_T$, $\eta$, $\phi$' ] = [
51 'Muons/All/reco/AllMuons/kinematics/Muons_All_reco_AllMuons_kinematics_pt',
52 'Muons/All/reco/AllMuons/kinematics/Muons_All_reco_AllMuons_kinematics_eta',
53 'Muons/All/reco/AllMuons/kinematics/Muons_All_reco_AllMuons_kinematics_phi' ]
56 PlotPages[
r'Kinematics - $d_0$, $z_0$' ] = [
57 'Muons/All/reco/AllMuons/parameters/Muons_All_reco_AllMuons_parameters_d0',
58 'Muons/All/reco/AllMuons/parameters/Muons_All_reco_AllMuons_parameters_z0' ]
62 PlotPages[
'Precision Layers' ] = [
63 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_nprecLayers',
64 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_nphiLayers' ]
68 PlotPages[
'Precision Hits - Inner' ] = [
69 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_innersmallhits',
70 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_innerlargehits' ]
73 PlotPages[
'Precision Hits - Middle' ] = [
74 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_middlesmallhits',
75 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_middlelargehits' ]
78 PlotPages[
'Precision Hits - Outer' ] = [
79 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_outersmallhits',
80 'Muons/All/reco/AllMuons/hits/Muons_All_reco_AllMuons_hits_outerlargehits' ]
84 PlotPages[
r'Isolation - $p_T$-cone / $p_T$' ] = [
85 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_ptcone20rel',
86 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_ptcone30rel',
87 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_ptcone40rel' ]
90 PlotPages[
r'Isolation - $E_T$-cone / $p_T$' ] = [
91 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_etcone20rel',
92 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_etcone30rel',
93 'Muons/All/reco/AllMuons/isolation/Muons_All_reco_AllMuons_isolation_etcone40rel' ]
97 PlotPages[
'Track Fit Quality' ] = [
98 'Muons/All/reco/AllMuons/parameters/Muons_All_reco_AllMuons_parameters_tchi2',
99 'Muons/All/reco/AllMuons/parameters/Muons_All_reco_AllMuons_parameters_chi2ndof' ]
103 PlotPages[
'Resolution (Combined)' ] = [
104 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtResol_vs_pT',
105 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtResol_vs_eta',
106 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtResol_vs_phi' ]
122 PlotPages[
r'$p_T$ Scale (Combined)' ] = [
123 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtScale_vs_pT',
124 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtScale_vs_eta',
125 'Muons/Prompt/matched/MuidCo/resolution/Muons_Prompt_matched_MuidCo_resolution_Res_PtScale_vs_phi' ]
141 PlotPages[
r'Track Pull Plots - $q/P$, $\theta$, $\phi$' ] = [
142 'Muons/All/matched/AllMuons/Pulls/Muons_All_matched_AllMuons_Pulls_Pull_qOverP',
143 'Muons/All/matched/AllMuons/Pulls/Muons_All_matched_AllMuons_Pulls_Pull_theta',
144 'Muons/All/matched/AllMuons/Pulls/Muons_All_matched_AllMuons_Pulls_Pull_phi' ]
147 PlotPages[
r'Track Pull Plots - $d_0$, $z_0$' ] = [
148 'Muons/All/matched/AllMuons/Pulls/Muons_All_matched_AllMuons_Pulls_Pull_d0',
149 'Muons/All/matched/AllMuons/Pulls/Muons_All_matched_AllMuons_Pulls_Pull_z0' ]
153 PlotPages[
'Efficiency' ] = [
154 'Muons/All/matched/AllMuons/efficiency/Muons_All_matched_AllMuons_efficiency_pt',
155 'Muons/All/matched/AllMuons/efficiency/Muons_All_matched_AllMuons_efficiency_eta',
156 'Muons/All/matched/AllMuons/efficiency/Muons_All_matched_AllMuons_efficiency_phi' ]
160 PlotPages[
'Purity' ] = [
161 'Muons/All/matched/AllMuons/purity/Muons_All_matched_AllMuons_purity_pt',
162 'Muons/All/matched/AllMuons/purity/Muons_All_matched_AllMuons_purity_eta',
163 'Muons/All/matched/AllMuons/purity/Muons_All_matched_AllMuons_purity_phi' ]
179 PlotPages[
'Reco Fraction - Unmatched All Authors' ] = [
180 'Muons/UnmatchedRecoMuons/RecoFraction/Muons_UnmatchedRecoMuons__RecoFraction_pt',
181 'Muons/UnmatchedRecoMuons/RecoFraction/Muons_UnmatchedRecoMuons__RecoFraction_eta',
182 'Muons/UnmatchedRecoMuons/RecoFraction/Muons_UnmatchedRecoMuons__RecoFraction_phi' ]