16 const char *clnames[ncl] = {
"TH1F",
"TGraph",
"TGraphErrors",
"TF1",
"TPaveText",
17 "TAxis",
"TF2",
"TH2D",
"TLatex",
"TText",
"TCutG",
"THnSparseF"};
19 for (
Int_t i=0;i<nobj;i++) {
24 MakeCrazy(slist,maxDepth-1,maxObjects,pList);
28 named->
SetName(
Form(
"%s_%d_%d",clnames[icl],maxDepth,i));
38 MakeCrazy(list,maxDepth,maxObjects,pList);
39 gROOT->GetListOfTasks()->Add(list);
47 const char *clnames[ncl] = {
"TH1F",
"TGraph",
"TGraphErrors",
"TF1",
"TPaveText",
48 "TAxis",
"TF2",
"TH2D",
"TLatex",
"TText",
"TCutG",
"THnSparseF"};
50 for (
int i = 0; i < ncl ; i++) {
61 TList* pointer = crazy(2,10);
virtual void SetName(const char *name)
Set the name of the TNamed.
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".
virtual Double_t Rndm()
Machine independent random number generator.
R__EXTERN TSystem * gSystem
char * Form(const char *fmt,...)
void SetName(const char *name)
R__EXTERN TRandom * gRandom
virtual Double_t Uniform(Double_t x1=1)
Returns a uniform deviate on the interval (0, x1).
virtual void Add(TObject *obj)