AliRoot Core  3dc7879 (3dc7879)
RegisterCorrection.C File Reference
#include "TFile.h"
#include "TObjArray.h"
#include "TTreeStream.h"
#include "TMath.h"
#include "TGraph.h"
#include "TRandom.h"
#include "TTree.h"
#include "TF1.h"
#include "TH2F.h"
#include "TH3F.h"
#include "TAxis.h"
#include "TPad.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "AliTPCParamSR.h"
#include "TDatabasePDG.h"
#include "AliTPCCorrection.h"
#include "AliTPCFCVoltError3D.h"
#include "AliTPCROCVoltError3D.h"
#include "AliTPCComposedCorrection.h"
#include "AliTPCBoundaryVoltError.h"
#include "AliTPCCalibGlobalMisalignment.h"
#include "AliTPCExBBShape.h"
#include "AliTPCExBTwist.h"
#include "AliTPCCorrectionDrift.h"
#include "AliMagF.h"
#include "AliCDBEntry.h"
#include "AliTPCROC.h"
#include <TStatToolkit.h>
#include "TCut.h"
#include "TGraphErrors.h"
#include "AliTrackerBase.h"
#include "TGeoGlobalMagField.h"
#include "TROOT.h"
#include "TLinearFitter.h"
#include "TStopwatch.h"
#include "AliTPCCorrectionFit.h"
Include dependency graph for RegisterCorrection.C:

Go to the source code of this file.

Functions

void RegisterAliTPCFCVoltError3D ()
 
void RegisterAliTPCCalibGlobalMisalignment ()
 
void RegisterAliTPCBoundaryVoltError ()
 
void RegisterAliTPCExBShape ()
 
void RegisterAliTPCExBTwist ()
 
void RegisterAliTPCROCVoltError3D ()
 
void RegisterAliTPCROCVoltError3DSector ()
 
void RegisterAliTPCCorrectionDrift ()
 
void RegisterAliTPCFCVoltError3DRodFCSideRadiusType ()
 
void RegisterCorrection (Int_t type=0)
 
AliTPCComposedCorrectionMakeComposedCorrectionExB ()
 
AliTPCComposedCorrectionGetCorrectionFromFile ()
 
void TestParExample ()
 
void TestFitSpeed (Int_t nEvals)
 

Variables

TFile * fCorrections =0
 
AliTPCFCVoltError3DrotOFC =0
 
AliTPCFCVoltError3DrodOFC1 =0
 
AliTPCFCVoltError3DrodOFC2 =0
 
AliTPCFCVoltError3DrotIFC =0
 
AliTPCFCVoltError3DrodIFC1 =0
 
AliTPCFCVoltError3DrodIFC2 =0
 
AliTPCFCVoltError3DrodIFCShift =0
 
AliTPCFCVoltError3DrodIFCSin =0
 
AliTPCFCVoltError3DrodOFCSin =0
 
AliTPCFCVoltError3DrodOFCShift =0
 
AliTPCFCVoltError3DrodIFCCos =0
 
AliTPCFCVoltError3DrodOFCCos =0
 
TObjArrayrodFCSideRadiusType =0
 
AliTPCROCVoltError3DrocRotgXA =0
 
AliTPCROCVoltError3DrocRotgYA =0
 
AliTPCROCVoltError3DrocRotgXC =0
 
AliTPCROCVoltError3DrocRotgYC =0
 
AliTPCROCVoltError3DrocDzIROCA =0
 
AliTPCROCVoltError3DrocDzIROCC =0
 
AliTPCROCVoltError3DrocRotIROCA =0
 
AliTPCROCVoltError3DrocRotIROCC =0
 
AliTPCROCVoltError3DrocDzUDA =0
 
AliTPCROCVoltError3DrocDzUDC =0
 
AliTPCROCVoltError3DrocRotUDA =0
 
AliTPCROCVoltError3DrocRotUDC =0
 
AliTPCROCVoltError3DrocShiftIROCA0 =0
 
AliTPCROCVoltError3DrocRotIROCA0 =0
 
AliTPCROCVoltError3DrocShiftOROCA0 =0
 
AliTPCROCVoltError3DrocRotOROCA0 =0
 
AliTPCROCVoltError3DrocShiftIROCC0 =0
 
AliTPCROCVoltError3DrocRotIROCC0 =0
 
AliTPCROCVoltError3DrocShiftOROCC0 =0
 
AliTPCROCVoltError3DrocRotOROCC0 =0
 
AliTPCBoundaryVoltErrorboundaryVoltErrorA [8]
 
AliTPCBoundaryVoltErrorboundaryVoltErrorC [8]
 
AliTPCExBBShapeexbShape = 0
 
AliTPCExBBShapeexbShapeT1X = 0
 
AliTPCExBBShapeexbShapeT2X = 0
 
AliTPCExBTwisttwistX = 0
 
AliTPCExBTwisttwistY = 0
 
AliTPCCalibGlobalMisalignmentalignRot0 =0
 
AliTPCCalibGlobalMisalignmentalignRot1 =0
 
AliTPCCalibGlobalMisalignmentalignRot2 =0
 
AliTPCCalibGlobalMisalignmentalignTrans0 =0
 
AliTPCCalibGlobalMisalignmentalignTrans1 =0
 
AliTPCCalibGlobalMisalignmentalignTrans2 =0
 
AliTPCCalibGlobalMisalignmentalignTrans0D [4] ={0}
 
AliTPCCalibGlobalMisalignmentalignTrans1D [4] ={0}
 
AliTPCCalibGlobalMisalignmentalignTrans2D [4] ={0}
 
AliTPCCalibGlobalMisalignmentalignRot0D [4] ={0}
 
AliTPCCalibGlobalMisalignmentalignRot1D [4] ={0}
 
AliTPCCalibGlobalMisalignmentalignRot2D [4] ={0}
 
AliTPCCorrectionDriftcalibDrift [7] ={0}
 

Detailed Description

Author
maria.nosp@m.n.iv.nosp@m.anov@.nosp@m.cern.nosp@m..ch

Register primitive corrections: base functions for minimization: Id numbers are associated to given primitive corrections. See comments in the function headers. Used only for residuals minimization not in the reconstruction. File with all primitives expected to be in the current directory: filenames: TPCCorrectionPrimitives.root - Alignment, Quadrants, 2D symentrid and rod misalingment TPCCorrectionPrimitivesROC.root - ExB distortion due to the common ROC misalignment TPCCorrectionPrimitivesSector.root - ExB distortion due to the one sector misalingment (sector 0) TPCCorrectionPrimitivesFieldCage.root - ExB distortion due to the Field cage missalignment

RegisterCorrection(); - Reserved id's 0 -999

RegisterAliTPCFCVoltError3D(); - Reserved id's 0 -99 RegisterAliTPCBoundaryVoltError(); - Reserved id's 100-199 RegisterAliTPCCalibGlobalMisalignment(); - Reserved id's 200-499 RegisterAliTPCExBBShape(); - Reserved id's 500-600 RegisterAliTPCExBTwist(); - Reserved id's 600-700 RegisterAliTPCROCVoltError3D() - Reserved id's 700-800 RegisterAliTPCROCVoltError3DSector() - Reserved id's 800-900

.x ~/rootlogon.C
.L $ALICE_ROOT/TPC/CalibMacros/RegisterCorrection.C+

Example use:

.x ~/rootlogon.C
.L $ALICE_ROOT/PWGPP/CalibMacros/CPass0/ConfigCalibTrain.C
ConfigCalibTrain(119037,"local:///cvmfs/alice.gsi.de/alice/data/2010/OCDB/")
.L $ALICE_ROOT/TPC/CalibMacros/RegisterCorrection.C+

See example usage of correction primitive/derivatives in file

Definition in file RegisterCorrection.C.

Function Documentation

AliTPCComposedCorrection* GetCorrectionFromFile ( )

Getthe appropariate correction form the closest file

Definition at line 1471 of file RegisterCorrection.C.

AliTPCComposedCorrection* MakeComposedCorrectionExB ( )

make composed corection for ExB scanning

Definition at line 1354 of file RegisterCorrection.C.

void RegisterAliTPCBoundaryVoltError ( )

Register phi symetric E filed distortions 100-108 - A side 0 Field 110-118 - C side 0 Field 120-128 - A side +0.5 Field 130-138 - C side +0.5 Field 140-148 - A side -0.5 Field 150-158 - C side -0.5 Field

Definition at line 596 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCCalibGlobalMisalignment ( )

Register primitive alignment components. Linear conbination of primitev forulas used for fit The nominal delta 1 mm in shift and 1 mrad in rotation Primitive formulas registeren in AliTPCCoreection::AddvisualCorrection 20 - deltaX 21 - deltaY 22 - deltaZ 23 - rot0 (phi) 24 - rot1 (theta) 25 - rot2

Definition at line 461 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCCorrectionDrift ( )

Drift distortion/correction

Definition at line 744 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCExBShape ( )

Definition at line 698 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCExBTwist ( )

Definition at line 727 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCFCVoltError3D ( )

Load the models from the file Or create it Register functions with following IDs: IMPORTANT: The nominal shift is in mm

rotOFC - 0 rodOFC1 - 1 rodOFC2 - 2 rotIFC - 3 rodIFC1 - 4 rodIFC2 - 5 rodIFCShift - 6 rodIFCSin - 7 rodIFCCos - 8 rodOFCShift - 9 rodOFCSin - 10 rodOFCCos - 11

Definition at line 220 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCFCVoltError3DRodFCSideRadiusType ( )

Load the models from the file Or create it Register functions with following IDs: IMPORTANT: The nominal shift is in mm

naming convention: rodFCSidedRadiusdTyped

Definition at line 386 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCROCVoltError3D ( )

ROC rotation transformation 700 -709 - 0 field 710 -719 - +0.5 field 720 -729 - -0.5 field

Definition at line 779 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterAliTPCROCVoltError3DSector ( )

ROC rotation and shift transformation 800-819 - 0.0 Field 820-839 - +0.5 Field 840-859 - +0.5 Field

Definition at line 1146 of file RegisterCorrection.C.

Referenced by RegisterCorrection().

void RegisterCorrection ( Int_t  type = 0)

check the presence of corrections in file

gROOT->Macro("ConfigCalibTrain.C(119037)");

Definition at line 178 of file RegisterCorrection.C.

Referenced by MakeComposedCorrectionExB().

void TestFitSpeed ( Int_t  nEvals)

test speed of helix fit/ resp. parabolic fir

Definition at line 1529 of file RegisterCorrection.C.

void TestParExample ( )

dz shift example: AliTPCCorrection::AddVisualCorrection(rocDzIROCA,705); => parabolic fit and helix fit agrees - once significant ammount of points used 160 point - agreement ~2%; 80 points - agreement ~5%

Definition at line 1510 of file RegisterCorrection.C.

Variable Documentation

Definition at line 146 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignRot0D[4] ={0}

Definition at line 156 of file RegisterCorrection.C.

Definition at line 147 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignRot1D[4] ={0}

Definition at line 157 of file RegisterCorrection.C.

Definition at line 148 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignRot2D[4] ={0}

Definition at line 158 of file RegisterCorrection.C.

Definition at line 149 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignTrans0D[4] ={0}

Definition at line 153 of file RegisterCorrection.C.

Definition at line 150 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignTrans1D[4] ={0}

Definition at line 154 of file RegisterCorrection.C.

Definition at line 151 of file RegisterCorrection.C.

Referenced by RegisterAlignFunction().

AliTPCCalibGlobalMisalignment* alignTrans2D[4] ={0}

Definition at line 155 of file RegisterCorrection.C.

AliTPCBoundaryVoltError* boundaryVoltErrorA[8]

Definition at line 138 of file RegisterCorrection.C.

AliTPCBoundaryVoltError* boundaryVoltErrorC[8]

Definition at line 139 of file RegisterCorrection.C.

AliTPCCorrectionDrift* calibDrift[7] ={0}

Definition at line 163 of file RegisterCorrection.C.

AliTPCExBBShape* exbShape = 0

Definition at line 140 of file RegisterCorrection.C.

AliTPCExBBShape* exbShapeT1X = 0

Definition at line 141 of file RegisterCorrection.C.

AliTPCExBBShape* exbShapeT2X = 0

Definition at line 142 of file RegisterCorrection.C.

TFile* fCorrections =0
AliTPCROCVoltError3D* rocDzIROCA =0

Definition at line 117 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocDzIROCC =0

Definition at line 118 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocDzUDA =0

Definition at line 121 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocDzUDC =0

Definition at line 122 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotgXA =0

Definition at line 112 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotgXC =0

Definition at line 114 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotgYA =0

Definition at line 113 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotgYC =0

Definition at line 115 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotIROCA =0

Definition at line 119 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotIROCA0 =0

Definition at line 128 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotIROCC =0

Definition at line 120 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotIROCC0 =0

Definition at line 132 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotOROCA0 =0

Definition at line 130 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotOROCC0 =0

Definition at line 134 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotUDA =0

Definition at line 123 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocRotUDC =0

Definition at line 124 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocShiftIROCA0 =0

Definition at line 127 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocShiftIROCC0 =0

Definition at line 131 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocShiftOROCA0 =0

Definition at line 129 of file RegisterCorrection.C.

AliTPCROCVoltError3D* rocShiftOROCC0 =0

Definition at line 133 of file RegisterCorrection.C.

TObjArray* rodFCSideRadiusType =0
AliTPCFCVoltError3D* rodIFC1 =0

Definition at line 97 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodIFC2 =0

Definition at line 98 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodIFCCos =0

Definition at line 104 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodIFCShift =0

Definition at line 100 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodIFCSin =0

Definition at line 101 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodOFC1 =0

Definition at line 94 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodOFC2 =0

Definition at line 95 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodOFCCos =0

Definition at line 105 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodOFCShift =0

Definition at line 103 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rodOFCSin =0

Definition at line 102 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rotIFC =0

Definition at line 96 of file RegisterCorrection.C.

AliTPCFCVoltError3D* rotOFC =0

Definition at line 93 of file RegisterCorrection.C.

AliTPCExBTwist* twistX = 0
AliTPCExBTwist* twistY = 0