delete fBitMask;
delete fFixedParam;
}
-void AliTPCTransformation::SetParams(Double_t param, Double_t sigma, Double_t sigma2Time, TVectorD* fixedParams){
+void AliTPCTransformation::SetParams(Double_t param, Double_t sigma, Double_t sigma2Time, const TVectorD *const fixedParams){
//
// Set parameters of transformation
//
Double_t rrphiz[3]={0,0,0};
if (fFormulaX) rrphiz[0] = fFormulaX(xyz,fFixedParam->GetMatrixArray());
if (fFormulaY) rrphiz[1] = fFormulaY(xyz,fFixedParam->GetMatrixArray());
- Double_t alpha = TMath::ATan2(y,x);
- Double_t ca = TMath::Cos(alpha);
- Double_t sa = TMath::Sin(alpha);
+ alpha = TMath::ATan2(y,x);
+ ca = TMath::Cos(alpha);
+ sa = TMath::Sin(alpha);
if (coord==0) return ca*rrphiz[0]-sa*rrphiz[1];
if (coord==1) return sa*rrphiz[0]+ca*rrphiz[1];
if (coord==3) return rrphiz[0];
return deltaAlpha*xyz[3];
}
-Double_t AliTPCTransformation::TPClocalRPhiEdge(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPClocalRPhiEdge(Double_t *xyz, const Double_t *const param){
//
//
// Scaling if the local y -phi
}
-Double_t AliTPCTransformation::TPCdeltaFCROC(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPCdeltaFCROC(Double_t *xyz, const Double_t *const param){
//
// delta R(Z) ROC induced
// param[0] - switch 0 - use distance to IFC - 1 - distance to IFC
}
-Double_t AliTPCTransformation::TPCdeltaFCCE(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPCdeltaFCCE(Double_t *xyz, const Double_t *const param){
//
// delta R(Z) CE (central electrode) induced
// param[0] - switch 0 - use distance to IFC - 1 - distance to IFC
//
//
//
-Double_t AliTPCTransformation:: TPClocaldLxdGX(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation:: TPClocaldLxdGX(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter
return ca*factor;
}
-Double_t AliTPCTransformation::TPClocaldLxdGY(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPClocaldLxdGY(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter
return sa*factor;
}
-Double_t AliTPCTransformation:: TPClocaldLydGX(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation:: TPClocaldLydGX(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter
return -sa*factor;
}
-Double_t AliTPCTransformation::TPClocaldLydGY(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPClocaldLydGY(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter
}
-Double_t AliTPCTransformation::TPClocaldRzdGX(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPClocaldRzdGX(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter - rotation angle in mrad
return dgxR;
}
-Double_t AliTPCTransformation::TPClocaldRzdGY(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPClocaldRzdGY(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter - rotation angle in mrad
return xyz[3]*sign*signZ;
}
-Double_t AliTPCTransformation::TPCDeltaZ(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPCDeltaZ(Double_t *xyz, const Double_t *const param){
//
// xyz - [0..2] - position
// [3] - scale parameter
}
-Double_t AliTPCTransformation::TPCTiltingZ(Double_t *xyz, Double_t * param){
+Double_t AliTPCTransformation::TPCTiltingZ(Double_t *xyz, const Double_t *const param){
// xyz - [0..2] - position
// [3] - scale parameter
// [4] - volID