3 gSystem->Load("libANALYSIS");
4 gSystem->Load("libANALYSISalice");
5 gSystem->Load("libTPCcalib");
11 TFile f("KrHisto.root");
12 AliTPCCalibKr *kr = f.Get("AliTPCCalibKr");
14 kr->ProjectHisto(kr->GetHistoKr(71),"aaa",30,36,30,40)->Draw()
20 TCut cutKr("cutKr","entries.fElements<5000&&fitNormChi2.fElements<3&&fitNormChi2.fElements>0.2&&abs(fitRMS.fElements/fitMean.fElements-0.06)<0.025");
22 TObjArray * array = AliTPCCalibViewerGUI::ShowGUI("kryptonTree.root");
23 AliTPCCalibViewerGUI * viewer = (AliTPCCalibViewerGUI*)array->At(0);
24 TTree * tree = viewer->GetViewer()->GetTree();
26 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")
33 void RunAliTPCCalibKrTask(const char* list="KrClusters_250508.txt",Bool_t bProof = kFALSE)
37 TProof *proof = TProof::Open("jacek@gsiaf.gsi.de");
38 gProof->GetManager()->SetROOTVersion("5.18/00a");
40 // Proof Enable Libraries
41 gROOT->LoadMacro("ProofEnableAliRoot.C");
42 ProofEnableAliRoot("/d/alice11/jacek/alice/x86_64/AliRoot/HEAD");
46 // Create chain of input files
48 gSystem->AddIncludePath("-I$ALICE_ROOT/TPC/macros");
49 gROOT->LoadMacro("$ALICE_ROOT/TPC/macros/AliXRDPROOFtoolkit.cxx++");
50 AliXRDPROOFtoolkit tool;
52 // -- Make chain of files
53 TChain * chain = tool.MakeChain(list,"Kr","",2,0);
54 chain->SetBranchStatus("Cl.fCluster",kFALSE);
56 // Create the analysis manager
58 AliAnalysisManager *mgr = new AliAnalysisManager("testAnalysis");
60 // Calibration component
61 AliTPCCalibKr *calibObj = new AliTPCCalibKr;
62 //calibObj->SetASide(kFALSE);
65 AliTPCCalibKrTask *task = new AliTPCCalibKrTask;
66 task->SetInputChain(chain);
67 task->SetTPCCalibKr(calibObj);
71 cInput = mgr->CreateContainer("cInput", TChain::Class(), AliAnalysisManager::kInputContainer);
72 mgr->ConnectInput(task, 0, cInput);
75 cOutput = mgr->CreateContainer("cOutput", TList::Class(), AliAnalysisManager::kOutputContainer,"outHistFile.root");
76 mgr->ConnectOutput(task, 0, cOutput);
81 if(bProof) mgr->StartAnalysis("proof", chain);
82 else mgr->StartAnalysis("local", chain);
89 TFile fpad("calibKr.root");
90 AliTPCPreprocessorOnline * preprocesor = new AliTPCPreprocessorOnline;
91 preprocesor->AddComponent(spectrMean->Clone());
92 preprocesor->AddComponent(spectrRMS->Clone());
93 preprocesor->AddComponent(fitMean->Clone());
94 preprocesor->AddComponent(fitRMS->Clone());
95 preprocesor->AddComponent(fitNormChi2->Clone());
96 preprocesor->AddComponent(entries->Clone());
97 preprocesor->DumpToFile("kryptonTree.root");