]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCcalibDB.cxx
Adding AliTPCClusterParam to the calibration database (Marian)
[u/mrichter/AliRoot.git] / TPC / AliTPCcalibDB.cxx
index f1c32dabf31a11062c28d2ebd1e55e21005a8413..eef7cb91f897fb6bfc43fcf5ef2d65514a59e131 100644 (file)
@@ -21,7 +21,6 @@
 // Request an instance with AliTPCcalibDB::Instance()                        //
 // If a new event is processed set the event number with SetRun              //
 // Then request the calibration data                                         ////
-
 //
 //
 // Calibration data:
@@ -71,6 +70,9 @@
 //                  
 //                  in AliTPCtransform::Correct() - called calib->GetExB()->Correct(dxyz0,dxyz1)
 //
+//  3.)   cluster error, shape and Q parameterization
+//
+//
 //
 ///////////////////////////////////////////////////////////////////////////////
 
@@ -162,7 +164,8 @@ AliTPCcalibDB::AliTPCcalibDB():
   fPedestals(0),
   fTemperature(0),
   fMapping(0),
-  fParam(0)
+  fParam(0),
+  fClusterParam(0)
 {
   //
   // constructor
@@ -269,6 +272,13 @@ void AliTPCcalibDB::Update(){
     fParam = (AliTPCParam*)(entry->GetObject()->Clone());
   }
 
+  entry          = GetCDBEntry("TPC/Calib/ClusterParam");
+  if (entry){
+    //if (fPadNoise) delete fPadNoise;
+    entry->SetOwner(kTRUE);
+    fClusterParam = (AliTPCClusterParam*)(entry->GetObject()->Clone());
+  }
+
   entry          = GetCDBEntry("TPC/Calib/Mapping");
   if (entry){
     //if (fPadNoise) delete fPadNoise;