A batch file for RICH
authordibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Oct 2003 13:58:56 +0000 (13:58 +0000)
committerdibari <dibari@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 23 Oct 2003 13:58:56 +0000 (13:58 +0000)
RICH/RichBatch.C [new file with mode: 0644]

diff --git a/RICH/RichBatch.C b/RICH/RichBatch.C
new file mode 100644 (file)
index 0000000..1dd25ca
--- /dev/null
@@ -0,0 +1,15 @@
+void RichBatch(const Int_t iNevents,const Bool_t isDebug,const char *sConfigFileName)
+{
+  if(isDebug)
+    gAlice->SetDebug(1);
+
+  Info("my/AliceBatch.C","%i event(s) requested, debug %i",iNevents,isDebug);  
+  TStopwatch sw;TDatime time;  
+
+  gAlice->Run(iNevents,sConfigFileName);
+   
+  cout<<"\nInfo in <my/AliceBatch.C>: Start time: ";time.Print();
+  cout<<"Info in <my/AliceBatch.C>: Stop  time: ";time.Set();  time.Print();
+  cout<<"Info in <my/AliceBatch.C>: Time  used: ";sw.Print();
+  gSystem->Exec("touch ZZZfinishedZZZ");
+}