]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/Simulate.C
Patch from Christian Holm
[u/mrichter/AliRoot.git] / FMD / Simulate.C
CommitLineData
d28dcc0d 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 **************************************************************************/
4347b38f 15/* $Id$ */
c2fc1258 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 */
4347b38f 23void
24Simulate()
d28dcc0d 25{
1e8f773e 26 AliCDBManager* cdb = AliCDBManager::Instance();
c2fc1258 27 cdb->SetDefaultStorage("local://$ALICE_ROOT");
1e8f773e 28 AliSimulation sim;
29 AliCDBEntry* align = cdb->Get("FMD/Align/Data");
30 if (align) {
31 TClonesArray* array = dynamic_cast<TClonesArray*>(align->GetObject());
32 if (array) sim.SetAlignObjArray(array);
33 }
8ec606c2 34 AliLog::SetModuleDebugLevel("FMD", 2);
1e8f773e 35 sim.SetConfigFile("$(ALICE_ROOT)/FMD/Config.C");
36 // sim.SetMakeSDigits("FMD");
37 sim.SetMakeDigits("FMD");
38 sim.SetWriteRawData("FMD");
39 // sim.SetMakeDigitsFromHits("FMD");
40 TStopwatch w;
41 w.Start();
42 sim.Run(1);
43 w.Stop();
44 w.Print();
d28dcc0d 45}
d28dcc0d 46
4347b38f 47//
48// EOF
49//