Please read tips for efficient and successful posting and posting code
ROOT Version: Not Provided
Platform: Not Provided
Compiler: Not Provided
Hello dear experts
I am updating my previous question.
int i=0;
while(i<=N3)
{
ifs >> x >> y;
itree->Branch("Data", &x,"(xy)/D");
int j;
for(j=N; j < N2; ++j)
{
itree->Fill();
}
cout << N << " " << i << endl;
i = ++i;
N = N+1024;
if(ifs.eof()) break;
}
I want to create multiple tree branches automatic. I think in order to do this I have to change my tree branch name. I put " i " on front of tree itree->Fill();
like this and I hoped as the while loop goes, it changes the name . But it didn’t work.
/Users/kaan/Desktop/Sub_Zero/zsub/dataroot.c:33:13: error: use of undeclared identifier 'itree'
itree->Fill();
^
This is the error I got.