]> git.uio.no Git - u/mrichter/AliRoot.git/blame - MUON/runSimulation.C
Fixing clustering(s) memory leaks
[u/mrichter/AliRoot.git] / MUON / runSimulation.C
CommitLineData
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
e54bf126 18/// \ingroup macros
19/// \file runSimulation.C
20/// \brief Macro for running simulation
21///
22/// Macro extracted from the MUON test script
23///
24/// \author Laurent Aphecetche
4d717204 25
26#if !defined(__CINT__) || defined(__MAKECINT__)
bde793f3 27#include "AliCDBManager.h"
28#include "AliSimulation.h"
29#include <TRandom.h>
4d717204 30#endif
31
745f6baf 32void runSimulation(int seed, int nevents, const char* config)
4d717204 33{
34// Uncoment following lines to run simulation with local residual mis-alignment
35// (generated via MUONGenerateGeometryData.C macro)
36// AliCDBManager* man = AliCDBManager::Instance();
162637e4 37// man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
38// man->SetSpecificStorage("MUON/Align/Data","local://$ALICE_ROOT/OCDB/MUON/ResMisAlignCDB");
745f6baf 39
4d717204 40 AliSimulation MuonSim(config);
034dd3ad 41 MuonSim.SetSeed(seed);
4d717204 42 MuonSim.SetMakeTrigger("MUON");
e3817f97 43 MuonSim.SetWriteRawData("MUON HLT","raw.root",kTRUE);
1fa49dab 44
45 MuonSim.SetMakeDigits("MUON");
46 MuonSim.SetMakeSDigits("MUON");
47 MuonSim.SetMakeDigitsFromHits("");
48
e3817f97 49 MuonSim.SetRunHLT("libAliHLTMUON.so chains=dHLT-sim");
f1cdfa6d 50
ef0eadd8 51 MuonSim.SetRunQA("MUON:ALL");
52
4d717204 53 MuonSim.Run(nevents);
54 //gObjectTable->Print();
1fa49dab 55
4d717204 56}