AliRoot Core  3dc7879 (3dc7879)
CalibTimeGain.C File Reference
#include "TObjArray.h"
#include "TGraphErrors.h"
#include "THnSparse.h"
#include "TCanvas.h"
#include "TFile.h"
#include "AliTPCcalibTimeGain.h"
#include "AliSplineFit.h"
#include "AliCDBMetaData.h"
#include "AliCDBId.h"
#include "AliCDBManager.h"
#include "AliCDBStorage.h"
Include dependency graph for CalibTimeGain.C:

Go to the source code of this file.

Functions

void UpdateOCDBGain (Int_t startRunNumber, Int_t endRunNumber, const char *storagePath)
 
void ReadGainGlobal (Char_t *fileName="CalibObjectsTrain1.root")
 
void MakeQAPlot (Float_t FPtoMIPratio)
 
Bool_t AnalyzeGain (Int_t startRunNumber, Int_t endRunNumber, Int_t minEntriesGaussFit=500, Float_t FPtoMIPratio=1.43)
 
void CalibTimeGain (Char_t *fileName="CalibObjectsTrain1.root", Int_t startRunNumber=0, Int_t endRunNumber=AliCDBRunRange::Infinity(), TString ocdbStorage="")
 
void UpdateOCDBGain (Int_t startRunNumber, Int_t endRunNumber, const Char_t *storagePath)
 

Variables

TGraphErrors * graphMIP = 0
 
TGraphErrors * graphCosmic = 0
 
AliSplineFitfitMIP = 0
 
AliSplineFitfitCosmic = 0
 
TObjArraygainArray = new TObjArray(4)
 
AliTPCcalibTimeGain * gainMIP =0
 
AliTPCcalibTimeGain * gainCosmic =0
 

Detailed Description

Macro to generate and update OCDB entries for a given run: this is a TObjArray which has at 0 the MIP-Spline and at 1 the Fermi-Plateau-Spline ...

Author
maria.nosp@m.n.iv.nosp@m.anov@.nosp@m.cern.nosp@m..ch
A.Kal.nosp@m.weit.nosp@m.@gsi..nosp@m.de

How to use it locally:

// Load libraries
gSystem->Load("libANALYSIS");
gSystem->Load("libSTAT");
gSystem->Load("libTPCcalib");
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC");
.L $ALICE_ROOT/TPC/CalibMacros/CalibTimeGain.C+
//Make calibration
CalibTimeGain("CalibObjectsTrain1.root",0,120000);
TBrowser b;
b.Add(gainArray);

Definition in file CalibTimeGain.C.

Function Documentation

Bool_t AnalyzeGain ( Int_t  startRunNumber,
Int_t  endRunNumber,
Int_t  minEntriesGaussFit = 500,
Float_t  FPtoMIPratio = 1.43 
)

Definition at line 107 of file CalibTimeGain.C.

Referenced by CalibTimeGain().

void CalibTimeGain ( Char_t *  fileName = "CalibObjectsTrain1.root",
Int_t  startRunNumber = 0,
Int_t  endRunNumber = AliCDBRunRange::Infinity(),
TString  ocdbStorage = "" 
)

Update OCDB gain

Definition at line 59 of file CalibTimeGain.C.

Referenced by makeOCDBTPC().

void MakeQAPlot ( Float_t  FPtoMIPratio)

Make QA plot to visualize results

Definition at line 163 of file CalibTimeGain.C.

Referenced by CalibTimeGain().

void ReadGainGlobal ( Char_t *  fileName = "CalibObjectsTrain1.root")

read calibration entries from file

Definition at line 72 of file CalibTimeGain.C.

Referenced by CalibTimeGain().

void UpdateOCDBGain ( Int_t  startRunNumber,
Int_t  endRunNumber,
const char *  storagePath 
)

Referenced by CalibTimeGain().

void UpdateOCDBGain ( Int_t  startRunNumber,
Int_t  endRunNumber,
const Char_t *  storagePath 
)

Update OCDB entry

Definition at line 149 of file CalibTimeGain.C.

Variable Documentation

AliSplineFit* fitCosmic = 0

Definition at line 46 of file CalibTimeGain.C.

AliSplineFit* fitMIP = 0

Definition at line 45 of file CalibTimeGain.C.

TObjArray* gainArray = new TObjArray(4)

Definition at line 47 of file CalibTimeGain.C.

Referenced by AnalyzeGain(), MakeQAPlot(), and UpdateOCDBGain().

AliTPCcalibTimeGain* gainCosmic =0

Definition at line 49 of file CalibTimeGain.C.

Referenced by AnalyzeGain(), MakeQAPlot(), and ReadGainGlobal().

AliTPCcalibTimeGain* gainMIP =0

Definition at line 48 of file CalibTimeGain.C.

Referenced by AnalyzeGain(), MakeQAPlot(), and ReadGainGlobal().

TGraphErrors* graphCosmic = 0

Definition at line 44 of file CalibTimeGain.C.

Referenced by AnalyzeGain(), and MakeQAPlot().

TGraphErrors* graphMIP = 0

Definition at line 43 of file CalibTimeGain.C.

Referenced by AnalyzeGain(), and MakeQAPlot().