From b83c4432ef5417c584d671e13bc2b157335cadc3 Mon Sep 17 00:00:00 2001 From: Ruby Ferguson <ruby.alice.molly.ferguson@cern.ch> Date: Thu, 16 Apr 2020 15:28:43 +0100 Subject: [PATCH] limited physics folder to only appear in the top level folder --- .../python/tauMonitorAlgorithm.py | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Reconstruction/tauMonitoring/python/tauMonitorAlgorithm.py b/Reconstruction/tauMonitoring/python/tauMonitorAlgorithm.py index fc250716ee8..9e35de0a5e7 100644 --- a/Reconstruction/tauMonitoring/python/tauMonitorAlgorithm.py +++ b/Reconstruction/tauMonitoring/python/tauMonitorAlgorithm.py @@ -470,22 +470,24 @@ def tauMonitoringConfig(inputFlags): #igroup.defineHistogram(namer('LB,tauEt','tauEtVsLB','',postfix), type='TH2F', title='Tau Et Vs Lumiblock ;Lumiblock;Transverse Energy (GeV)', # xbins=1200,xmin=0,xmax=1200,ybins=300,ymin=0.,ymax=300.,path=folder) + - #Physics Histograms - I suspect these should be doing some kind of selection, not obvious in the old code. - igroup.defineHistogram(namer('tauEta','tau_eta','',postfix), title='Eta of tau candidates;Eta;Number of Candidates', - xbins=51, xmin=-2.55, xmax=2.55,path=folder+"Physics/Z") + if postfix == 'Global': + #Physics Histograms - I suspect these should be doing some kind of selection, not obvious in the old code. + igroup.defineHistogram(namer('tauEta','tau_eta','',postfix), title='Eta of tau candidates;Eta;Number of Candidates', + xbins=51, xmin=-2.55, xmax=2.55,path=folder+"Physics/Z") - igroup.defineHistogram(namer('tauEta,tauEt','tau_pTVsEta','',postfix), type='TH2F', title='Tau Et Vs Eta;#eta;Transverse Energy (Gev)', - xbins=40,xmin=-2.55,xmax=2.55 ,ybins=300,ymin=0,ymax=300,path=folder+"Physics/Z") + igroup.defineHistogram(namer('tauEta,tauEt','tau_pTVsEta','',postfix), type='TH2F', title='Tau Et Vs Eta;#eta;Transverse Energy (Gev)', + xbins=40,xmin=-2.55,xmax=2.55 ,ybins=300,ymin=0,ymax=300,path=folder+"Physics/Z") - - #will use different variable when not a placeholder - igroup.defineHistogram(namer('tauEta','lepton_pTVsEta','',postfix), title='Placeholder for empty histogram;Eta;Number of Candidates', - xbins=51, xmin=-2.55, xmax=2.55,path=folder+"Physics/Z") + + #will use different variable when not a placeholder + igroup.defineHistogram(namer('tauEta','lepton_pTVsEta','',postfix), title='Placeholder for empty histogram;Eta;Number of Candidates', + xbins=51, xmin=-2.55, xmax=2.55,path=folder+"Physics/Z") - igroup.defineHistogram(namer('tauEta,tauEt','tau_pTVsEta','',postfix), type='TH2F', title='Tau Et Vs Eta;#eta;Transverse Energy (Gev)', - xbins=40,xmin=-2.55,xmax=2.55 ,ybins=300,ymin=0,ymax=300,path=folder+"Physics/W") + igroup.defineHistogram(namer('tauEta,tauEt','tau_pTVsEta','',postfix), type='TH2F', title='Tau Et Vs Eta;#eta;Transverse Energy (Gev)', + xbins=40,xmin=-2.55,xmax=2.55 ,ybins=300,ymin=0,ymax=300,path=folder+"Physics/W") -- GitLab