Patch for the tracker
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Feb 2011 10:25:06 +0000 (10:25 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 18 Feb 2011 10:25:06 +0000 (10:25 +0000)
TPC/AliTPCtrackerMI.cxx

index dd232d0..f00f0e4 100644 (file)
@@ -2666,9 +2666,17 @@ Int_t AliTPCtrackerMI::RefitInward(AliESDEvent *event)
   fEvent = event;
   // extract correction object for multiplicity dependence of dEdx
   TObjArray * gainCalibArray = AliTPCcalibDB::Instance()->GetTimeGainSplinesRun(event->GetRunNumber());
+
+  AliTPCTransform *transform = AliTPCcalibDB::Instance()->GetTransform() ;
+  if (!transform) {
+    AliFatal("Tranformations not in RefitInward");
+    return 0;
+  }
+  transform->SetCurrentRecoParam((AliTPCRecoParam*)AliTPCReconstructor::GetRecoParam());
   const AliTPCRecoParam * recoParam = AliTPCcalibDB::Instance()->GetTransform()->GetCurrentRecoParam();
+
   TGraphErrors * graphMultDependenceDeDx = 0x0;
-  if (recoParam->GetUseMultiplicityCorrectionDedx() && gainCalibArray) {
+  if (recoParam && recoParam->GetUseMultiplicityCorrectionDedx() && gainCalibArray) {
     if (recoParam->GetUseTotCharge()) {
       graphMultDependenceDeDx = (TGraphErrors *) gainCalibArray->FindObject("TGRAPHERRORS_MEANQTOT_MULTIPLICITYDEPENDENCE_BEAM_ALL");
     } else {
@@ -5847,6 +5855,7 @@ Int_t AliTPCtrackerMI::ReadSeeds(const TFile *inp) {
 Int_t AliTPCtrackerMI::Clusters2Tracks (AliESDEvent *const esd)
 {
   //
+  
   if (fSeeds) DeleteSeeds();
   fEvent = esd;
   Clusters2Tracks();