New version of the PMD DA avoiding the creation of huge amount of histograms. Now...
[u/mrichter/AliRoot.git] / PMD / PMDda.cxx
index 970880b756b45f11aa18f685c7ea9b1cbaa8ae7d..f1c488c1dc036bccf86dea777d2a8075dd9c0f4b 100644 (file)
@@ -36,6 +36,10 @@ extern "C" {
 #include "TH1F.h"
 #include "TBenchmark.h"
 #include "TTree.h"
+#include "TROOT.h"
+#include "TPluginManager.h"
+
+
 
 /* Main routine
       Arguments: 
@@ -43,8 +47,16 @@ extern "C" {
 */
 int main(int argc, char **argv) {
   
-  AliPMDCalibPedestal calibped;
-  AliPMDCalibGain calibgain;
+    /* magic line from Rene */
+    gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+                                         "*",
+                                         "TStreamerInfo",
+                                         "RIO",
+                                         "TStreamerInfo()");
+
+    
+    AliPMDCalibPedestal calibped;
+    AliPMDCalibGain calibgain;
 
   TTree *ped  = new TTree("ped","PMD Pedestal tree");
   TTree *gain = new TTree("gain","PMD Gain tree");