Fix in order to avoid streamer problems in case of invalid ROOTSTYS. The famous magic...
[u/mrichter/AliRoot.git] / TPC / TPCPEDESTALda.cxx
index 948b4ad9ec3c5d7bfc047c78236b665038aef073..d77a374e026dd5373399cfd03905411ec9262398 100644 (file)
@@ -29,6 +29,8 @@ extern "C" {
 //
 #include <TFile.h>
 #include <TArrayF.h>
+#include "TROOT.h"
+#include "TPluginManager.h"
 
 //
 //AliRoot includes
@@ -57,6 +59,12 @@ int main(int argc, char **argv) {
   //
   // Main for TPC pedestal detector algorithm
   //
+
+  gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+                                       "*",
+                                       "TStreamerInfo",
+                                       "RIO",
+                                       "TStreamerInfo()"); 
   Bool_t timeAnalysis = kTRUE;
 
   int i,status;