#include <vector>
#include <string>
#include <string.h>
#include <TStyle.h>
#include <TLatex.h>
#include <TMarker.h>
#include <TROOT.h>
Go to the source code of this file.
|
void | SetAtlasStyle () |
|
void | DrawATLASLabel (float x, float y, bool pre=false, float textsize=0.05) |
|
void | DrawTitleLatex (const char *chartitle, float x, float y, int color=1, float textsize=0.04) |
|
void | DrawLegendLatex (const char *chartitle, int markertype, float x, float y, int color=1, float textsize=0.034) |
|
void | GetCoreParameters (const TH1 *hist, double &mean, double &mean_error, double &rms, double &rms_error, double &nentries) |
|
TH1 * | DrawHisto (const char *name, const char *options="", int color=1, int marker=20, float offset=0) |
|
TH1 * | DrawOneResidualDist (std::string name, int color, int marker, float offset) |
|
TH1 * | DrawOneResidualProfile (std::string name, int color, int marker, float offset) |
|
◆ def_Official
#define def_Official false |
◆ def_Preliminary
#define def_Preliminary false |
◆ DrawATLASLabel()
void DrawATLASLabel |
( |
float |
x, |
|
|
float |
y, |
|
|
bool |
pre = false , |
|
|
float |
textsize = 0.05 |
|
) |
| |
|
inline |
◆ DrawHisto()
TH1* DrawHisto |
( |
const char * |
name, |
|
|
const char * |
options = "" , |
|
|
int |
color = 1 , |
|
|
int |
marker = 20 , |
|
|
float |
offset = 0 |
|
) |
| |
◆ DrawLegendLatex()
void DrawLegendLatex |
( |
const char * |
chartitle, |
|
|
int |
markertype, |
|
|
float |
x, |
|
|
float |
y, |
|
|
int |
color = 1 , |
|
|
float |
textsize = 0.034 |
|
) |
| |
|
inline |
◆ DrawOneResidualDist()
TH1* DrawOneResidualDist |
( |
std::string |
name, |
|
|
int |
color, |
|
|
int |
marker, |
|
|
float |
offset |
|
) |
| |
Definition at line 195 of file InnerDetector/InDetCalibAlgs/PixelCalibAlgs/Macro/AtlasStyle.h.
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" <<
" - ";
◆ DrawOneResidualProfile()
TH1* DrawOneResidualProfile |
( |
std::string |
name, |
|
|
int |
color, |
|
|
int |
marker, |
|
|
float |
offset |
|
) |
| |
◆ DrawTitleLatex()
void DrawTitleLatex |
( |
const char * |
chartitle, |
|
|
float |
x, |
|
|
float |
y, |
|
|
int |
color = 1 , |
|
|
float |
textsize = 0.04 |
|
) |
| |
|
inline |
◆ GetCoreParameters()
void GetCoreParameters |
( |
const TH1 * |
hist, |
|
|
double & |
mean, |
|
|
double & |
mean_error, |
|
|
double & |
rms, |
|
|
double & |
rms_error, |
|
|
double & |
nentries |
|
) |
| |
|
inline |
◆ SetAtlasStyle()
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="")
def ATLASLabel(x, y, text="")
ATLASLabel copied from atlastyle package, as import does not work for unknown reasons.