#include void Final_Results() { // read the NULL results TChain *chain = new TChain("T"); TChain *chain2 = new TChain("T"); FILE *input; char filename[300]; input = fopen("list_null_0mp.txt","r"); if (input != NULL) { // lets read each line and get the filename from it while (fscanf(input,"%s\n",filename) != EOF) { printf("%s\n",filename); chain->Add(filename); } } else printf("File not found\n"); fclose(input); // the TTree class created with makeclass is called RecoTau // and it has a method with which to intitialise the TTree jdist1_sparse Null_0mp_Tree(chain); // do the analysis with the methods defined in RecoTau Null_0mp_Tree.Loop(); // lets do the second one chain2->Add("/import/reines1/maki/data/null_0pp_2.root"); jdist1_sparse Null_0pp_Tree(chain2); Null_0pp_Tree.Loop(); }