See:
http://root.cern.ch/root/htmldoc/TTreePlayer.html#TTreePlayer:DrawSelect
and read section:
" Saving the result of Draw to an histogram"
Rene Brun
On Wed, 11 Sep 2002, Perfetto Francesco wrote:
> Hi, (excuse me for my english)
> I created a tree with some variables, someone can tell me how do for to
> have an plot with my desidered bin when click on the leaf of the
> tree?
> {...
> TTree *tmc = new TTree("tmc","Tree for montecarlo");
>
> tmc->Branch("dalix_mc" ,&dalix_mc ,"dalix_mc/D" );
> tmc->Branch("dalix_mc_rec",&dalix_mc_rec,"dalix_mc_rec/D");
> tmc->Branch("daliy_mc" ,&daliy_mc ,"daliy_mc/D" );
> tmc->Branch("daliy_mc_rec",&daliy_mc_rec,"daliy_mc_rec/D");
> tmc->Branch("daliy_ch_rec",&daliy_ch_rec,"daliy_ch_rec/D");
> tmc->Branch("isrec" ,&isrec ,"isrec/B" );
> ...
> tmc->Fill();
> ...
> }
> Best regards
> Francesco.
>
This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:09 MET