Magic patch from Rene to have the DA working with ROOT I/O on DAQ machines
authorzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2007 07:31:01 +0000 (07:31 +0000)
committerzampolli <zampolli@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 7 Dec 2007 07:31:01 +0000 (07:31 +0000)
TOF/TOFda.cxx
TOF/TOFnoiseda.cxx
TOF/TOFpulserda.cxx

index b28a08c..0ba699b 100644 (file)
@@ -38,6 +38,8 @@ Trigger types used: PHYSICS_EVENT
 #include <TObject.h>
 #include <TMath.h>
 #include <TSystem.h>
+#include "TROOT.h"
+#include "TPluginManager.h"
 
 
 /* Main routine
@@ -47,6 +49,13 @@ Trigger types used: PHYSICS_EVENT
 
 int main(int argc, char **argv) {
   
+  /* magic line from Rene */
+  gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+                    "*",
+                    "TStreamerInfo",
+                    "RIO",
+                    "TStreamerInfo()");
+
   AliTOFGeometry * geom = new AliTOFGeometry();
 
   static const Int_t size = AliTOFGeometry::NPadXSector()*AliTOFGeometry::NSectors();
index 863b3e5..5cfce61 100644 (file)
@@ -38,12 +38,21 @@ Trigger types used: PHYSICS_EVENT (for the time being)
 #include <TObject.h>
 #include <TMath.h>
 #include <TSystem.h>
+#include "TROOT.h"
+#include "TPluginManager.h"
 
 /* Main routine
       Arguments: list of DATE raw data files
 */
 int main(int argc, char **argv) {
 
+/* magic line from Rene */
+  gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+                    "*",
+                    "TStreamerInfo",
+                    "RIO",
+                    "TStreamerInfo()");
+
   AliTOFGeometry * geom = new AliTOFGeometry();
 
   static const Int_t size = AliTOFGeometry::NPadXSector()*AliTOFGeometry::NSectors();
index 7652983..6c3ef76 100644 (file)
@@ -38,12 +38,21 @@ Trigger types used: PHYSICS_EVENT, for the time being
 #include <TObject.h>
 #include <TMath.h>
 #include <TSystem.h>
+#include "TROOT.h"
+#include "TPluginManager.h"
 
 /* Main routine
       Arguments: list of DATE raw data files
 */
 int main(int argc, char **argv) {
 
+/* magic line from Rene */
+  gROOT->GetPluginManager()->AddHandler("TVirtualStreamerInfo",
+                    "*",
+                    "TStreamerInfo",
+                    "RIO",
+                    "TStreamerInfo()");
+
   AliTOFGeometry * geom = new AliTOFGeometry();
 
   static const Int_t size = AliTOFGeometry::NPadXSector()*AliTOFGeometry::NSectors();