void run_test1Selector() { // TString protocol = TString("dcap://dcache.rcac.purdue.edu:22125/pnfs/rcac.purdue.edu/data"); TString protocol = TString("root://dcache-00.rcac.purdue.edu/pnfs/rcac.purdue.edu/data"); char* files[] = { "/store/relval/CMSSW_3_1_0_pre4/RelValMinBias/GEN-SIM-DIGI-RAW-HLTDEBUG/IDEAL_30X_v1/0003/F6E7E6D3-F815-DE11-A831-001617DBD316.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0041.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0047.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0046.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0045.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0044.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0043.root", // "/store/user/hyxu/SingleMuMinusPt100-newStep3/newStep3-SingleMuMinusPt100-0042.root", NULL }; TChain *chain=new TChain("Events"); int index = 0; while (files[index] != NULL) { TString filename = TString(files[index]); filename.Prepend(protocol); chain->Add(filename); index++; } gROOT->Time(); //Events->SetAlias("muons","recoMuons_muons__reReco.obj"); //Events->SetAlias("t1","recoTracks_generalTracks__reReco.obj"); //Events->SetAlias("t2","recoTrackExtras_generalTracks__reReco.obj"); //Events->SetAlias("g1","recoTracks_globalMuons__reReco.obj"); //Events->SetAlias("g2","recoTrackExtras_globalMuons__reReco.obj"); std::cout << chain->GetTree()<GetListOfFiles(); TIter next(filesEl); TChainElement *chEl=0; while((chEl=(TChainElement*)next())){ cout <GetTitle()<Process("test1Selector.C","",evtmax); //Events->Draw("g1.momentum_.Eta()","g1.chi2_>1.0",""); }