{ // usage: // root[0] .x testsumenergy.C // // tested with root cvs development version dated August 18, 2004, // but root files generated previous to this date can be used as input. gSystem -> Load("libTreePlayer.so"); remove("neutrino_pc.txt"); remove("antineu_pc.txt"); TChain chainmc ("NtpMC"); chainmc.Add("/plvm/debdatta/neardet/truth/n14303001*.root"); TChain chainsr ("NtpSR"); chainsr.Add("/plvm/debdatta/neardet/truth/n14303001*.root"); TChain chainth ("NtpTH"); chainth.Add("/plvm/debdatta/neardet/truth/n14303001*.root"); chainmc.AddFriend("NtpSR"); chainmc.AddFriend("NtpTH"); cout<<"came till here "<