AliRoot Core  ee782a0 (ee782a0)
FitAlignCombined.C File Reference
#include "TH1D.h"
#include "TH2F.h"
#include "THnSparse.h"
#include "TVectorD.h"
#include "TTreeStream.h"
#include "TFile.h"
#include "TChain.h"
#include "AliTPCcalibAlign.h"
#include "AliTPCROC.h"
#include "AliTPCCalROC.h"
#include "AliTPCCalPad.h"
#include "TF1.h"
#include "TH2.h"
#include "TH3.h"
#include "TROOT.h"
#include "TProfile.h"
#include "AliTPCPreprocessorOnline.h"
#include "AliTPCcalibDB.h"
#include "AliTPCkalmanAlign.h"
#include "TPostScript.h"
#include "TLegend.h"
#include "TCut.h"
#include "TCanvas.h"
#include "TStyle.h"
#include "AliLog.h"
#include "AliTPCExBEffectiveSector.h"
#include "AliTPCComposedCorrection.h"
#include "AliTPCCalibGlobalMisalignment.h"
#include "AliCDBMetaData.h"
#include "AliCDBId.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
#include "AliCDBEntry.h"
#include "TStatToolkit.h"
#include "AliAlignObjParams.h"
#include "AliTPCParam.h"
Include dependency graph for FitAlignCombined.C:

Go to the source code of this file.

Functions

void DrawFitQA ()
 
void RegisterAlignFunction ()
 
AliTPCCalibGlobalMisalignmentMakeAlignFunctionGlobal (TVectorD paramYGlobal)
 
AliTPCCalibGlobalMisalignmentMakeAlignFunctionSector (TVectorD paramYLocal)
 
void LoadTrees ()
 
void FitAlignCombinedCorr ()
 
void FitAlignCombined0 ()
 
void FitAlignCombined ()
 
void UpdateOCDBAlign ()
 
void UpdateOCDBAlign0 ()
 

Variables

AliTPCROCproc = AliTPCROC::Instance()
 
AliTPCCalibGlobalMisalignmentcombAlignOCDBOld =0
 
AliTPCCalibGlobalMisalignmentcombAlignOCDBNew =0
 
AliTPCCalibGlobalMisalignmentcombAlignGlobal =0
 
AliTPCCalibGlobalMisalignmentcombAlignLocal =0
 
TTreeSRedirectorpcstream = 0
 
TChain * chain =0
 
TChain * chainZ =0
 
TTree * tree =0
 
TTree * itsdy =0
 
TTree * itsdyP =0
 
TTree * itsdyM =0
 
TTree * itsdp =0
 
TTree * itsdphiP =0
 
TTree * itsdphiM =0
 
TTree * itsdz =0
 
TTree * itsdt =0
 
TTree * tofdy =0
 
TTree * trddy =0
 
TTree * vdy =0
 
TTree * vdyP =0
 
TTree * vdyM =0
 
TTree * vds =0
 
TTree * vdz =0
 
TTree * vdt =0
 
TCut cutS ="entries>1000&&abs(snp)<0.2&&abs(theta)<1."
 

Detailed Description

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

Macro to create alignment/distortion maps As a input output of AliTPCcalibAlign and AliTPCcalibTime is used. distortion lookup tables are used.

Input file mean.root with distortion tree expected to be in directory: ../mergeField0/mean.root

The ouput file fitAlignCombined.root contains:

  1. Resulting (residual) AliTPCCalibMisalignment
  2. QA fit plots

Functions documented inside:

RegisterAlignFunction(); MakeAlignFunctionGlobal(); MakeAlignFunctionSector();

Example usage:

.x ~/NimStyle.C
gROOT->Macro("~/rootlogon.C");
gSystem->Load("libANALYSIS");
gSystem->Load("libSTAT");
gSystem->Load("libTPCcalib");
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros -I$ALICE_ROOT/TPC/TPC -I$ALICE_ROOT/STAT");
.L $ALICE_ROOT/TPC/CalibMacros/FitAlignCombined.C+
.x ConfigCalibTrain.C(119047)

Definition in file FitAlignCombined.C.

Function Documentation

void DrawFitQA ( )

MakeQA plot 1D

Definition at line 526 of file FitAlignCombined.C.

Referenced by FitAlignCombinedCorr().

void FitAlignCombined ( )

make sector alignment - using Kalman filter method -AliTPCkalmanAlign Combined information is used, mean residuals are minimized:

  1. TPC-TPC sector alignment
  2. TPC-ITS alignment
  3. TPC vertex alignment

Definition at line 835 of file FitAlignCombined.C.

void FitAlignCombined0 ( )

Fit Global X and globalY shift at vertex and at ITS

Definition at line 639 of file FitAlignCombined.C.

void FitAlignCombinedCorr ( )

Fit Global X and globalY shift at vertex and at ITS

Definition at line 382 of file FitAlignCombined.C.

void LoadTrees ( )

make sector alignment - using Kalman filter method -AliTPCkalmanAlign Combined information is used, mean residuals are minimized:

  1. TPC-ITS alignment
  2. TPC vertex alignment

Definition at line 311 of file FitAlignCombined.C.

Referenced by FitAlignCombinedCorr().

AliTPCCalibGlobalMisalignment* MakeAlignFunctionGlobal ( TVectorD  paramYGlobal)

Take a fit parameters and make a combined correction

  1. Take the common part
  2. Make combined AliTPCCalibGlobalMisalignment - register it
  3. Compare the aliases with fit values - IT is OK

Definition at line 171 of file FitAlignCombined.C.

Referenced by FitAlignCombinedCorr().

AliTPCCalibGlobalMisalignment* MakeAlignFunctionSector ( TVectorD  paramYLocal)

Take a fit parameters and make a combined correction: Only delta local Y and delta phi are fitted - not sensityvity for other parameters Algorithm:

  1. Loop over sectors
  2. Make combined AliTPCCalibGlobalMisalignment - register it
  3. Compare the aliases with fit values - IT is OK

Definition at line 220 of file FitAlignCombined.C.

Referenced by FitAlignCombinedCorr().

void RegisterAlignFunction ( )

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 0 - deltaX 1 - deltaY 2 - deltaZ 3 - rot0 (phi) 4 - rot1 (theta) 5 - rot2

Definition at line 114 of file FitAlignCombined.C.

Referenced by FitAlignCombinedCorr().

void UpdateOCDBAlign ( )

Store resulting OCDB entry 0. Setup OCDB to get necccessary old entries - not done here

  1. Get old OCDB entry
  2. Get delta alignment
  3. Add delta alignment
  4. Store new alignment in

Definition at line 1084 of file FitAlignCombined.C.

void UpdateOCDBAlign0 ( )

Store resulting OCDB entry 0. Setup OCDB to get necccessary old entries - not done here

  1. Get old OCDB entry
  2. Get delta alignment
  3. Add delta alignment
  4. Store new alignment in

Definition at line 1148 of file FitAlignCombined.C.

Variable Documentation

TChain* chain =0

Definition at line 89 of file FitAlignCombined.C.

Referenced by DrawFitQA(), FitAlignCombinedCorr(), and LoadTrees().

TChain* chainZ =0

Definition at line 90 of file FitAlignCombined.C.

Referenced by LoadTrees().

AliTPCCalibGlobalMisalignment* combAlignGlobal =0

Definition at line 83 of file FitAlignCombined.C.

AliTPCCalibGlobalMisalignment* combAlignLocal =0

Definition at line 84 of file FitAlignCombined.C.

AliTPCCalibGlobalMisalignment* combAlignOCDBNew =0

Definition at line 82 of file FitAlignCombined.C.

AliTPCCalibGlobalMisalignment* combAlignOCDBOld =0

Definition at line 81 of file FitAlignCombined.C.

TTree* itsdp =0

Definition at line 95 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* itsdphiM =0

Definition at line 97 of file FitAlignCombined.C.

Referenced by LoadTrees().

TTree* itsdphiP =0

Definition at line 96 of file FitAlignCombined.C.

Referenced by LoadTrees().

TTree* itsdt =0

Definition at line 100 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* itsdy =0

Definition at line 92 of file FitAlignCombined.C.

Referenced by FitAlignCombined(), LoadTrees(), and MakeAlign().

TTree* itsdyM =0

Definition at line 94 of file FitAlignCombined.C.

Referenced by DrawDiff(), and LoadTrees().

TTree* itsdyP =0

Definition at line 93 of file FitAlignCombined.C.

Referenced by DrawDiff(), and LoadTrees().

TTree* itsdz =0

Definition at line 99 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* tofdy =0

Definition at line 101 of file FitAlignCombined.C.

Referenced by LoadTrees().

TTree* trddy =0

Definition at line 102 of file FitAlignCombined.C.

Referenced by LoadTrees().

TTree* tree =0

Definition at line 91 of file FitAlignCombined.C.

Referenced by FitAlignCombined0(), FitAlignCombinedCorr(), and LoadTrees().

TTree* vds =0

Definition at line 107 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* vdt =0

Definition at line 109 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* vdy =0

Definition at line 104 of file FitAlignCombined.C.

Referenced by LoadTrees(), and MakeAlign().

TTree* vdyM =0

Definition at line 106 of file FitAlignCombined.C.

Referenced by DrawDiff(), and LoadTrees().

TTree* vdyP =0

Definition at line 105 of file FitAlignCombined.C.

Referenced by DrawDiff(), and LoadTrees().

TTree* vdz =0

Definition at line 108 of file FitAlignCombined.C.

Referenced by LoadTrees().