On Fri, 27 Apr 2001, Suzanne Panacek wrote: > Hi Ahmet, > Looks like you don't define mass. > You have several mass-like varaibles in the tree: > Float_t RN_mass; > Float_t RN_masst2; > ... > Maybe you meant to use one of these. > Suzanne > Hi again,I fact I even tried with hM->Fill(RN.mass); but it did not work either. RN is the Branch name. In fact I had just tried to do the same as in example: t1->SetBranchAddress("pz",&pz); t1->SetBranchAddress("random",&random); t1->SetBranchAddress("ev",&ev); // two histograms TH1F *hpx = new TH1F("hpx","px distribution",100,-3,3); TH2F *hpxpy = new TH2F("hpxpy","py vs px",30,-3,3,30,-3,3); // all entries and fill the histograms Int_t nentries = (Int_t)t1->GetEntries(); for (Int_t i=0;i<nentries;i++) { t1->GetEntry(i); hpx->Fill(px); hpxpy->Fill(px,py); } so I still do not know what is wrong here... ahmet *************** Ahmet Sedat Ayan Physics & Astronomy Dept. Van Allen Hall University of Iowa Iowa City, IA, 52242 Voice : (++ 1 319) 335-2832 (W) (GMT-6) Occupation : Ph.D Candidate (But still dreamer!) e-mail : ayan@cms.physics.uiowa.edu web : http://home.cern.ch/ayan
This archive was generated by hypermail 2b29 : Tue Jan 01 2002 - 17:50:43 MET