32 void tclwrite(
Int_t split)
36 TFile f(
"tcl.root",
"recreate");
41 T.
Branch(
"tcl",&arr,256000,split);
48 for (
Int_t ev=0;ev<10000;ev++) {
51 if(nlines < 0) nlines = 1;
52 for (
Int_t i=0;i<nlines;i++) {
57 new(ar[i])
TLine(x1,y1,x2,y2);
72 TH2F *h2 =
new TH2F(
"h2",
"center of lines",40,0,1,40,0,1);
82 for (
Int_t i=0;i<nlines;i++) {
90 void tcl(
Int_t split=0)
virtual Double_t Rndm(Int_t i=0)
Machine independent random number generator.
virtual Double_t Gaus(Double_t mean=0, Double_t sigma=1)
Samples a random number from the standard Normal (Gaussian) Distribution with the given mean and sigm...
virtual Int_t Fill()
Fill all branches.
A ROOT file is a suite of consecutive data records (TKey instances) with a well defined format...
virtual TObject * Get(const char *namecycle)
Return pointer to object identified by namecycle.
virtual void Show(const char *name)
Stops Benchmark name and Prints results.
virtual Int_t GetEntry(Long64_t entry=0, Int_t getall=0)
Read all branches of entry and return total number of bytes read.
Int_t GetEntriesFast() const
void BypassStreamer(Bool_t bypass=kTRUE)
When the kBypassStreamer bit is set, the automatically generated Streamer can call directly TClass::W...
virtual void Print(Option_t *option="") const
Print a summary of the tree contents.
virtual void Start(const char *name)
Starts Benchmark with the specified name.
virtual Int_t SetBranchAddress(const char *bname, void *add, TBranch **ptr=0)
Change branch address, dealing with clone trees properly.
virtual void SetCompressionLevel(Int_t level=1)
See comments for function SetCompressionSettings.
virtual void Clear(Option_t *option="")
Clear the clones array.
virtual TBranch * GetBranch(const char *name)
Return pointer to the branch with the given name in this tree or its friends.
virtual Int_t Write(const char *name=0, Int_t option=0, Int_t bufsize=0)
Write this object to the current directory.
virtual void Draw(Option_t *option="")
Draw this histogram with options.
R__EXTERN TBenchmark * gBenchmark
2-D histogram with a float per channel (see TH1 documentation)}
R__EXTERN TRandom * gRandom
virtual Int_t Branch(TCollection *list, Int_t bufsize=32000, Int_t splitlevel=99, const char *name="")
Create one branch for each element in the collection.
An array of clone (identical) objects.
virtual Long64_t GetEntries() const
A TTree object has a header with a name and a title.
TObject * At(Int_t idx) const
Int_t Fill(Double_t)
Invalid Fill method.
virtual void SetAutoDelete(Bool_t autodel=kTRUE)
Set the automatic delete bit.