]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
patch for not checking the number of connections when running proof lite (M.Vala)
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 11:41:41 +0000 (11:41 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 11:41:41 +0000 (11:41 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 679fba0784ba74c029244d43b670f0b5a3a91d5b..33f0ed87e72b8b4a3b1c85730b748b6c82d4cbc6 100644 (file)
@@ -2366,7 +2366,8 @@ Bool_t AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEn
    }
    // Are we in PROOF mode ?
    if (mgr->IsProofMode()) {
    }
    // Are we in PROOF mode ?
    if (mgr->IsProofMode()) {
-      Info("StartAnalysis", "##### Starting PROOF analysis on cluster <%s> via the plugin #####", fProofCluster.Data());
+      if (testMode) Info("StartAnalysis", "##### Starting PROOF analysis with Proof Lite via the plugin #####");
+      else Info("StartAnalysis", "##### Starting PROOF analysis on cluster <%s> via the plugin #####", fProofCluster.Data());
       if (fProofCluster.IsNull()) {
          Error("StartAnalysis", "You need to specify the proof cluster name via SetProofCluster");
          return kFALSE;
       if (fProofCluster.IsNull()) {
          Error("StartAnalysis", "You need to specify the proof cluster name via SetProofCluster");
          return kFALSE;
@@ -2389,11 +2390,14 @@ Bool_t AliAnalysisAlien::StartAnalysis(Long64_t /*nentries*/, Long64_t /*firstEn
          Info("StartAnalysis", "Stopping the analysis. Please use SetProofReset(0) to resume.");
          return kFALSE;
       }
          Info("StartAnalysis", "Stopping the analysis. Please use SetProofReset(0) to resume.");
          return kFALSE;
       }
-      // Check if there is an old active session
-      Long_t nsessions = gROOT->ProcessLine(Form("TProof::Mgr(\"%s\")->QuerySessions(\"\")->GetEntries();", fProofCluster.Data()));
-      if (nsessions) {
-         Error("StartAnalysis","You have to reset your old session first\n");
-         return kFALSE;
+      
+      if (!testMode) {
+        // Check if there is an old active session
+        Long_t nsessions = gROOT->ProcessLine(Form("TProof::Mgr(\"%s\")->QuerySessions(\"\")->GetEntries();", fProofCluster.Data()));
+        if (nsessions) {
+          Error("StartAnalysis","You have to reset your old session first\n");
+          return kFALSE;
+        }
       }
       // Do we need to change the ROOT version ? The success of this cannot be checked.
       if (!fRootVersionForProof.IsNull() && !testMode) {
       }
       // Do we need to change the ROOT version ? The success of this cannot be checked.
       if (!fRootVersionForProof.IsNull() && !testMode) {