AliRoot Core  edcc906 (edcc906)
RunAliTPCCalibKrTask.C File Reference

Go to the source code of this file.

Functions

void RunAliTPCCalibKrTask (Bool_t bProof=kFALSE)
 
void MakeTree ()
 

Variables

TChain * chain = 0
 

Detailed Description

Example usage:

0. Load neccessary libraries

gSystem->Load("libANALYSIS");
gSystem->Load("libANALYSISalice");
gSystem->Load("libTPCcalib");
gSystem->Load("libXrdClient");
gSystem->Load("libNetx");
TGrid::Connect("alien://",0,0,"t");
gSystem->Load("$ROOTSYS/lib/libXrdClient");
  1. Make list of the files
.L $ALICE_ROOT/TPC/macros/testTPC/AlienToolkit.cxx+
gSystem->Load("libXrdClient");
gSystem->Load("libNetx");
AlienToolkit toolkit;
char *path = "/alice/cern.ch/user/a/amatyja/alice/data/"
toolkit.MakeCollection(path,"32129*Krypton.root");
toolkit.MakeCollection(path,"32231*Krypton.root");
toolkit.MakeCollection(path,"32284*Krypton.root");
toolkit.PrintPFN(); > list.txt
  1. Initialization of proof
TProofMgr * proofmgr = TProof::Mgr("lxgrid5.gsi.de");
TProof * proof = proofmgr->CreateSession();
proof->SetParameter("PROOF_MaxSlavesPerNode", (Long_t)1000);
.L /u/miranov/macros/ProofEnableAliRoot.C
ProofEnableAliRoot("/usr/local/grid/AliRoot/HEAD0108");
gProof->Exec("gSystem->Load(\"libANALYSIS\")",kTRUE);
gProof->Exec("gSystem->Load(\"libSTAT\")",kTRUE);
gProof->Exec("gSystem->Load(\"libTPCcalib\")",kTRUE);
gProof->Exec(".x $ALICE_ROOT/TPC/macros/ConfigOCDB.C");
  1. Run analysis on PROOF
// Create chain of input files
gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros");
gROOT->LoadMacro("$ALICE_ROOT/TPC/macros/AliXRDPROOFtoolkit.cxx+");
.L $ALICE_ROOT/TPC/macros/RunAliTPCCalibKrTask.C
// Check the cuts for clusters
TChain * chain = tool.MakeChain("list.txt","Kr",0,1000);
chain->Lookup();
chain->SetProof(kTRUE);
TCut cutR0("cutR0","fADCcluster/fSize<200"); // adjust it according v seetings -
TCut cutR1("cutR1","fADCcluster/fSize>7"); // cosmic tracks and noise removal
TCut cutR2("cutR2","fMax.fAdc/fADCcluster<0.4"); // digital noise removal
TCut cutR3("cutR3","fMax.fAdc/fADCcluster>0.01"); // noise removal
TCut cutR4("cutR4","fMax.fTime>200"); // noise removal
TCut cutR5("cutR5","fMax.fTime<600"); // noise removal
TCut cutS1("cutS1","fSize<200"); // adjust it according v seetings - cosmic tracks
TCut cutAll = cutR0+cutR1+cutR2+cutR3+cutR4+cutR5+cutS1;
// Example usage
TFile f("KrHisto.root");
AliTPCCalibKr *kr = f.Get("AliTPCCalibKr");
kr->ProjectHisto(kr->GetHistoKr(71),"aaa",30,36,30,40)->Draw()
//default cuts
TCut cutKr("cutKr","entries.fElements<5000&&fitNormChi2.fElements<3&&fitNormChi2.fElements>0.2&&abs(fitRMS.fElements/fitMean.fElements-0.06)<0.025");
TTree * tree = viewer->GetViewer()->GetTree();
tree->SetAlias("cutAll","abs(fitNormChi2.fElements-2.)<1.8&&entries.fElements/entries_Median.fElements<4&&entries.fElements/entries_Median.fElements>0.4&&fitRMS.fElements/fitMean.fElements<0.09&&fitRMS.fElements/fitMean.fElements>0.02")

Definition in file RunAliTPCCalibKrTask.C.

Function Documentation

void MakeTree ( )

Definition at line 137 of file RunAliTPCCalibKrTask.C.

void RunAliTPCCalibKrTask ( Bool_t  bProof = kFALSE)

Definition at line 89 of file RunAliTPCCalibKrTask.C.

Variable Documentation

TChain* chain = 0

Definition at line 87 of file RunAliTPCCalibKrTask.C.

Referenced by RunAliTPCCalibKrTask().