]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - ESDCheck/ana.C
Added log outputs
[u/mrichter/AliRoot.git] / ESDCheck / ana.C
index d6f22ee96eb4027181f803a64e2e976f040a5202..9f1c0c456f219108dcf0bab5d18a3930590fe5a3 100644 (file)
@@ -37,17 +37,21 @@ Bool_t LoadLib( const char* pararchivename)
 
   if ( strstr(pararchivename, "ESD") ) {
     //gSystem->Load("libVMC.so");
 
   if ( strstr(pararchivename, "ESD") ) {
     //gSystem->Load("libVMC.so");
-    gSystem->Load("libESD.so");
-    //gSystem->Load("libRAliEn.so") ;
+    //gSystem->Load("libRAliEn.so");
+    gSystem->Load("libESD.so") ;
     //gSystem->Load("libProof.so") ;
   }
 
     //gSystem->Load("libProof.so") ;
   }
 
-  printf("*** %s library loaded *** %s **\n", pararchivename);
+  if ( strstr(pararchivename, "AnalysisCheck") ) {
+    gSystem->Load("libSpectrum.so");
+  }
+  
+  printf("lib%s done\n", pararchivename);
 
   gSystem->ChangeDirectory(cdir);
 
   gIsAnalysisLoaded = kTRUE ; 
 
   gSystem->ChangeDirectory(cdir);
 
   gIsAnalysisLoaded = kTRUE ; 
-  return rv ;  ; 
+  return rv ; 
 }
 
 //______________________________________________________________________
 }
 
 //______________________________________________________________________
@@ -148,6 +152,7 @@ void ana()
     analysisChain->AddFile(input);
     ag->Process(analysisChain) ; 
   }
     analysisChain->AddFile(input);
     ag->Process(analysisChain) ; 
   }
+  return ;
 }
 
 //______________________________________________________________________
 }
 
 //______________________________________________________________________
@@ -160,17 +165,3 @@ void Merge(const char * xml, const char * sub, const char * out)
   ag->Merge(xml, sub, out) ;
 }
 
   ag->Merge(xml, sub, out) ;
 }
 
-//______________________________________________________________________
-void test(const char * fcollection1) 
-{
-  AliXMLCollection collection1(fcollection1);
- TChain* analysisChain = new TChain("esdTree");
- collection1.Reset();
- while (collection1.Next()) {
-   cout<<"Adding "<<collection1.GetTURL()<<endl;
-   analysisChain->Add(collection1.GetTURL());
- }
- return ;
-}