Logo ROOT  
Reference Guide
Loading...
Searching...
No Matches
RunMySelector.C
Go to the documentation of this file.
1{// set up a TChain
2TChain *ch=new TChain("cond_data", "My Chain for Example N-Tuple");
3 ch->Add("conductivity_experiment*.root");
4// eventually, start Proof Lite on cores
5TProof::Open("workers=4");
6ch->SetProof();
7ch->Process("MySelector.C+");}
A chain is a collection of files containing TTree objects.
Definition TChain.h:33
Long64_t Process(const char *filename, Option_t *option="", Long64_t nentries=kMaxEntries, Long64_t firstentry=0) override
Process all entries in this chain, calling functions in filename.
Definition TChain.cxx:2269
virtual Int_t Add(TChain *chain)
Add all files referenced by the passed chain to this chain.
Definition TChain.cxx:211