43 if (
hname.EndsWith(
"_sig_nice")) {
51 titName.Data(),(
n.ReplaceAll(
"_sig",
"")).Data() ),
62 h->SetMaximum(
h->GetMaximum()*1.3);
64 h->SetMarkerColor(color);
65 h->SetMarkerSize( 0.7 );
66 h->SetMarkerStyle( 24 );
68 h->SetLineColor(color);
74 1-
cPad->GetTopMargin()-.14,
75 cPad->GetLeftMargin()+.77,
76 1-
cPad->GetTopMargin() );
77 legS->SetBorderSize(1);
78 legS->AddEntry(
h,
"Input data (signal)",
"p");
82 b = (
TH1F*)
lhdir->Get( bname.ReplaceAll(
"_sig",
"_bgd") );
85 b->SetMaximum(
b->GetMaximum()*1.3);
88 b->SetLineColor(color);
89 b->SetMarkerColor(color);
90 b->SetMarkerSize( 0.7 );
91 b->SetMarkerStyle( 24 );
95 1-
cPad->GetTopMargin()-.14,
96 cPad->GetLeftMargin()+.77,
97 1-
cPad->GetTopMargin() );
98 legB->SetBorderSize(1);
99 legB->AddEntry(
b,
"Input data (backgr.)",
"p");
110 for (
int i=0; i<= 5; i++) {
120 if (
h == 0 &&
b == 0) {
129 if (
h == 0 ||
b == 0) {
130 cout <<
"--- likelihoodrefs.C: did not find spline for histogram: " <<
pname.Data() << endl;
139 h->SetLineColor(color);
140 legS->AddEntry(
h,
"Estimated PDF (norm. signal)",
"l");
148 b->SetLineColor(color);
150 legB->AddEntry(
b,
"Estimated PDF (norm. backgr.)",
"l");
187 cout <<
"Could not locate directory 'Method_Likelihood' in file " <<
fin << endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
TDirectory * GetDirectory(const char *apath, Bool_t printError=false, const char *funcname="GetDirectory") override
Find a directory named "apath".
Describe directory structure in memory.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
1-D histogram with a float per channel (see TH1 documentation)
TH1 is the base class of all histogram classes in ROOT.
Book space in a file, create I/O buffers, to fill them, (un)compress them.
virtual TObject * ReadObj()
To read a TObject* from the file.
This class displays a legend box (TPaveText) containing several legend entries.
The most important graphics class in the ROOT system.
static TString Format(const char *fmt,...)
Static method which formats a string using a printf style format descriptor and return a TString.
UInt_t GetListOfTitles(TDirectory *rfdir, TList &titles)
void Initialize(Bool_t useTMVAStyle=kTRUE)
TKey * NextKey(TIter &keyIter, TString className)
TFile * OpenFile(const TString &fin)
void imgconv(TCanvas *c, const TString &fname)
void likelihoodrefs(TString dataset, TDirectory *lhdir)