 |
ATLAS Offline Software
|
Go to the documentation of this file.
14 #define def_Preliminary false
15 #define def_Official false
18 TStyle *
atlasStyle=
new TStyle(
"ATLAS",
"Atlas style");
81 gROOT->SetStyle(
"ATLAS");
100 float textsize = 0.04){
104 TitleLabel.SetTextSize(textsize);
105 TitleLabel.SetTextColor(
color);
111 for(
int i = 2; ;
i++ ){
112 if(chartitle[
i-2] ==
' ' && chartitle[
i-1] ==
'-' && chartitle[
i] ==
' '){
118 }
else if(chartitle[
i] ==
null ){
119 TitleLabel.DrawLatex(
x,
y-
counter*(1.25)*textsize, chartitle +
offset);
131 float textsize = 0.034){
133 TMarker *markerdot =
new TMarker(
x - 0.5 * textsize,
y + 0.3 * textsize, markertype);
135 markerdot->SetMarkerColor(
color);
136 markerdot->SetMarkerSize(40 * textsize);
153 double axmin =
hist->GetMean() - 3 *
hist->GetRMS();
154 double axmax =
hist->GetMean() + 3 *
hist->GetRMS();
159 double ientries =
hist->GetBinContent(
i+1);
160 if (
value <= axmin)
continue;
161 if (
value >= axmax)
break;
181 histo->SetDirectory(gROOT);
182 histo->UseCurrentStyle();
186 histo->SetMarkerSize(1.8);
207 histo->GetYaxis()->SetTitle(
"Fraction of pixel clusters");
208 histo->GetXaxis()->SetTitle(
"Residual [#mum]");
209 std::ostringstream LegendString1;
210 LegendString1.flags(std::ios::fixed);
211 LegendString1 <<
name <<
" - ";
212 int precision = 1-
int(log10(rms_error));
213 if(precision < 0) precision = 0;
214 LegendString1.precision(precision);
215 LegendString1 <<
"RMS: " <<
rms <<
" #pm " << rms_error <<
" #mum" <<
" - ";
216 precision = 1-
int(log10(mean_error));
217 if(precision < 0) precision = 0;
218 LegendString1.precision(precision);
219 LegendString1 <<
"Mean: " <<
mean <<
" #pm " << mean_error <<
" #mum" <<
" - ";
227 histo->GetYaxis()->SetTitle(
"RMS of residuals [#mum]");
229 std::ostringstream LegendString1;
void mean(std::vector< double > &bins, std::vector< double > &values, const std::vector< std::string > &files, const std::string &histname, const std::string &tplotname, const std::string &label="")
void DrawLegendLatex(const char *chartitle, int markertype, float x, float y, int color=1, float textsize=0.034)
void DrawTitleLatex(const char *chartitle, float x, float y, int color=1, float textsize=0.04)
void GetCoreParameters(const TH1 *hist, double &mean, double &mean_error, double &rms, double &rms_error, double &nentries)
TH1 * DrawOneResidualProfile(std::string name, int color, int marker, float offset)
void DrawATLASLabel(float x, float y, bool pre=false, float textsize=0.05)
TH1 * DrawOneResidualDist(std::string name, int color, int marker, float offset)
def ATLASLabel(x, y, text="")
ATLASLabel copied from atlastyle package, as import does not work for unknown reasons.
def TH1F(name, title, nxbins, bins_par2, bins_par3=None, path='', **kwargs)
TH1 * DrawHisto(const char *name, const char *options="", int color=1, int marker=20, float offset=0)