Hi,
I have made a library which contains the class I use to process data. But I don’t know how to use a .so instead of .C file in PROOF. Here is my code, it complains when executed:
100812 10:22:04 001 Proofx-E: Conn::Connect: failed to connect to proof://yanght@master:1093//
100812 10:22:04 001 Proofx-E: XrdProofConn: XrdProofConn: severe error occurred while opening a connection to server [master:1093]
Maybe I am not doing it in the right way. Can someone please tell me how to deal with this problem? Thank you!
Best Regards,
Hongtao
#include <TROOT.h>
#include <TProof.h>
#include <TProofLog.h>
#include <TStopwatch.h>
#include <TString.h>
#include <TEnv.h>
#include <algo.h>
#include
#include “CollectionTree.h”
#include “makechain.h”
#include “saveoutput.h”
void execute(const char *list=“list”,const char *output=“test.root”){
gSystem->Load(“libMyClass.so”); //Load the library here
cout<<"Starting chain "<<endl;
makechain(list); //Read the root file list and add them to a TChain chain_M
cout<<“chains DONE”<<endl;
//PROOF LITE
TProof* p = 0;
p = TProof::Open("");
if§{
chain_M->SetProof(kTRUE,kTRUE);
chain_M->Process(“MyClass”); //I used to use chain_M->Process(“MyClass.C+”) and it works well
cout<<“DONE”<<endl;
saveoutput(output,true); //Saving output
printf(“File %s has been saved.\n\n”,output);
}
};