RootTalk


ROOT Discussion Forums

leaves

Announce your working ROOT application.

Moderator: rootdev

leaves

Unread postby SHAIMA » Sat Jun 15, 2013 18:03

please i have tree and branch
this branch has a leaf contained a 7 variables
please i don't know the code for making this leaf with its variable
please help me [-o< [-o< [-o<
SHAIMA
 
Posts: 31
Joined: Mon Apr 29, 2013 19:01

Re: leaves

Unread postby couet » Mon Jun 17, 2013 9:56

couet
 
Posts: 4650
Joined: Tue Sep 02, 2003 8:32
Location: CERN

Re: leaves

Unread postby SHAIMA » Mon Jun 17, 2013 19:16

please this is a programme how can i make xx leaf hold xx1 and xx2
and how can i make xx1 hold xxx1 and xxx2 please i tried before with these trees examples but i couldn't find solution for this problem please help me


TFile f("ht.root","recreate");

TTree* mytree = new TTree("mytree","Test Tree");

TH1D* h = new TH1D("h","h",10,0,1);

Double_t values[3] = {0,0,0};

TBranch *b2 = mytree->Branch("b2",values, "xx/D:ff:hh");

mytree->Fill();

f.Write();
SHAIMA
 
Posts: 31
Joined: Mon Apr 29, 2013 19:01

Re: leaves

Unread postby couet » Tue Jun 18, 2013 8:32

please this is a programme


Yes, that's simple examples you can use as model.
couet
 
Posts: 4650
Joined: Tue Sep 02, 2003 8:32
Location: CERN

Re: leaves

Unread postby SHAIMA » Tue Jun 18, 2013 10:11

yes i tried with this example to find solution i used the code of tree1 then tree2 then tried with 3 and finally with 4 but without result :( :( :(
SHAIMA
 
Posts: 31
Joined: Mon Apr 29, 2013 19:01

Re: leaves

Unread postby pcanal » Tue Jun 25, 2013 16:21

Hi,

See the result of calling MakeClass on your TTree for a good example :)

Cheers,
Philippe.
pcanal
 
Posts: 6288
Joined: Wed Aug 27, 2003 14:22
Location: Fermilab


Return to My ROOT App

Who is online

Users browsing this forum: No registered users and 1 guest