Skip to content

Commit

Permalink
allow XY MET corrections also for Puppi
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wassmer committed Jun 22, 2022
1 parent c4b6a5c commit 5660e18
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,10 @@ def tuneTxyParameters(self, process, corScheme, postfix, datamc="", campaign="",
xyTags["{}_{}".format(corScheme_,"50ns")]=getattr(metCors,"{}_{}_{}".format("patMultPhiCorrParams",corScheme_,"50ns"))
xyTags["{}_{}".format(corScheme_,"25ns")]=getattr(metCors,"{}_{}_{}".format("patMultPhiCorrParams",corScheme_,"25ns"))
if datamc!="" and campaign!="" and era!="":
xyTags["{}_{}_{}_{}".format(corScheme_,campaign,datamc,era)]=getattr(metCors,"{}_{}{}{}".format("patMultPhiCorrParams",campaign,datamc,era))
if not self.getvalue("Puppi"):
xyTags["{}_{}_{}_{}".format(corScheme_,campaign,datamc,era)]=getattr(metCors,"{}_{}{}{}".format("patMultPhiCorrParams",campaign,datamc,era))
else:
xyTags["{}_{}_{}_{}".format(corScheme_,campaign,datamc,era)]=getattr(metCors,"{}_{}{}{}".format("patMultPhiCorrParams_Puppi",campaign,datamc,era))

if datamc!="" and campaign!="" and era!="":
getattr(process, "patPFMetTxyCorr"+postfix).parameters = xyTags["{}_{}_{}_{}".format(corScheme,campaign,datamc,era)]
Expand Down

0 comments on commit 5660e18

Please sign in to comment.