Macro to add the syswatch inforamtion to the CalibObjects.root
authormarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Jun 2012 18:00:49 +0000 (18:00 +0000)
committermarian <marian@f7af4fe6-9843-0410-8265-dc069ae4e863>
Mon, 4 Jun 2012 18:00:49 +0000 (18:00 +0000)
PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C [new file with mode: 0644]

diff --git a/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C b/PWGPP/CalibMacros/CPass1/makeSyswatchCPass1.C
new file mode 100644 (file)
index 0000000..05f45cf
--- /dev/null
@@ -0,0 +1,20 @@
+//
+// Make syswatch resource usage tree
+//
+void makeSyswatchCPass1(const char * fname){
+  //
+  //
+  //
+  TFile * fout= new TFile(fname,"update");
+  TTree * treeRec = AliSysInfo::MakeTree("syswatch_rec_Barrel.log");
+  TTree * treeCalib = AliSysInfo::MakeTree("syswatch_calib.log");
+  if (treeRec) {
+    treeRec->SetName("syswatchRec");
+    treeRec->Write("syswatchRec");
+  }
+  if (treeCalib){
+    treeCalib->SetName("syswatchCalib");
+    treeCalib->Write("syswatchCalib");
+  }
+  fout->Close();
+}