{ TTree *T = new TTree("tree","what a tree"); T->ReadFile("inputs.txt","x1:x2:x3:x4:x5:x6:x7:x8:x9:x10"); TTreeFormula *pouet = NULL; bool crashing = true; if(crashing) pouet = new TTreeFormula("toto4","x10+x9-x5+x4+x3-x8-x7+x2+x1+x6",T); else pouet = new TTreeFormula("toto4","x10+x9",T); T->GetEntry(1); cout<<"Compile ? "<Compile()<GetNdata()<EvalInstance()<