1 /**************************************************************************
2 * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
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 **************************************************************************/
19 /// \file runSimulation.C
20 /// \brief Macro for running simulation
22 /// Macro extracted from the MUON test script
24 /// \author Laurent Aphecetche
26 #if !defined(__CINT__) || defined(__MAKECINT__)
27 #include "AliCDBManager.h"
28 #include "AliSimulation.h"
32 void runSimulation(int seed, int nevents, const char* config)
34 // Uncoment following lines to run simulation with local residual mis-alignment
35 // (generated via MUONGenerateGeometryData.C macro)
36 // AliCDBManager* man = AliCDBManager::Instance();
37 // man->SetDefaultStorage("local://$ALICE_ROOT");
38 // man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/MUON/ResMisAlignCDB");
40 AliSimulation MuonSim(config);
41 MuonSim.SetSeed(seed);
42 MuonSim.SetMakeTrigger("MUON");
43 MuonSim.SetWriteRawData("MUON","raw.root",kTRUE);
45 MuonSim.SetMakeDigits("MUON");
46 MuonSim.SetMakeSDigits("MUON");
47 MuonSim.SetMakeDigitsFromHits("");
50 //gObjectTable->Print();