15const char *clnames[ncl] = {
"TH1F",
"TGraph",
"TGraphErrors",
"TF1",
"TPaveText",
"TAxis",
16 "TF2",
"TH2D",
"TLatex",
"TText",
"TCutG",
"THnSparseF"};
22 for (
Int_t i = 0; i < nobj; i++) {
27 MakeCrazy(slist, maxDepth - 1, maxObjects, pList);
31 named->
SetName(
Form(
"%s_%d_%d", clnames[icl], maxDepth, i));
42 MakeCrazy(list, maxDepth, maxObjects, pList);
43 gROOT->GetListOfTasks()->Add(list);
50 for (
int i = 0; i < ncl; i++)
57 TList *pointer = crazy(2, 10);
R__EXTERN TRandom * gRandom
char * Form(const char *fmt,...)
Formats a string in a circular formatting buffer.
void SetName(const char *name)
void Add(TObject *obj) override
The TNamed class is the base class for all named ROOT classes.
virtual void SetName(const char *name)
Set the name of the TNamed.
Double_t Rndm() override
Machine independent random number generator.
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
virtual UInt_t Integer(UInt_t imax)
Returns a random integer uniformly distributed on the interval [ 0, imax-1 ].
void SetColor(TString name, Int_t color)
Sets color for the class "name" to color "color".
void Draw(Option_t *option="") override
Draw object if there is valid pointer.