}
else {
if(gAlice){
- delete gAlice->GetRunLoader();
+ delete AliRunLoader::Instance();
delete gAlice;
gAlice=0;
}
// Set OCDB if needed
AliCDBManager* man = AliCDBManager::Instance();
if (!man->IsDefaultStorageSet()) {
- printf("Setting a local default storage\n");
- man->SetDefaultStorage("local://$ALICE_ROOT");
+ printf("Setting a local default storage and run number 0\n");
+ man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
+ man->SetRun(0);
}
else {
printf("Using deafult storage \n");
ITS->FillModules(0,0,nmodules," "," ");
cout<<"ITS modules .... DONE!"<<endl;
- AliITSDetTypeRec* detTypeRec = new AliITSDetTypeRec(ITSloader);
+ AliITSDetTypeRec* detTypeRec = new AliITSDetTypeRec();
+ detTypeRec->SetITSgeom(ITSloader->GetITSgeom());
detTypeRec->SetDefaults();
+
// DIGITS
TTree *TD = ITSloader->TreeD();