14 #define def_Preliminary false
15 #define def_Official false
18 TStyle *
atlasStyle=
new TStyle(
"ATLAS",
"Atlas style");
81 gROOT->SetStyle(
"ATLAS");
85 inline void DrawATLASLabel(
float x,
float y,
float textsize = 0.05,
bool Preliminary =
true){
87 l.SetTextSize(textsize);
92 double delx = 0.115*696*gPad->GetWh()/(472*gPad->GetWw());
94 l.DrawLatex(
x,
y,
"ATLAS");
100 p.DrawLatex(
x+
delx,
y,
"Preliminary");
110 float textsize = 0.04){
111 std::string left = std::string(chartitle);
112 std::vector<std::string>
cuts;
113 std::string::size_type
found = 0;
115 left = left.substr(
found);
116 found = left.find(
" - ");
117 if(
found == std::string::npos){
118 cuts.push_back(left);
126 TitleLabel.SetTextSize(textsize);
127 TitleLabel.SetTextColor(
color);
128 for(
unsigned int i = 0 ;
i <
cuts.size();
i++)
129 TitleLabel.DrawLatex(
x,
y-
i*(1.25)*textsize,(
cuts[
i]).c_str());
137 float textsize = 0.03){
139 TMarker *markerdot =
new TMarker(
x - 0.4 * textsize,
y + 0.2 * textsize, markertype);
141 markerdot->SetMarkerColor(
color);
142 markerdot->SetMarkerSize(25 * textsize);
159 double axmin =
hist->GetMean() - 3 *
hist->GetRMS();
160 double axmax =
hist->GetMean() + 3 *
hist->GetRMS();
163 hist->GetBinWithContent(
hist->GetMean(), imean);
172 double ientries =
hist->GetBinContent(
i+1);
173 if (
value < axmin)
continue;
174 if (
value > axmax)
break;