]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Adding function to make calibration tree (Marian)
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 May 2008 11:44:01 +0000 (11:44 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 May 2008 11:44:01 +0000 (11:44 +0000)
TPC/macros/RunAliTPCCalibKrTask.C

index b513e963d3f1c9f635498cf41486b63f84353b6d..65148436afd6f3e201581e86ffb81ac6eb62b37d 100644 (file)
@@ -1,3 +1,30 @@
+
+/*
+  gSystem->Load("libANALYSIS");
+  gSystem->Load("libANALYSISalice");
+  gSystem->Load("libTPCcalib");
+  //..
+  //
+  //
+  
+  //Example usage 
+  TFile f("KrHisto.root");
+  AliTPCCalibKr *kr = f.Get("AliTPCCalibKr");
+  
+  kr->ProjectHisto(kr->GetHistoKr(71),"aaa",30,36,30,40)->Draw()
+  //
+  //
+  //
+  MakeTree();
+  //default cuts
+  TCut cutKr("cutKr","entries.fElements<5000&&fitNormChi2.fElements<3&&fitNormChi2.fElements>0.2&&abs(fitRMS.fElements/fitMean.fElements-0.06)<0.025");
+
+AliTPCCalibViewerGUI::ShowGUI("kryptonTree.root")
+
+
+ */
+
+
 void RunAliTPCCalibKrTask(const char* list="KrClusters_250508.txt",Bool_t bProof = kFALSE)
 {
 
@@ -49,3 +76,19 @@ void RunAliTPCCalibKrTask(const char* list="KrClusters_250508.txt",Bool_t bProof
   if(bProof) mgr->StartAnalysis("proof", chain);
   else mgr->StartAnalysis("local", chain);
 }
+
+
+
+void MakeTree(){
+
+  TFile fpad("calibKr.root");
+  AliTPCPreprocessorOnline * preprocesor = new AliTPCPreprocessorOnline;  
+  preprocesor->AddComponent(spectrMean->Clone());
+  preprocesor->AddComponent(spectrRMS->Clone());
+  preprocesor->AddComponent(fitMean->Clone());
+  preprocesor->AddComponent(fitRMS->Clone());
+  preprocesor->AddComponent(fitNormChi2->Clone());
+  preprocesor->AddComponent(entries->Clone());
+  preprocesor->DumpToFile("kryptonTree.root");
+  
+}