AliRoot Core  edcc906 (edcc906)
Simulate.C
Go to the documentation of this file.
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$ */
23 void
24 Simulate(Int_t n=1)
25 {
27  sim.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
28  sim.SetSpecificStorage("GRP/GRP/Data", Form("local://%s",gSystem->pwd()));
29  sim.SetConfigFile("./Config.C");
30  sim.SetMakeSDigits("FMD");
31  sim.SetMakeDigits("FMD");
32  sim.SetWriteRawData("FMD", "raw.root");
33  sim.SetRunQA(":");
34 
36 
37  TStopwatch w;
38  w.Start();
39  sim.Run(n);
40  w.Stop();
41  w.Print();
42 }
43 
44 //
45 // EOF
46 //
void SetSpecificStorage(const char *calibType, const char *uri)
virtual Bool_t Run(Int_t nEvents=0)
void SetDefaultStorage(const char *uri)
void sim(char *configPath, char *tpcDbpath, Int_t nevents)
Definition: sim.C:3
void SetMakeDigits(const char *detectors)
Definition: AliSimulation.h:62
void Simulate(Int_t n=1)
Definition: Simulate.C:24
void SetMakeSDigits(const char *detectors)
Definition: AliSimulation.h:52
void SetConfigFile(const char *fileName)
static void SetModuleDebugLevel(const char *module, Int_t level)
Definition: AliLog.cxx:485
Bool_t SetRunQA(TString detAndAction="ALL:ALL")
void SetWriteRawData(const char *detectors, const char *fileName=NULL, Bool_t deleteIntermediateFiles=kFALSE)
Definition: AliSimulation.h:66