]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Don't add mapping to the tree - AliTPCPreprocessorOnline.cxx
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Feb 2008 10:04:14 +0000 (10:04 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 21 Feb 2008 10:04:14 +0000 (10:04 +0000)
Adding possibility to export result for calib Viewer
void MakeTree(const char *fname="QApad.root"); - AliTPCdataQA.cxx

(Marian)

TPC/AliTPCPreprocessorOnline.cxx
TPC/AliTPCdataQA.cxx
TPC/AliTPCdataQA.h

index 9ecff7f8ec06ffee09a40e45f48c08ea3c80fb78..bb18956ceba386336f620e7263df58be9cfd4c68 100644 (file)
@@ -238,7 +238,8 @@ void AliTPCPreprocessorOnline::DumpToFile(const char* fileName){
       listOfCalPads->Add(calPad);
    }
    printf("writing the tree... \n");
-   AliTPCCalibViewer::MakeTree(fileName, listOfCalPads, "$ALICE_ROOT/TPC/Calib/MapCalibrationObjects.root");
+   //   AliTPCCalibViewer::MakeTree(fileName, listOfCalPads, "$ALICE_ROOT/TPC/Calib/MapCalibrationObjects.root");
+   AliTPCCalibViewer::MakeTree(fileName, listOfCalPads, 0);
  
 }
 
index 6b655bfcaa8399384af9af21c423b039d56c2dc7..95b2c43715504cf75cf397a910d6792110a3ef32 100644 (file)
@@ -45,6 +45,7 @@ using namespace std;
 //date
 #include "event.h"
 #include "AliTPCCalPad.h"
+#include "AliTPCPreprocessorOnline.h"
 
 //header file
 #include "AliTPCdataQA.h"
@@ -429,3 +430,21 @@ void AliTPCdataQA::Analyse()
   if (fOverThreshold20) fOverThreshold20->Multiply(normalization);  
   if (fOverThreshold30) fOverThreshold30->Multiply(normalization);  
 }
+
+
+void AliTPCdataQA::MakeTree(const char *fname){
+  //
+  // Export result to the tree -located in the file
+  // This file can be analyzed using AliTPCCalibViewer
+  // 
+  AliTPCdataQA *ped = this;
+  AliTPCPreprocessorOnline preprocesor;
+  if (ped->GetMaxCharge()) preprocesor.AddComponent(ped->GetMaxCharge());  
+  if (ped->GetMeanCharge()) preprocesor.AddComponent(ped->GetMeanCharge());  
+  if (ped->GetOverThreshold0()) preprocesor.AddComponent(ped->GetOverThreshold0());
+  if (ped->GetOverThreshold5()) preprocesor.AddComponent(ped->GetOverThreshold5());
+  if (ped->GetOverThreshold10()) preprocesor.AddComponent(ped->GetOverThreshold10());
+  if (ped->GetOverThreshold20()) preprocesor.AddComponent(ped->GetOverThreshold20());
+  if (ped->GetOverThreshold30()) preprocesor.AddComponent(ped->GetOverThreshold30());
+  preprocesor.DumpToFile(fname);  
+}
index c1906af34344818aed9163e3c54b363cbfaa9e53..4ebd31034b323b3f41a83220263754752423c9bd 100644 (file)
@@ -29,6 +29,8 @@ public:
 
   AliTPCdataQA& operator = (const  AliTPCdataQA &source);
  void  DumpToFile(const Char_t *filename, const Char_t *dir="", const Bool_t append=kFALSE);
+ void MakeTree(const char *fname="QApad.root");
+
   //
   Bool_t ProcessEventFast(AliTPCRawStreamFast *rawStreamFast);
   Bool_t ProcessEventFast(AliRawReader        *rawReader);