]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCCalibKrTask.cxx
calibration updates (Marian)
[u/mrichter/AliRoot.git] / TPC / AliTPCCalibKrTask.cxx
index 52d5a1cde4f15d7d3115fd005633e6fe461580be..1489575a1a2cb35bb2c49b571a3092891df9f41a 100644 (file)
@@ -22,6 +22,7 @@
 // The AliTPCCalibKr output calibration component contains an array of TH3F histograms which can be stored 
 // in the ouptut file.
 //
+//  Author: Jacek Otwinowski (J.Otwinowski@gsi.de)
 
 /*
  
@@ -92,7 +93,7 @@ mgr->StartAnalysis("local", chain);
 #include "AliTPCCalibKr.h"
 #include "AliTPCCalibKrTask.h"
 
-Int_t AliTPCCalibKrTask::evtNumber = 0;
+Int_t AliTPCCalibKrTask::fEvtNumber = 0;
 
 ClassImp(AliTPCCalibKrTask)
 
@@ -117,7 +118,8 @@ AliTPCCalibKrTask::~AliTPCCalibKrTask()
   //
   // destructor
   //
-  if(fClustKr) delete fClustKr; fClustKr = 0;
+  if(fOutput) fOutput->Delete();
+  delete fOutput; fOutput = 0;
 }
 
 //_____________________________________________________________________
@@ -133,6 +135,7 @@ void AliTPCCalibKrTask::ConnectInputData(Option_t *)
   }
   else {
    fTree->SetBranchStatus("*",1); 
+   fTree->SetBranchStatus("Cl.fCluster",0); 
   }
 
   // set branch address
@@ -148,7 +151,7 @@ void AliTPCCalibKrTask::CreateOutputObjects()
 {
   // create object to the output 
   fOutput = new TList;
-  fOutput->SetOwner();
+  fOutput->SetOwner(); // is owner of the fTPCCalibKr objects
 
   if(fTPCCalibKr) fOutput->Add(fTPCCalibKr);
   //fTPCCalibKr = new AliTPCCalibKr;
@@ -185,17 +188,17 @@ void AliTPCCalibKrTask::Exec(Option_t *)
   
   // read entry
   if(fClustKr) delete fClustKr; fClustKr=0;
-  Bool_t status = ReadEntry(evtNumber);
+  Bool_t status = ReadEntry(fEvtNumber);
   if(status==kTRUE) 
   {
          // Process output objects
       if(fClustKr) fTPCCalibKr->Process(fClustKr);
   }
  
-  if( !( evtNumber % 10000) ) {
-    cout << evtNumber << endl; }
+  if( !( fEvtNumber % 100000) ) {
+    cout << fEvtNumber << endl; }
 
-  evtNumber++;
+  fEvtNumber++;
 
   // Post output data.
   PostData(0, fOutput);