moving to new PROOF api
authorjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jan 2007 16:53:27 +0000 (16:53 +0000)
committerjgrosseo <jgrosseo@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 24 Jan 2007 16:53:27 +0000 (16:53 +0000)
PWG0/PWG0Helper.C

index 9c73492..797586b 100644 (file)
@@ -3,9 +3,9 @@
 // Helper macros can be found in this file
 // A set of them can be used to connect to proof and execute selectors.
 
-TVirtualProof* connectProof(const char* proofServer)
+TProof* connectProof(const char* proofServer)
 {
-  TVirtualProof* proof = TProof::Open(proofServer);
+  TProof* proof = TProof::Open(proofServer);
 
   if (!proof)
   {
@@ -95,7 +95,10 @@ Int_t executeQuery(TChain* chain, TList* inputList, TString selectorName, const
   Long64_t result = -1;
 
   if (gProof)
-    result = chain->MakeTDSet()->Process(selectorName, option, entries);
+  {
+    chain->SetProof();
+    result = chain->Process(selectorName, option, entries);
+  }
   else
     result = chain->Process(selectorName, option, entries);