Runtime error when plotting with TQDefaultPlotter in 19.06.1
After updating to the 19.06.1
tag (from 19.04.1
) I get the following error when trying to make some plots with the TQDefaultPlotter without a ratio plot (the ratio plot is disabled because of #271 (closed)).
Traceback (most recent call last):
File "/home/br1033/bbll/CAFbbll/share/visualize.py", line 88, in <module>
main(config)
File "/home/br1033/bbll/CAFbbll/share/visualize.py", line 53, in main
visualize.makePlots(config, reader, summary, channelsDict, outputdir, campaignsDict=campaignsDict)
File "/home/br1033/bbll/CAFbbll/build/x86_64-slc6-gcc62-opt/python/CommonAnalysisHelpers/visualize.py", line 580, in makePlots
if not skipallplots and not plotter.plotAndSaveAs(h, pathManager.getLocalPath(histname),plottagsLocal):
TypeError: none of the 4 overloaded methods succeeded. Full details:
bool TQPlotter::plotAndSaveAs(const TString& histogram, const TString& saveAs, const char* inputTags) =>
could not convert argument 3 (expected string or Unicode object, TQTaggable found)
bool TQPlotter::plotAndSaveAs(const TString& histogram, const TString& saveAs, const TString& inputTags) =>
could not convert argument 3
bool TQPlotter::plotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable& inputTags) =>
unable to obtain sub pad! (C++ exception of type runtime_error)
bool TQPlotter::plotAndSaveAs(const TString& histogram, const TString& saveAs, TQTaggable* inputTags = 0) =>
unable to obtain sub pad! (C++ exception of type runtime_error)
This is caused by this commit: 124d578e
I think it should be
if(subplot != None){
and not
if(!subplot != None){
Edited by Benjamin Rottler