]> git.uio.no Git - u/mrichter/AliRoot.git/blob - FMD/Simulate.C
Using AliGeomManager in the macros (Raffaele)
[u/mrichter/AliRoot.git] / FMD / Simulate.C
1 /**************************************************************************
2  * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
3  *                                                                        *
4  * Author: The ALICE Off-line Project.                                    *
5  * Contributors are mentioned in the code where appropriate.              *
6  *                                                                        *
7  * Permission to use, copy, modify and distribute this software and its   *
8  * documentation strictly for non-commercial purposes is hereby granted   *
9  * without fee, provided that the above copyright notice appears in all   *
10  * copies and that both the copyright notice and this permission notice   *
11  * appear in the supporting documentation. The authors make no claims     *
12  * about the suitability of this software for any purpose. It is          *
13  * provided "as is" without express or implied warranty.                  *
14  **************************************************************************/
15 /* $Id$ */
16 /** @file    Simulate.C
17     @author  Christian Holm Christensen <cholm@nbi.dk>
18     @date    Mon Mar 27 14:20:24 2006
19     @brief   Script to do simulation 
20 */
21 /** Script to do test the FMD digitization class.  
22  */
23 void
24 Simulate()
25 {
26   AliSimulation sim;
27   AliLog::SetModuleDebugLevel("FMD", 1);
28   sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C");
29   // sim.SetMakeSDigits("FMD");
30   sim.SetMakeDigits("FMD"); 
31   sim.SetWriteRawData("FMD"); 
32   // sim.SetMakeDigitsFromHits("FMD"); 
33   TStopwatch w; 
34   w.Start(); 
35   sim.Run(1);  
36   w.Stop(); 
37   w.Print(); 
38 }
39
40 //
41 // EOF
42 //