AliRoot Core  3dc7879 (3dc7879)
AliTPCDistortionFun.C File Reference
#include "TCanvas.h"
#include "TF1.h"
#include "TLegend.h"
#include "AliTPCDistortions.h"
Include dependency graph for AliTPCDistortionFun.C:

Go to the source code of this file.

Functions

Double_t GetIFCDistortion (Double_t lx, Double_t ly, Double_t lz, Int_t icoord, Double_t shift=1.)
 
Double_t GetGGDistortion (Double_t lx, Double_t ly, Double_t lz, Int_t icoord, Double_t deltaVGGA=1., Double_t deltaVGGC=1.)
 
void MakePicIFCDX ()
 
void MakePicIFCDXangle ()
 

Variables

TObjArrayarrayPic =new TObjArray
 

Detailed Description

Simple compiled macro for declaration of static distortion function on top of the AliTPCDistortion class. Why:

  1. Use static function in the fitting procedure
  2. Usage in TFormual, TF1, Tf2 ... for visualization.
  3. Usage in tree->Draw() for visualization
  4. Simple visualization of fit residuals in multidemension - using tree Draw functionality

Usage:

gSystem->AddIncludePath("-I$ALICE_ROOT/TPC");
.L $ALICE_ROOT/TPC/CalibMacros/AliTPCDistortions.cxx+
.L $ALICE_ROOT/TPC/CalibMacros/AliTPCDistortionFun.C+

Example:

// Draw integrated distortion in local x
TF2 fdistIFCXvZX("fdistIFCXvZX","GetIFCDistortion(y,0,x,0)*sign(x)",-250,250,80,250);
fdistIFCXvZX.SetNpx(200);
fdistIFCXvZX.SetNpy(200);
fdistIFCXvZX.GetXaxis()->SetTitle("Z (cm)");
fdistIFCXvZX.GetYaxis()->SetTitle("local X (cm)");
fdistIFCXvZX->Draw("colz");
// Draw local distortion angle dx/dz in mrad
TF2 fangleIFCXvZX("fangleIFCXvZX","1000*(GetIFCDistortion(y,0,x,0)-GetIFCDistortion(y,0,x-1,0))",-250,250,85,245);
fangleIFCXvZX.SetNpx(200);
fangleIFCXvZX.SetNpy(200);
fangleIFCXvZX.GetXaxis()->SetTitle("Z (cm)");
fangleIFCXvZX.GetYaxis()->SetTitle("local X (cm)");
fangleIFCXvZX->Draw("colz");
TF2 fangleGGXvZX("fangleGGXvZX","1000*(GetGGDistortion(y,0,x,0,1*400,1*400)-GetGGDistortion(y,0,x-1,0,1*400,1*400))*sign(x)",-250,250,85,245);
fangleGGXvZX.SetNpx(200);
fangleGGXvZX.SetNpy(200);
fangleGGXvZX.GetXaxis()->SetTitle("Z (cm)");
fangleGGXvZX.GetYaxis()->SetTitle("local X (cm)");
fangleGGXvZX->Draw("colz");

Definition in file AliTPCDistortionFun.C.

Function Documentation

Double_t GetGGDistortion ( Double_t  lx,
Double_t  ly,
Double_t  lz,
Int_t  icoord,
Double_t  deltaVGGA = 1.,
Double_t  deltaVGGC = 1. 
)

GG distortion induced distortions

Definition at line 76 of file AliTPCDistortionFun.C.

Double_t GetIFCDistortion ( Double_t  lx,
Double_t  ly,
Double_t  lz,
Int_t  icoord,
Double_t  shift = 1. 
)

Definition at line 53 of file AliTPCDistortionFun.C.

void MakePicIFCDX ( )

Definition at line 100 of file AliTPCDistortionFun.C.

void MakePicIFCDXangle ( )

Definition at line 121 of file AliTPCDistortionFun.C.

Variable Documentation

TObjArray* arrayPic =new TObjArray

Definition at line 51 of file AliTPCDistortionFun.C.