3 # raw2sdigits.sh rawfile [esdfile]
5 # convert a (real) raw data file into SDigits suitable for embedding.
6 # if esdfile is present (should correspond to the raw data file ;-) )
7 # then zvertex is taken from it
16 echo "rawfile=$rawfile esdfile=$esdfile"
20 AliSimulation sim("$ALICE_ROOT/MUON/Config.C");
21 gAlice->SetConfigFunction("Config(\"\", \"param\", \"AliMUONDigitStoreV2R\",kTRUE);");
22 AliCDBManager *cdbm = AliCDBManager::Instance();
23 AliRawReader* reader = AliRawReader::Create(gSystem->ExpandPathName("$rawfile"));
25 Int_t runNumber = reader->GetRunNumber();
27 cout << "SETTING RUN NUMBER TO " << runNumber << endl;
28 cdbm->SetRun(runNumber);
29 cdbm->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
30 cdbm->SetSpecificStorage("GRP/GRP/Data",Form("local://%s",gSystem->pwd()));
31 sim.SetMakeSDigits("MUON");
33 sim.ConvertRaw2SDigits("$rawfile","$esdfile");