ROOT Version: Not Provided Platform: Not Provided Compiler: Not Provided
Hi. I want to create a tree with a branch collecting events (1 event for each “step”). I found a tutorial (tree4.C) where one object event is created and then updated to create all the events (I think):
Are there functions in ROOT to create a branch with no adress (no"&event") and then in the for loop put objects in the branch to obtain the same result without enabling users to change private members of the class with Setters? Something like
for(int i.....){
event *ev=new event(....);
//link ev to branch to save it there
delete ev;}