* 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=1)
{
- 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;
+ sim.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+ sim.SetSpecificStorage("GRP/GRP/Data", Form("local://%s",gSystem->pwd()));
+ sim.SetConfigFile("./Config.C");
+ sim.SetMakeSDigits("FMD");
+ sim.SetMakeDigits("FMD");
+ sim.SetWriteRawData("FMD", "raw.root");
+ sim.SetRunQA(":");
+
+ AliLog::SetModuleDebugLevel("FMD", 2);
+
+ TStopwatch w;
+ w.Start();
+ sim.Run(n);
+ w.Stop();
+ w.Print();
}
//