/// To load type in the terminal: root -l runProof.C\(1,-1\) void runProof(bool withProof=true, Int_t nev=10) { TStopwatch timer; timer.Start(); TProof* proof = 0; if (withProof) { proof = TProof::Open("lite://"); if (!proof) { Warning("runProof", "Failed to open ProofLite"); return; } } proof->Load("Lib.C++g"); proof->Load("Selector.C++g"); TChain* chain = new TChain("T"); chain->AddFile("Hijing_000244918_AA_05020_100.root"); if (proof) chain->SetProof(proof); TSelector* sel = (TSelector*)gROOT->ProcessLine("new Selector"); Printf("%p", sel); if (nev < 0) nev = TChain::kMaxEntries; chain->Process(sel,"",nev); timer.Stop(); timer.Print(); }