AliRoot Core  v5-06-30 (35d6c57)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalibPID.C File Reference
#include "TMath.h"
#include "TString.h"
#include "TFile.h"
#include "TTree.h"
#include "TObjArray.h"
#include "TF1.h"
#include "TH1.h"
#include "TH2.h"
#include "TH3F.h"
#include "THnSparse.h"
#include "TProfile.h"
#include "TCut.h"
#include "TMatrixD.h"
#include "TVectorD.h"
#include "AliCDBManager.h"
#include "AliCDBMetaData.h"
#include "AliCDBId.h"
#include "AliCDBRunRange.h"
#include "AliCDBStorage.h"
#include "AliTPCClusterParam.h"
#include "AliTPCcalibPID.h"
#include "AliTPCcalibDB.h"
#include "TStatToolkit.h"
Include dependency graph for CalibPID.C:

Go to the source code of this file.

Functions

void Init (char *name="calibPID06")
 
void StoreParam (char *localStorage="local:///lustre/alice/akalweit/OCDB")
 
void SetRange (Int_t index, Float_t min, Float_t max)
 
void SetType (Int_t type)
 
void ReadTrees ()
 
void Fit (Bool_t updateParam=kFALSE)
 
void fitQdep ()
 
void LookupHisto (Int_t minTracks=200, Float_t minp=20, Float_t maxp=10000)
 
void FitFit (Bool_t updateParam=kFALSE)
 

Variables

AliTPCClusterParamparamCl =0
 
AliTPCcalibPID * pid =0
 
TObjArray fitArr
 
TTree * treeDump =0
 
TTree * treeQtot
 
TTree * treeQmax
 
TTree * treeRatioQmax
 
TTree * treeRatioQtot
 
Int_t kmicolors [10] ={1,2,3,4,6,7,8,9,10,11}
 
Int_t kmimarkers [10] ={21,22,23,24,25,26,27,28,29,30}
 

Detailed Description

  1. dump information to the tree
gSystem->Load("libANALYSIS");
gSystem->Load("libTPCcalib");
gSystem->Load("libSTAT");
.L $ALICE_ROOT/TPC/CalibMacros/CalibPID.C+
.x ../ConfigOCDB.C
Init("calibPID06");
LookupHisto() // change SetRange in LookupHisto if needed !, check with pid->GetHistQtot()->Projection(0,1)->Draw("colz")

exit aliroot

  1. update the OCDB
gSystem->Load("libANALYSIS");
gSystem->Load("libTPCcalib");
gSystem->Load("libSTAT");
.L $ALICE_ROOT/TPC/CalibMacros/CalibPID.C+
.x ../ConfigOCDB.C
TFile fff("lookupdEdx.root")
TTree * treeDump =0;
treeDump = (TTree*)fff.Get("dumpdEdx");
TCut cutAll = "meangTot>0.0&&sumMax>150&&sumTot>150&&rmsgMax/rmsMax<1.5&&abs(p3)<1&&isOK";
treeDump->Draw("meanTotP:ipad","meangTot>0&&isOK"+cutAll,"*")
FitFit(kTRUE)
StoreParam("local:///lustre/alice/akalweit/OCDBforMC") // specify corresponding location before !!

Definition in file CalibPID.C.

Function Documentation

void Fit ( Bool_t  updateParam = kFALSE)

align pads

Definition at line 173 of file CalibPID.C.

void FitFit ( Bool_t  updateParam = kFALSE)

Definition at line 475 of file CalibPID.C.

void fitQdep ( )

Definition at line 279 of file CalibPID.C.

void Init ( char *  name = "calibPID06")

Definition at line 83 of file CalibPID.C.

void LookupHisto ( Int_t  minTracks = 200,
Float_t  minp = 20,
Float_t  maxp = 10000 
)

Definition at line 301 of file CalibPID.C.

void ReadTrees ( )

Definition at line 160 of file CalibPID.C.

void SetRange ( Int_t  index,
Float_t  min,
Float_t  max 
)

Definition at line 132 of file CalibPID.C.

Referenced by fitQdep().

void SetType ( Int_t  type)

Definition at line 144 of file CalibPID.C.

Referenced by fitQdep().

void StoreParam ( )

Definition at line 115 of file CalibPID.C.

Variable Documentation

TObjArray fitArr

Definition at line 70 of file CalibPID.C.

Int_t kmicolors[10] ={1,2,3,4,6,7,8,9,10,11}

Definition at line 76 of file CalibPID.C.

Referenced by DrawResoldEdx().

Int_t kmimarkers[10] ={21,22,23,24,25,26,27,28,29,30}

Definition at line 77 of file CalibPID.C.

Referenced by DrawResoldEdx().

AliTPCClusterParam* paramCl =0

Definition at line 68 of file CalibPID.C.

Referenced by SetupCustom(), and TestChainCosmicDedx().

TTree* treeDump =0

Definition at line 71 of file CalibPID.C.

Referenced by FitFit().

TTree* treeQmax

Definition at line 73 of file CalibPID.C.

Referenced by Fit(), and ReadTrees().

TTree* treeQtot

Definition at line 72 of file CalibPID.C.

Referenced by Fit(), and ReadTrees().

TTree* treeRatioQmax

Definition at line 74 of file CalibPID.C.

Referenced by Fit(), and ReadTrees().

TTree* treeRatioQtot

Definition at line 75 of file CalibPID.C.

Referenced by Fit(), and ReadTrees().