Drift velocity calibration - update
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Oct 2009 11:17:16 +0000 (11:17 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 27 Oct 2009 11:17:16 +0000 (11:17 +0000)
(Already ported to Release)
Marian

TPC/AliTPCTransform.cxx
TPC/AliTPCclustererMI.cxx

index 79f2674..4681d56 100755 (executable)
@@ -256,12 +256,12 @@ void AliTPCTransform::Local2RotatedGlobal(Int_t sector, Double_t *x) const {
     if(fCurrentRecoParam&&fCurrentRecoParam->GetUseDriftCorrectionTime()>0) {
       vdcorrectionTime = (1+AliTPCcalibDB::Instance()->
                          GetVDriftCorrectionTime(fCurrentTimeStamp, 
-                                                 AliTPCcalibDB::Instance()->GetRun(),
+                                                 fCurrentRun,
                                                  sector%36>=18,
                                                  fCurrentRecoParam->GetUseDriftCorrectionTime()));                       
       time0corrTime= AliTPCcalibDB::Instance()->
        GetTime0CorrectionTime(fCurrentTimeStamp, 
-                              AliTPCcalibDB::Instance()->GetRun(),
+                              fCurrentRun,
                               sector%36>=18,
                               fCurrentRecoParam->GetUseDriftCorrectionTime()); 
     }
index 5edab01..c50b1e8 100644 (file)
@@ -910,6 +910,9 @@ void AliTPCclustererMI::Digits2Clusters(AliRawReader* rawReader)
   if (fEventHeader){
     fTimeStamp = fEventHeader->Get("Timestamp");
     fEventType = fEventHeader->Get("Type");
+    AliTPCTransform *transform = AliTPCcalibDB::Instance()->GetTransform() ;
+    transform->SetCurrentTimeStamp(fTimeStamp);
+    transform->SetCurrentRun(rawReader->GetRunNumber());
   }
   
   // creaate one TClonesArray for all clusters
@@ -978,7 +981,7 @@ void AliTPCclustererMI::Digits2Clusters(AliRawReader* rawReader)
     if (input.GetSector() != fSector)
       AliFatal(Form("Sector index mismatch ! Expected (%d), but got (%d) !",fSector,input.GetSector()));
     
-    Int_t nRows = fParam->GetNRow(fSector);
+    //Int_t nRows = fParam->GetNRow(fSector);
     
     AliTPCCalROC * gainROC    = gainTPC->GetCalROC(fSector);  // pad gains per given sector
     // Begin loop over altro data