#include "MySel.h" using namespace std; int main (int argc, char *argv[]) { const TString mode = argv[1]; const TString channel = argv[2]; const TString outFileName = argv[3]; const TString inFileName = argv[4]; TFile *inFile = TFile::Open(inFileName.Data()); TChain *inTree = (TChain*)inFile->Get("usertree"); TProof *proof = TProof::Open(""); //gProof->Exec("gSystem->Load(\"libCintex\")"); //gProof->Exec("ROOT::Cintex::Cintex::Enable()"); //gProof->Exec("gSystem->Load(\"/home/mgv4ce/testing/MySel.so\")"); //proof->Load("MySel.C+"); proof->Load(TString::Format("%s/MySel.so", gSystem->WorkingDirectory())); inTree->SetProof(proof); MySel *s = new MySel(); //s->Begin(mode, channel, inTree); //s->SlaveBegin(); Bool_t status = (Bool_t)inTree->Process("MySel");//"MySel.C+"); cout << "reporting " << status << " for Process call" << endl; //s->SlaveTerminate(); //s->Terminate(); gSystem->Exit(0); return 0; }