10 const char *clnames[ncl] = {
"TH1F",
"TGraph",
"TGraphErrors",
"TF1",
"TPaveText",
11 "TAxis",
"TF2",
"TH2D",
"TLatex",
"TText",
"TCutG",
"THnSparseF"};
13 for (
Int_t i=0;i<nobj;i++) {
18 MakeCrazy(slist,maxDepth-1,maxObjects,pList);
22 named->
SetName(
Form(
"%s_%d_%d",clnames[icl],maxDepth,i));
32 MakeCrazy(list,maxDepth,maxObjects,pList);
33 gROOT->GetListOfTasks()->Add(list);
41 const char *clnames[ncl] = {
"TH1F",
"TGraph",
"TGraphErrors",
"TF1",
"TPaveText",
42 "TAxis",
"TF2",
"TH2D",
"TLatex",
"TText",
"TCutG",
"THnSparseF"};
44 for (
int i = 0; i < ncl ; i++) {
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
virtual void SetName(const char *name)
Change (i.e.
void Draw(Option_t *option="")
Draw object if there is valid pointer.
virtual int Load(const char *module, const char *entry="", Bool_t system=kFALSE)
Load a shared library.
The TNamed class is the base class for all named ROOT classes.
virtual UInt_t Integer(UInt_t imax)
Returns a random integer on [ 0, imax-1 ].
void SetColor(TString name, Int_t color)
Sets color for the class "name" to color "color".
R__EXTERN TSystem * gSystem
char * Form(const char *fmt,...)
void FillColorsMap(TStructViewer *sv)
void SetName(const char *name)
R__EXTERN TRandom * gRandom
TList * crazy(Int_t maxDepth=5, Int_t maxObjects=20, Float_t pList=0.2)
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
void MakeCrazy(TList *list, Int_t maxDepth, Int_t maxObjects, Float_t pList)
virtual void Add(TObject *obj)