14static const double mur[
nren] = {1.0,0.25,4.0};
15static const double muf[
nren] = {1.0,0.25,4.0};
16const unsigned int NUMPDF=41;
24 gROOT->SetStyle(
"ATLAS");
29 auto canvas =
new TCanvas(
"canvas",
"single inclusive jets",50,50,600,600);
35 frame->SetYTitle(
"d#sigma_{jet}/dE_{T,jet} [fb/GeV]");
36 frame->SetXTitle(
"E_{T,jet} [GeV]");
37 frame->GetYaxis()->SetTitleOffset(1.4);
38 frame->GetXaxis()->SetTitleOffset(1.4);
48 cout <<
" g1 not found " << endl;
85 cout <<
" gpdf not found " << endl;
99 g1[0][
icut]->SetLineWidth(3);
105 t.
DrawLatex(0.3, 0.85,
"#sqrt{s}= 14 TeV");
106 t.
DrawLatex(0.57, 0.85,
"|#eta_{jet}|<0.5");
108 auto l =
new TLegend(0.45,0.65,0.8,0.8,
"",
"NDC");
109 l->SetBorderSize(0.);
111 l->AddEntry(
"data_0",
"Data 2009",
"ep");
112 l->AddEntry(
"scalepdf",
"NLO QCD",
"lf");
118 const char *cuts[5] =
119 {
"0.0 <= |eta| < 0.5",
120 "0.5 <= |eta| < 1.0",
121 "1.0 <= |eta| < 1.5",
122 "1.5 <= |eta| < 2.0",
123 "2.0 <= |eta| < 3.0"};
125 const double mur[] = {1.0,0.25,4.0};
126 const double muf[] = {1.0,0.25,4.0};
129 TFile *file =
TFile::Open(
"http://root.cern/files/AtlasGraphs.root",
"CACHEREAD");
141 for (
int i=1; i<=
GMAX; i++) {
145 cout <<
gname <<
" not found " << endl;
149 const char *title =
g1->GetTitle();
155 if (!
g1)
return nullptr;
165 for (
Int_t i=0; i<
g1->GetN(); i++) {
170 if (i==
g1->GetN()-1)
x2=
x1;
171 else g2->GetPoint(i+1,
x2,dum);
174 else g2->GetPoint(i-1,
x3,dum);
197 if (
g1->GetN()!=
g2->GetN())
198 cout <<
" graphs don't have the same number of elements " << endl;
203 for (
Int_t i=0; i<
g1->GetN(); i++) {
207 if (
y1==0 ||
y2==0 )
208 cerr <<
"check these points very carefully : AddtoBand() : point " << i << endl;
217 g2->SetPointEYhigh(i,
eyh);
221 g2->SetPointEYlow (i,
eyl);
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 data
Option_t Option_t TPoint TPoint const char x2
Option_t Option_t TPoint TPoint const char x1
Option_t Option_t TPoint TPoint const char y2
Option_t Option_t TPoint TPoint const char y1
R__EXTERN TRandom * gRandom
TObject * Get(const char *namecycle) override
Return pointer to object identified by namecycle.
A ROOT file is an on-disk file, usually with extension .root, that stores objects in a file-system-li...
static TFile * Open(const char *name, Option_t *option="", const char *ftitle="", Int_t compress=ROOT::RCompressionSetting::EDefaults::kUseCompiledDefault, Int_t netopt=0)
Create / open a file.
static Bool_t SetCacheFileDir(std::string_view cacheDir, Bool_t operateDisconnected=kTRUE, Bool_t forceCacheread=kFALSE)
Sets the directory where to locally stage/cache remote files.
TGraph with asymmetric error bars.
A TGraphErrors is a TGraph with error bars.
To draw Mathematical Formula.
TLatex * DrawLatex(Double_t x, Double_t y, const char *text)
Make a copy of this object with the new parameters And copy object attributes.
This class displays a legend box (TPaveText) containing several legend entries.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
Double_t Rndm() override
Machine independent random number generator.
virtual void SetNDC(Bool_t isNDC=kTRUE)
Set NDC mode on if isNDC = kTRUE, off otherwise.