]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TOF/TOFnoiseda.cxx
New mapping in agreement with the new instructions from Paolo and Giacinto
[u/mrichter/AliRoot.git] / TOF / TOFnoiseda.cxx
index de3efb9f741438ab57bfa00f97f9f440ec31bafb..68881d545b09ba69852840d97e787eda307a092b 100644 (file)
@@ -4,7 +4,7 @@ TOF DA for online calibration from pulser data
 
 Contact: Chiara.Zampolli@bo.infn.it
 Link: www.bo.infn.it/~zampolli
-Run Type: CALIBRATION, PULSER - to be properly defined
+Run Type: NOISE
 DA Type: LDC
 Number of events needed: 10000
 Input Files: TOF<nrun>.raw, where <nrun> is the run number 
@@ -16,10 +16,7 @@ Trigger types used: PHYSICS_EVENT (for the time being)
 // DATE
 #include "event.h"
 #include "monitor.h"
-extern "C" {
-#include <daqDA.h>
-}
-//#include "daqDA.h"
+#include "daqDA.h"
 
 #include <stdio.h>
 #include <stdlib.h>
@@ -41,12 +38,21 @@ extern "C" {
 #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();
@@ -275,7 +281,7 @@ int main(int argc, char **argv) {
   status =0;
 
   /* store the result file on FES */
-  status=daqDA_FES_storeFile(filename,filename);
+  status=daqDA_FES_storeFile(filename,"NOISE");
   if (status) {
     status = -2;
   }