]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - PHOS/Reconstruction.C
Calibration parameters for ideal calibration, decalibration and inverse calibration...
[u/mrichter/AliRoot.git] / PHOS / Reconstruction.C
index f14d3d5071915dcb39921bca58a5be1b9b59b505..aee68a9d3f9777c264450be6d9a7a0bea543d771 100644 (file)
 #include "AliPHOSGetter.h"
 #include "AliEMCALGetter.h"
 
-void reco(TString opt="TRE", TString name="all", Bool_t debug="kFALSE") 
+void reco(TString opt="TVRE", TString name="all", Bool_t debug="kFALSE") 
 {
   AliReconstruction rec ; 
-  if ( !opt.Contains("T") ) {
-    rec.SetRunTracking(kFALSE) ;
+  if ( !opt.Contains("T") ) 
+    rec.SetRunTracking("") ;
+  else
+    rec.SetRunTracking(name.Data()) ;
+
+  if ( !opt.Contains("V") ) 
     rec.SetRunVertexFinder(kFALSE) ; 
-  }
 
   if ( opt.Contains("R") ) 
     rec.SetRunLocalReconstruction(name.Data()) ; 
@@ -50,29 +53,4 @@ void reco(TString opt="TRE", TString name="all", Bool_t debug="kFALSE")
     rec.SetFillESD(name.Data()) ; 
 
   rec.Run() ;
-
-  if ( name.Contains("PHOS") ) {
-    cout << ">>>>>>>>>>>> PHOS " << endl ; 
-    AliPHOSGetter * gime = AliPHOSGetter::Instance("galice.root") ; 
-    Int_t event ; 
-    for (event = 0; event < gime->MaxEvent(); event++) {
-      cout << "event # " << event << endl ; 
-      gime->Event(event, "RPT") ; 
-      cout << "   EMC RecPoints  # " << gime->EmcRecPoints()->GetEntries() << endl ; 
-      cout << "   CPV RecPoints  # " << gime->CpvRecPoints()->GetEntries() << endl ; 
-      cout << "   Track Segments # " << gime->TrackSegments()->GetEntries() << endl ; 
-      cout << "   Rec Particles  # " << gime->RecParticles()->GetEntries() << endl ; 
-    }
-  } 
- if ( name.Contains("EMCAL") ) {
-    cout << ">>>>>>>>>>>> EMCAL " << endl ; 
-    AliEMCALGetter * gime = AliEMCALGetter::Instance("galice.root") ; 
-    Int_t event ; 
-    for (event = 0; event < gime->MaxEvent(); event++) {
-      cout << "event # " << event << endl ; 
-      gime->Event(event, "RP") ; 
-      cout << "       RecPoints  # " << gime->ECARecPoints()->GetEntries() << endl ; 
-      cout << "   Rec Particles  # " << gime->RecParticles()->GetEntries() << endl ; 
-    }
- } 
 }