38void draw_canvas(
const std::string &title,
RColor col)
42 auto pHist = std::make_shared<RH1D>(xaxis);
43 auto pHist2 = std::make_shared<RH1D>(xaxis);
48 for (
int n = 0;
n < 10000; ++
n) {
55 auto canvas = RCanvas::Create(title +
" canvas");
56 canvas->Draw(pHist)->Line().SetColor(col);
63 printf(
"%s started\n", title.c_str());
65 for (
int loop = 0; loop < maxloop; ++loop) {
67 for (
int n = 0;
n < 10000; ++
n) {
84 printf(
"%s completed\n", title.c_str());
#define R__LOAD_LIBRARY(LIBRARY)
Objects used to configure the different axis types.
A color: Red|Green|Blue|Alpha, or a position in a RPalette.
virtual void SetValue(const char *name, const char *value, EEnvLevel level=kEnvChange, const char *type=0)
Set the value of a resource or create a new resource.
Random number generator class based on M.
virtual void Rannor(Float_t &a, Float_t &b)
Return 2 numbers distributed following a gaussian with mean=0 and sigma=1.
void EnableThreadSafety()
Enables the global mutex to make ROOT thread safe/aware.