]>
Commit | Line | Data |
---|---|---|
4d717204 | 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 | ||
16 | /* $Id$ */ | |
17 | ||
18 | // Macro extracted from MUON test script | |
19 | // By Laurent Aphecetche | |
20 | ||
21 | #if !defined(__CINT__) || defined(__MAKECINT__) | |
22 | // add | |
23 | #endif | |
24 | ||
25 | void runSimulation(int run, int seed, int nevents, const char* config) | |
26 | { | |
27 | // Uncoment following lines to run simulation with local residual mis-alignment | |
28 | // (generated via MUONGenerateGeometryData.C macro) | |
29 | // AliCDBManager* man = AliCDBManager::Instance(); | |
30 | // man->SetDefaultStorage("local://$ALICE_ROOT"); | |
31 | // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB"); | |
32 | gRandom->SetSeed(seed); | |
33 | AliCDBManager::Instance()->SetRun(run); | |
34 | AliSimulation MuonSim(config); | |
35 | MuonSim.SetMakeTrigger("MUON"); | |
36 | MuonSim.SetWriteRawData("MUON","raw.root",kTRUE); | |
37 | MuonSim.Run(nevents); | |
38 | //gObjectTable->Print(); | |
39 | } |