Skip to content

Commit

Permalink
Revert the sign of deltaZ correction in vdrift to Marian's version
Browse files Browse the repository at this point in the history
  • Loading branch information
shahor02 committed Jun 7, 2016
1 parent b60715c commit 53b78da
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions TPC/TPCcalib/AliTPCDcalibRes.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2834,8 +2834,7 @@ void AliTPCDcalibRes::MakeVDriftOCDB(TString targetOCDBstorage)
AliTPCParam* param = AliTPCcalibDB::Instance()->GetParameters(); // just to get Vdrift
//
for (Int_t ipoint=0; ipoint<=1; ipoint++){
// deltaZ[ipoint]=-(*fVDriftParam)[1]; // unit OK
deltaZ[ipoint]=(*fVDriftParam)[1]; // unit OK !!! No - sign, it is subtracted from (Zmax-drift)
deltaZ[ipoint]=-(*fVDriftParam)[1]; // unit OK
vdgy[ipoint]=-(*fVDriftParam)[2]; // units OK
t0[ipoint]=-(*fVDriftParam)[0]/(1+(*fVDriftParam)[3]); // t0 to be normalized to the ms
t0[ipoint]/=(param->GetDriftV()/1000000.);
Expand Down
3 changes: 1 addition & 2 deletions TPC/TPCcalib/AliTPCcalibAlignInterpolation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3098,8 +3098,7 @@ void AliTPCcalibAlignInterpolation::MakeVDriftOCDB(const char *inputFile, Int_t
atime[0]=graphDRIFTVD->GetX()[0];
atime[1]=graphDRIFTVD->GetX()[graphDRIFTVD->GetN()-1];
for (Int_t ipoint=0; ipoint<=1; ipoint++){
// deltaZ[ipoint]=-(*vdriftParam)[1]; // unit OK
deltaZ[ipoint]=(*vdriftParam)[1]; // unit OK // RS Sign should be opposite to t0 corr, since it is subtracted from (Zmax-drift)
deltaZ[ipoint]=-(*vdriftParam)[1]; // unit OK
vdgy[ipoint]=-(*vdriftParam)[2]; // units OK
t0[ipoint]=-(*vdriftParam)[0]/(1+(*vdriftParam)[3]); // t0 to be normalized to the ms
t0[ipoint]/=(param->GetDriftV()/1000000.);
Expand Down

0 comments on commit 53b78da

Please sign in to comment.