/*
// read events (only necessary if you want to access the old data)
- newAodTree->GetEvent(nEv);
+ newAodTree->GetEvent(iEv);
*/
tracks->Delete(); // for each event delete old entries of new TClonesArray
newBranch->Fill();
}
+ // delete old and write new UserInfo
+ newAodTree->GetUserInfo()->Clear();
+ newAodTree->GetUserInfo()->Add(evNew);
+
// write new TTree to file
newAodTree->Write();