I’m having problems with a macro I did, I need plot 3 superimposed histograms in one pad and a ratio of histograms in an other pad. When I run the code on root, it return message error below
Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_1 height changed from 0 to 10
Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_2 height changed from 0 to 10
root [1] Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_1 height changed from 0 to 10
Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_2 height changed from 0 to 10
Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_1 height changed from 0 to 10
Warning in <TPad::ResizePad>: Inf/NaN propagated to the pad. Check drawn objects.
Warning in <TPad::ResizePad>: Canvas_D_IPCHI2_OWNPV_2 height changed from 0 to 10
It is difficult to try your macro. Running it we get:
Processing teste.C...
Error in <TFile::TFile>: file mc_weighted.root does not exist
Error in <TFile::TFile>: file NtupleWithSweights.root does not exist
? … it is just the same command you typed … without the histogram filling.
May be the histogram you try to fill does not have the right range. That’s why I asked you to Draw without the histogram to see if there is some events passing the cut you defined.