X-Git-Url: http://git.uio.no/git/?a=blobdiff_plain;f=TPC%2FAliTPCExBTwist.cxx;h=4c120f9f7e4269540044656ebef22ecd50f87567;hb=245f912aeb7deb90c760d2f0cee9aa528bc5bced;hp=f9e2dd2b310ced4dad36ab15c57451b8c6820f01;hpb=534fd34a78064d8c2ef7b76af402185b9bd59304;p=u%2Fmrichter%2FAliRoot.git diff --git a/TPC/AliTPCExBTwist.cxx b/TPC/AliTPCExBTwist.cxx index f9e2dd2b310..4c120f9f7e4 100644 --- a/TPC/AliTPCExBTwist.cxx +++ b/TPC/AliTPCExBTwist.cxx @@ -14,22 +14,10 @@ **************************************************************************/ //////////////////////////////////////////////////////////////////////////// -// // // AliTPCExBTwist class // -// The class calculates the space point distortions due to a mismatch // -// of the E and B field axis (original code from STAR) // -// The class allows "effective Omega Tau" corrections. // -// // -// date: 27/04/2010 // -// Authors: Jim Thomas, Magnus Mager, Stefan Rossegger // -// // -// Example usage: // -// AliTPCExBTwist twist; // -// twist.SetOmegaTauT1T2(0.32,1.,1.); // values ideally from OCDB // -// twist.SetXTwist(0.001); // set twist in X direction (in rad) // -// // plot dRPhi distortions ... // -// twist.CreateHistoDRPhiinZR(1.,100,100)->Draw("surf2"); // //////////////////////////////////////////////////////////////////////////// + + #include "AliMagF.h" #include "TGeoGlobalMagField.h" #include "AliTPCcalibDB.h" @@ -101,7 +89,7 @@ void AliTPCExBTwist::GetCorrection(const Float_t x[],const Short_t roc,Float_t d // const Float_t zstart=x[2]; - const Float_t zend =(roc%36<18?fgkTPC_Z0:-fgkTPC_Z0); + const Float_t zend =(roc%36<18?fgkTPCZ0:-fgkTPCZ0); const Float_t zdrift=zstart-zend; dx[0]=(fC2*fXTwist-fC1*fYTwist)*zdrift; @@ -109,7 +97,7 @@ void AliTPCExBTwist::GetCorrection(const Float_t x[],const Short_t roc,Float_t d dx[2]=0.; } -void AliTPCExBTwist::Print(Option_t* option) const { +void AliTPCExBTwist::Print(const Option_t* option) const { // // Print function to check the settings (e.g. the twist in the X direction) // option=="a" prints the C0 and C1 coefficents for calibration purposes