Typo
[u/mrichter/AliRoot.git] / prod / acrcaf / reco / run.C
index 79cdb7bd5c4742437db0a1749a1eaf07a5d26f16..7d4979e4a02e475bf578f74f5024c1135de192be 100644 (file)
@@ -2,14 +2,21 @@ void run(Int_t runNumber, Int_t nev = 10000, Int_t firstev = 0, const char* root
 {
   gEnv->SetValue("XSec.GSI.DelegProxy","2");
   // Select ROOT version
-  if (rootVersion)
+  if (rootVersion) 
     TProof::Mgr("aliprod@alicecaf")->SetROOTVersion(rootVersion);
+    
   // Login to CAF
   TProof::Open("aliprod@alicecaf");
 
   // Enable AliRoot
-  gProof->UploadPackage("/afs/cern.ch/alice/caf/sw/ALICE/PARs/v4-17-Release.rec/AF-v4-17-rec.par");
-  gProof->EnablePackage("AF-v4-17-rec.par");
+  if(!strcmp(rootVersion,"ROOT_new") || !strcmp(rootVersion,"ROOT_pro")) {
+    cout << "Loading " << rootVersion << endl;
+    gProof->UploadPackage(Form("/afs/cern.ch/alice/caf/sw/ALICE/PARs/v4-17-Release.rec/%s.par",rootVersion));
+    gProof->EnablePackage(Form("%s.par",rootVersion));
+  } else {
+    gProof->UploadPackage("/afs/cern.ch/alice/caf/sw/ALICE/PARs/v4-17-Release.rec/AF-v4-17-rec.par");
+    gProof->EnablePackage("AF-v4-17-rec.par");
+  }
 
   gSystem->Load("libMonaLisa.so");
   TMonaLisaWriter monalisa("pcalishuttle02.cern.ch",