]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - FMD/Simulate.C
Fix to avoid memory resident tree in the vertexer (Marco)
[u/mrichter/AliRoot.git] / FMD / Simulate.C
index bb66d05fc852ebd9d2c07a394b352d353f1bb8fc..f9cab917ae66512d6cc21c14f353856fbecd2f36 100644 (file)
  * about the suitability of this software for any purpose. It is          *
  * provided "as is" without express or implied warranty.                  *
  **************************************************************************/
-
 /* $Id$ */
-
-// Script to do test the FMD digitization class. 
+/** @file    Simulate.C
+    @author  Christian Holm Christensen <cholm@nbi.dk>
+    @date    Mon Mar 27 14:20:24 2006
+    @brief   Script to do simulation 
+*/
+/** Script to do test the FMD digitization class.  
+ */
 void
-Simulate()
+Simulate(Int_t n=10)
 {
- AliSimulation sim;
- sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C");
- // sim.SetMakeSDigits("FMD");
- sim.SetMakeDigits("FMD");
- sim.SetWriteRawData("FMD");
- // sim.SetMakeDigitsFromHits("FMD");
- TStopwatch w;
- w.Start();
- sim.Run(1); 
- w.Stop();
- w.Print();
+  AliSimulation sim;
+  // AliLog::SetModuleDebugLevel("FMD", 1);
+  sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C");
+  // sim.SetMakeSDigits("FMD");
+  sim.SetMakeDigits("FMD"); 
+  sim.SetWriteRawData("FMD"); 
+  // sim.SetMakeDigitsFromHits("FMD"); 
+  TStopwatch w; 
+  w.Start(); 
+  sim.Run(n);  
+  w.Stop(); 
+  w.Print(); 
 }
 
 //