AliRoot Core  3dc7879 (3dc7879)
CalibLaserVscan.C File Reference
#include <fstream>
#include "TFile.h"
#include "TMatrixD.h"
#include "TVectorD.h"
#include "TChain.h"
#include "TCut.h"
#include "TH1F.h"
#include "TObjArray.h"
#include "TProfile.h"
#include "TCanvas.h"
#include "TGraph.h"
#include "TF1.h"
#include "TTreeStream.h"
#include "TLegend.h"
#include "AliTPCLaserTrack.h"
#include "AliTPCcalibDB.h"
#include "TStatToolkit.h"
Include dependency graph for CalibLaserVscan.C:

Go to the source code of this file.

Functions

TMatrixD matrixP4Corr (7, 2)
 
TMatrixD matrixP2RMSIROC (7, 5)
 
TMatrixD matrixP2RMSOROC (7, 5)
 
TMatrixD matrixMeanBundle (336, 6)
 
TMatrixD matrixRMSBundle (336, 6)
 
TArrayI runlist (10000)
 
Double_t GetValueBundle (Int_t id, Int_t type)
 
Double_t GetP4Corr (Int_t id, Int_t value)
 
Double_t GetDyBundle (Int_t id)
 
Double_t GetRMSBundle (Int_t id, Int_t type)
 
Int_t GetVoltage (Int_t run, Int_t type)
 
void SaveResult ()
 
void ReadResult ()
 
void ReadRunSetup ()
 
void MakeAnalysisBeam ()
 
void MakeMeanBundle ()
 
void MakeGraphsdY ()
 
void MakeGraphsdP2 ()
 
void MakeGraphsP4 ()
 
void MakePlotsP2GG (TCut ucut)
 
void MakePlotsP2Cover (TCut ucut)
 
void MakePlotsP2Skirt (TCut ucut)
 
void MakePlotsdYGG ()
 
void MakePlotsdYCover (TCut ucut)
 
void MakePlotsdYSkirt (TCut ucut)
 
void GetOptimalSetting ()
 
void MakeAliases ()
 
void MakeAliasesBoth ()
 
void MakeFit ()
 

Variables

map< int, TVectorD * > mapRunVoltage
 
map< int, int > mapRunVgg
 
map< int, int > mapRunVskirt
 
map< int, int > mapRunVcover
 
TChain * chain =0
 
TObjArray apic
 
TCut tA ="isOK&&RA.isOK"
 
TCut tC ="isOK&&RC.isOK"
 
TCut cA ="eY.fElements<0.01&&RA.eY.fElements<0.01&&X.fElements>10&&RA.X.fElements>10"
 
TCut cC ="eY.fElements<0.01&&RA.eY.fElements<0.01&&X.fElements>10&&RA.X.fElements>10"
 

Detailed Description

0. Make a calibration

  1. Make a laser scan list e.g in TPC workscape
find `pwd`/*/laserMean.root >laserScan.txt
// 2. Define a reference data
rrunA=84469/; for a in `cat laserScan.txt`; do echo `pwd`/$rrunA/laserMean.root; done >laserScanRefA.txt
rrunC=84469; for a in `cat laserScan.txt`; do echo `pwd`/$rrunC/laserMean.root; done >laserScanRefC.txt
rrun=84469; for a in `cat laserScan.txt`; do echo `pwd`/$rrun/laserMean.root; done >laserScanRef.txt
//
.x ~/rootlogon.C
gSystem->Load("libANALYSIS");
gSystem->Load("libTPCcalib");
gSystem->Load("libSTAT");
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros");
gROOT->LoadMacro("$ALICE_ROOT/TPC/macros/AliXRDPROOFtoolkit.cxx+")
.L $ALICE_ROOT/TPC/CalibMacros/CalibLaserVscan.C+
chain = tool.MakeChainRandom("laserScan.txt","Mean",0,10200);
chain->Lookup();
chainRef = tool.MakeChain("laserScanRef.txt","Mean",0,10200);
chain->AddFriend(chainRef,"R")
chainRefA = tool.MakeChain("laserScanRefA.txt","Mean",0,10200);
chain->AddFriend(chainRefA,"RA")
chainRefC = tool.MakeChain("laserScanRefC.txt","Mean",0,10200);
chain->AddFriend(chainRefC,"RC")
//
// MakeMeanBundle();
// SaveResult();
//
TFile fbundle("scanDeltaBeam.root");
chain->Draw("mphi:GetValueBundle(id,1)","isOK&&GetValueBundle(id,0)>3&&LTr.fSide==0","")

Definition in file CalibLaserVscan.C.

Function Documentation

Double_t GetDyBundle ( Int_t  id)

Definition at line 115 of file CalibLaserVscan.C.

void GetOptimalSetting ( )

Definition at line 708 of file CalibLaserVscan.C.

Double_t GetP4Corr ( Int_t  id,
Int_t  value 
)

Definition at line 109 of file CalibLaserVscan.C.

Double_t GetRMSBundle ( Int_t  id,
Int_t  type 
)

Definition at line 124 of file CalibLaserVscan.C.

Double_t GetValueBundle ( Int_t  id,
Int_t  type 
)

Definition at line 103 of file CalibLaserVscan.C.

Int_t GetVoltage ( Int_t  run,
Int_t  type 
)

Get the voltage run# -0 ggA 1- ggC 2- coA 3-coC 4-skA 5-skC

Definition at line 129 of file CalibLaserVscan.C.

Referenced by GetOptimalSetting(), and MakeAnalysisBeam().

void MakeAliases ( )

use table

Definition at line 762 of file CalibLaserVscan.C.

void MakeAliasesBoth ( )

cuts - slect good tracks

Definition at line 801 of file CalibLaserVscan.C.

void MakeAnalysisBeam ( )

Definition at line 200 of file CalibLaserVscan.C.

void MakeFit ( )

Definition at line 855 of file CalibLaserVscan.C.

void MakeGraphsdP2 ( )

Make delta Y pictures from voltage scan

Definition at line 412 of file CalibLaserVscan.C.

void MakeGraphsdY ( )

Make delta Y pictures from voltage scan

Definition at line 379 of file CalibLaserVscan.C.

void MakeGraphsP4 ( )

Make delta Y pictures from voltage scan

Definition at line 448 of file CalibLaserVscan.C.

void MakeMeanBundle ( )

Definition at line 285 of file CalibLaserVscan.C.

void MakePlotsdYCover ( TCut  ucut)

Definition at line 640 of file CalibLaserVscan.C.

void MakePlotsdYGG ( )

Definition at line 606 of file CalibLaserVscan.C.

void MakePlotsdYSkirt ( TCut  ucut)

Definition at line 673 of file CalibLaserVscan.C.

void MakePlotsP2Cover ( TCut  ucut)

Definition at line 525 of file CalibLaserVscan.C.

void MakePlotsP2GG ( TCut  ucut)

Definition at line 482 of file CalibLaserVscan.C.

void MakePlotsP2Skirt ( TCut  ucut)

Definition at line 564 of file CalibLaserVscan.C.

TMatrixD matrixMeanBundle ( 336  ,
 
)
TMatrixD matrixP2RMSIROC ( ,
 
)
TMatrixD matrixP2RMSOROC ( ,
 
)
TMatrixD matrixP4Corr ( ,
 
)
TMatrixD matrixRMSBundle ( 336  ,
 
)
void ReadResult ( )

Definition at line 149 of file CalibLaserVscan.C.

void ReadRunSetup ( )

Definition at line 160 of file CalibLaserVscan.C.

void SaveResult ( )

Definition at line 140 of file CalibLaserVscan.C.

Variable Documentation

TObjArray apic

Definition at line 92 of file CalibLaserVscan.C.

Referenced by MakeGraphsdP2(), MakeGraphsdY(), and MakeGraphsP4().

TCut cA ="eY.fElements<0.01&&RA.eY.fElements<0.01&&X.fElements>10&&RA.X.fElements>10"

Definition at line 97 of file CalibLaserVscan.C.

TCut cC ="eY.fElements<0.01&&RA.eY.fElements<0.01&&X.fElements>10&&RA.X.fElements>10"

Definition at line 98 of file CalibLaserVscan.C.

Referenced by AliMUONLocalTriggerBoard::GetI(), and MakePlotDeltaZ().

map<int,int> mapRunVcover

Definition at line 88 of file CalibLaserVscan.C.

Referenced by ReadRunSetup().

map<int,int> mapRunVgg

Definition at line 86 of file CalibLaserVscan.C.

Referenced by ReadRunSetup().

map<int,TVectorD*> mapRunVoltage

Definition at line 84 of file CalibLaserVscan.C.

Referenced by GetVoltage(), and ReadRunSetup().

map<int,int> mapRunVskirt

Definition at line 87 of file CalibLaserVscan.C.

Referenced by ReadRunSetup().

TCut tA ="isOK&&RA.isOK"

Definition at line 95 of file CalibLaserVscan.C.

TCut tC ="isOK&&RC.isOK"

Definition at line 96 of file CalibLaserVscan.C.

Referenced by AliTrackFitterKalman::GetPCA(), and AliTrackPoint::GetPCA().