Re: [ROOT] Error: No symbol mass in current scope FILE:tuple.C LINE:185

From: Suzanne Panacek (spanacek@fnal.gov)
Date: Fri Apr 27 2001 - 18:18:56 MEST


Hi,
It is strange that in the header file the same branch name (RN) is used in
all the calls to SetBranchAddress. This means to me that the address is
overwritten with each call.
To go any further, I would have to look at your data file Can you send me
one?

Suzanne

   tuple->SetBranchAddress("RN",&RN_Pzt4);
   tuple->SetBranchAddress("RN",&RN_chit4);
   tuple->SetBranchAddress("RN",&RN_masst4);
   tuple->SetBranchAddress("RN",&RN_pidt4);
   tuple->SetBranchAddress("RN",&RN_);


----- Original Message -----
From: "Ahmet Sedat Ayan" <ayan@cms.physics.uiowa.edu>
To: "Suzanne Panacek" <spanacek@fnal.gov>
Cc: <roottalk@pcroot.cern.ch>
Sent: Friday, April 27, 2001 11:02 AM
Subject: Re: [ROOT] Error: No symbol mass in current scope FILE:tuple.C
LINE:185


> 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