Re: Error messages while running root code

From: Axel Naumann <Axel.Naumann_at_cern.ch>
Date: Mon, 18 Oct 2010 17:24:13 +0200


Hi,

the message means that you pass a name of a branch (other than "*") to SetBranchStatus() that doesn't exist. You'll have to post your actual source files for us to give a more precise answer.

Cheers, Axel.

Harinder Singh Bawa wrote on 10/18/2010 11:20 AM:
>
> Dear Rooters,
>
> I am trying to run root code on different input rootfiles, which differs
> in some input variables. Means some are having 100 variables and some
> are having say 110 variables(10 different/new than others). Now When I
> run my code on all input files together , it is running but giving me
> warning error messages
> below
>
> Error in <TTree::SetBranchStatus>: unknown branch -> Branch Name
>
>
> This is understood because some input files may not be having these
> variables. I want to get rid of these and for that, I did
> fChain->SetBranchStatus("*",0);
> fChain->SetBranchStatus("RunNumber",1);
> and so on...... i.e red only those branches which are of interest.
>
>
> But after that also, it is complaining same. It is reading those
> variables which I dont need and which are not in some of the input
> variables.
>
> What should I do.
>
> cheers
>
>
> Harinder
Received on Mon Oct 18 2010 - 17:24:18 CEST

This archive was generated by hypermail 2.2.0 : Mon Oct 18 2010 - 23:50:01 CEST