]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ACORDE/macros/testMC/cosmicSim.C
make ptmin setteable
[u/mrichter/AliRoot.git] / ACORDE / macros / testMC / cosmicSim.C
1 void cosmicSim(Int_t nev=10) {
2   AliSimulation simulator("Config_AliGenACORDE.C");
3   if (gSystem->Getenv("EVENT"))
4    nev = atoi(gSystem->Getenv("EVENT")) ;   
5   simulator.SetWriteRawData("ALL","raw.root",kTRUE);
6
7   simulator.SetDefaultStorage("local://$ALICE_ROOT/OCDB");
8   simulator.SetSpecificStorage("GRP/GRP/Data",
9                                Form("local://%s",gSystem->pwd()));
10   simulator.SetRunQA("ALL:ALL") ; 
11  simulator.SetQARefDefaultStorage("local://$ALICE_ROOT/QAref") ;
12   
13   for (Int_t det = 0 ; det < AliQA::kNDET ; det++) {
14     simulator.SetQACycles(det, nev+1) ;
15   }
16 simulator.SetEventSpecie(AliRecoParam::kCosmic);
17   TStopwatch timer;
18   timer.Start();
19   simulator.Run(nev);
20   timer.Stop();
21   timer.Print();
22 }