[ROOT] free bin in a variable in a tree

From: Perfetto Francesco (Francesco.Perfetto@na.infn.it)
Date: Wed Sep 11 2002 - 12:36:03 MEST


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