AliRoot Core  d69033e (d69033e)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AnalyzeLaserCE.C File Reference
#include <fstream>
#include "TString.h"
#include "TSystem.h"
#include "TTree.h"
#include "TEntryList.h"
#include "TCut.h"
#include "TStatToolkit.h"
#include "AliTPCCalibViewer.h"
#include "AliTPCCalibViewerGUI.h"
#include "AliTPCPreprocessorOnline.h"
#include "AliTPCCalibCE.h"
#include "AliTPCCalibPulser.h"
#include "TStopwatch.h"
Include dependency graph for AnalyzeLaserCE.C:

Go to the source code of this file.

Functions

TString qaside ("CE_Q")
 
TString taside ("CE_T")
 
TString raside ("CE_RMS")
 
TString qcside ("CE_Q")
 
TString tcside ("CE_T")
 
TString rcside ("CE_RMS")
 
TString tcor ("-pulCorr")
 
void LoadViewer ()
 
void RebuildData ()
 
void MakeFit ()
 
void MakeFitPulser ()
 
void MakeAliases0 ()
 
void MakeAliases1 ()
 
void LoadData ()
 
void StoreData ()
 
void StoreTree ()
 
void AnalyzeLaser ()
 
void MakeRes ()
 
void RebuildCE (char *finname, char *pulname)
 
void AnalyzeLaserCE ()
 
void AddFiles (char *list)
 

Variables

char * inname = "treeCE.root"
 
char * fname = "treefitCE.root"
 
char * oname = "fitCE.root"
 
AliTPCCalPadcalPadIn = 0
 
AliTPCCalPadcalPadF1 = 0
 
AliTPCCalPadcalPadF2 = 0
 
AliTPCCalPadcalPadQIn = 0
 
AliTPCCalPadcalPadQF1 = 0
 
AliTPCCalPadcalPadQF2 = 0
 
AliTPCCalPadcalPadCor = 0
 
AliTPCCalPadcalPadOut = 0
 
const Float_t tThr =0.3
 
const Float_t qThr0 =0.5
 
const Float_t qThr1 =2
 
AliTPCCalPadcalPad0 = 0
 
AliTPCCalPadcalPad1 = 0
 
AliTPCCalPadcalPad2 = 0
 
AliTPCCalPadcalPadInOut = 0
 
AliTPCCalPadcalPadLX = 0
 
AliTPCCalPadcalPadTL = 0
 
AliTPCCalPadcalPadQ = 0
 
AliTPCCalPadcalPadGXY = 0
 
AliTPCCalPadcalPadOff = 0
 
AliTPCCalPadcalPadRes = 0
 
TObjString strFit0 =""
 
TObjString strFit1 =""
 
TObjString strFit2 =""
 
TVectorD vecFit0
 
TVectorD vecFit1
 
TVectorD vecFit2
 
TEntryList * elist =0
 
AliTPCCalibViewerGUIviewer =0
 
AliTPCCalibViewermakePad =0
 
TTree * tree =0
 

Detailed Description

Macro to perform fits of the Laser Central electrode data Several fit methods implemented

0. RebuildCE("ce.root","pul.root"); - rebuild data from the scratch

  • the data will be storered in file inname

RebuildData() - transform arbitrary layout of the Input data to the internal format StoreData(); - The data tree expected in file inname (see variable bellow) StoreTree(); - Modify inname and xxside and tcor in order to transform data

  1. MakeFit(); - Make a fit of the data - already in internal format StoreData(); - Store StoreTree();
  2. MakeRes(); - Make the final calibration + combination of different components
  3. LoadViewer(); - Browse the fit parameters
.x ~/rootlogon.C
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC -I$ALICE_ROOT/STAT");
gSystem->Load("libSTAT");
.L $ALICE_ROOT/TPC/CalibMacros/AnalyzeLaserCE.C+
// setup aliases
qaside="CE_Q";
taside="CE_T";
raside="CE_RMS";
qcside="CE_Q";
tcside="CE_T";
rcside="CE_RMS";

Calibration viewer variables:

Result - resulting correction out - outlyers not used for fit tcor - offset specified by user before fitting timeF1 - sector local fit - plane timeF2 - sector local fit - parabola timeIn - input times qIn - input charge out - outlyers not used for fit tcor - offset specified by user before fitting timeF1 - sector time local fit - plane timeF2 - sector time local fit - parabola qF1 - sector q local fit - plane qF2 - sector q local fit - parabola

fitted values ffit0 - base fit ffit1 - adding common shifts - alpha dependendent ffit2 - adding opposite shifts - alpha dependent

fGXY - global fit parameter - XY fInOut - global fit parameter - inner-outer sector matching fLX - global LX dependence

Gloabl fit o consist of -fGXY~-fLX~-fTL~-fOff~:ffit0~

Control variable - check results

ffit2~-(timeIn~):lx~ - fit value minus input time

result cosntruction: (timeF2~-ffit2~+fTL~+fInOut~):Result~

timeF2~-Result~:ffit2~-fTL~-fInOut~

Definition in file AnalyzeLaserCE.C.

Function Documentation

void AddFiles ( char *  list)

prepare viewer for data sets

Definition at line 693 of file AnalyzeLaserCE.C.

void AnalyzeLaser ( )

Definition at line 177 of file AnalyzeLaserCE.C.

void AnalyzeLaserCE ( )

Definition at line 678 of file AnalyzeLaserCE.C.

void LoadData ( )

Get Data

Definition at line 473 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

void LoadViewer ( )

Load calib Viewer

Definition at line 381 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaser().

void MakeAliases0 ( )

Define variables and selection of outliers - for user defined tree

Definition at line 560 of file AnalyzeLaserCE.C.

Referenced by RebuildData().

void MakeAliases1 ( )

Define variables and selection of outliers -for default usage

Definition at line 588 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaser(), LoadViewer(), and MakeFit().

void MakeFit ( )

Definition at line 210 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

void MakeFitPulser ( )

Definition at line 184 of file AnalyzeLaserCE.C.

Referenced by RebuildData().

void MakeRes ( )

make final calibration

Definition at line 612 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

TString qaside ( "CE_Q"  )

Referenced by MakeAliases0().

TString qcside ( "CE_Q"  )

Referenced by MakeAliases0().

TString raside ( "CE_RMS"  )

Referenced by MakeAliases0().

TString rcside ( "CE_RMS"  )

Referenced by MakeAliases0().

void RebuildCE ( char *  finname,
char *  pulname 
)

Transformation from the CE to the visualization-analisys output

finname = CE_Vscan_Run_61684-50_170.root;

Definition at line 642 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

void RebuildData ( )

transform the input data to the fit format

Definition at line 396 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

void StoreData ( )

Store data

Definition at line 500 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

void StoreTree ( )

Definition at line 529 of file AnalyzeLaserCE.C.

Referenced by AnalyzeLaserCE().

TString taside ( "CE_T"  )

Referenced by MakeAliases0().

TString tcor ( "-pulCorr"  )

Referenced by MakeAliases0().

TString tcside ( "CE_T"  )

Referenced by MakeAliases0().

Variable Documentation

AliTPCCalPad* calPad0 = 0

Definition at line 136 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPad1 = 0

Definition at line 137 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPad2 = 0

Definition at line 138 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadCor = 0

Definition at line 124 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadF1 = 0

Definition at line 118 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadF2 = 0

Definition at line 119 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadGXY = 0

Definition at line 144 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadIn = 0

Definition at line 117 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadInOut = 0

Definition at line 140 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadLX = 0

Definition at line 141 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadOff = 0

Definition at line 145 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadOut = 0

Definition at line 125 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadQ = 0

Definition at line 143 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadQF1 = 0

Definition at line 121 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadQF2 = 0

Definition at line 122 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadQIn = 0

Definition at line 120 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadRes = 0

Definition at line 146 of file AnalyzeLaserCE.C.

AliTPCCalPad* calPadTL = 0

Definition at line 142 of file AnalyzeLaserCE.C.

TEntryList* elist =0

Definition at line 154 of file AnalyzeLaserCE.C.

Referenced by AddFiles(), InitCutsAlign(), MakeAliasesBoth(), and MakeFit().

char* inname = "treeCE.root"

Definition at line 93 of file AnalyzeLaserCE.C.

Referenced by RebuildCE(), and RebuildData().

AliTPCCalibViewer* makePad =0

Definition at line 159 of file AnalyzeLaserCE.C.

Referenced by LoadViewer().

char* oname = "fitCE.root"

Definition at line 111 of file AnalyzeLaserCE.C.

Referenced by LoadData(), and StoreData().

const Float_t qThr0 =0.5

Definition at line 130 of file AnalyzeLaserCE.C.

Referenced by RebuildData().

const Float_t qThr1 =2

Definition at line 131 of file AnalyzeLaserCE.C.

Referenced by RebuildData().

TObjString strFit0 =""

Definition at line 148 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

TObjString strFit1 =""

Definition at line 149 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

TObjString strFit2 =""

Definition at line 150 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

TTree* tree =0

Definition at line 160 of file AnalyzeLaserCE.C.

Referenced by AddChains(), AddFiles(), AliTPCCalPad::AddFriend(), AliTPCCalibViewer::AddReferenceTree(), AliTPCCalibViewer::AliTPCCalibViewer(), AliTPCSensorTempArray::AliTPCSensorTempArray(), AnalyzeESDtracks(), AliMUONCheck::CheckESD(), AliXRDPROOFtoolkit::CheckTreeInFile(), AliMUONChamberCalibrationTask::ConnectInputData(), AliSegmentArray::ConnectTree(), AliTPCCorrection::CreateDistortionTree(), drawd(), DrawDistortionMaps(), drawmerged(), DrawOccupancy(), FillVar(), Fit1(), Fit2(), Fit2I(), AliTPCEfield::FitField(), FitI1(), for(), GenerLandau(), AliMUONTreeManager::GetClassName(), GetESDTree(), GetTree(), Init(), AliXRDPROOFtoolkit::JoinTreesIndex(), LoadViewer(), MakeAliases0(), MakeAliases1(), MakeChain(), AliTPCGenDBTemp::MakeConfig(), AliMUONPedestal::MakeControlHistos(), MakeFit(), MakeFitPulser(), MakeFits(), MakeFitTree(), MakeLaserTree(), MakePicDy(), MakePickDy(), MakeStat(), AliSegmentArray::MakeTree(), AliTPCCalibViewer::MakeTree(), AliXRDPROOFtoolkit::MakeTreeFromList(), MergeMuonLight(), MUONefficiency(), MUONmassPlot(), MUONTriggerEfficiency(), MUONTriggerEfficiencyPt(), AliTPCGenDBTemp::ReadList(), AliTPCSensorTemp::ReadList(), AliTPCGenDBTemp::ReadListTree(), ReadRecoCocktail(), AliTPCSensorTempArray::ReadSensors(), RebuildData(), AliTPCCalibQAChecker::SetTreeChecker(), Store(), test1(), test3(), test5(), testMerge(), testRead(), testSparse(), AliMUONDataInterface::TriggerStore(), and UnitTestAliTPCCalPadTree().

const Float_t tThr =0.3

Definition at line 129 of file AnalyzeLaserCE.C.

Referenced by RebuildData().

TVectorD vecFit0

Definition at line 151 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

TVectorD vecFit1

Definition at line 152 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

TVectorD vecFit2

Definition at line 153 of file AnalyzeLaserCE.C.

Referenced by MakeFit().

Definition at line 158 of file AnalyzeLaserCE.C.

Referenced by AliTPCCalibViewerGUI::Initialize().