Skip to content

Commit

Permalink
back the mass in the RooDataSet name
Browse files Browse the repository at this point in the history
  • Loading branch information
emanueledimarco committed Feb 14, 2023
1 parent 1b5f049 commit 1168979
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Signal/scripts/calcPhotonSyst.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def getRateVar(_hists):
for _proc in opt.procs.split(","):
# Glob M125 filename
_WSFileName = glob.glob("%s/output*M125*%s.root"%(opt.inputWSDir,_proc))[0]
_nominalDataName = "%s_%s_%s"%(procToData(_proc),sqrts__,opt.cat)
_nominalDataName = "%s_125_%s_%s"%(procToData(_proc),sqrts__,opt.cat)
data = data.append({'proc':_proc,'cat':opt.cat,'inputWSFile':_WSFileName,'nominalDataName':_nominalDataName}, ignore_index=True, sort=False)

# Loop over rows in dataFrame and open ws
Expand Down
4 changes: 2 additions & 2 deletions Signal/scripts/signalFit.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def get_options():
WSFileName = glob.glob("%s/output*%s*.root"%(opt.inputWSDir,MHNominal))[0]
f = ROOT.TFile(WSFileName,"read")
inputWS = f.Get(inputWSName__)
d = reduceDataset(inputWS.data("%s_%s_%s"%(procToData(opt.proc),sqrts__,opt.cat)),aset)
d = reduceDataset(inputWS.data("%s_%s_%s_%s"%(procToData(opt.proc),MHNominal,sqrts__,opt.cat)),aset)
if( d.numEntries() == 0. )|( d.sumEntries <= 0. ):
print " --> (%s,%s) has zero events. Will not construct signal model"%(opt.proc,opt.cat)
exit()
Expand Down Expand Up @@ -156,7 +156,7 @@ def get_options():
WSFileName = glob.glob("%s/output*%s*%s.root"%(opt.inputWSDir,mp,procRVFit))[0]
f = ROOT.TFile(WSFileName,"read")
inputWS = f.Get(inputWSName__)
d = reduceDataset(inputWS.data("%s_%s_%s"%(procToData(procRVFit),sqrts__,catRVFit)),aset)
d = reduceDataset(inputWS.data("%s_%s_%s_%s"%(procToData(procRVFit),mp,sqrts__,catRVFit)),aset)
nominalDatasets[mp] = d.Clone()
if opt.skipVertexScenarioSplit: datasetRVForFit[mp] = d
else: datasetRVForFit[mp] = splitRVWV(d,aset,mode="RV")
Expand Down

0 comments on commit 1168979

Please sign in to comment.