- Bool_t toCdb = TString(gSystem->Getenv("TOCDB")) == TString("kTRUE");
- TString storage = gSystem->Getenv("STORAGE");
-
- if(toCdb) {
- if(!storage.BeginsWith("local://") &&
- !storage.BeginsWith("alien://")) {
- Error(macroname,"STORAGE=\"%s\" is not valid. Exiting\n", storage.Data());
- return;
- }
-
- AliCDBStorage* store = cdb->GetStorage(storage.Data());
- if(!store){
- Error(macroname,"Unable to open storage %s\n", storage.Data());
- return;
- }
-
- AliCDBPath path("GRP","Geometry","Data");
- AliCDBEntry* entry = storage->Get(path.GetPath(),cdb->GetRun());
- if(!entry) Fatal(macroname,"Could not get the specified CDB entry!");
-
- entry->SetOwner(0);
- TGeoManager* geom = static_cast<TGeoManager*>(entry->GetObject());
- AliGeomManager::SetGeometry(geom);
- }else
- //load geom from default CDB storage
- AliGeomManager::LoadGeometry();
+ Bool_t toCdb = TString(gSystem->Getenv("TOCDB")) == TString("kTRUE");
+ TString storage = gSystem->Getenv("STORAGE");
+ TString output = "FMDfullMisalignment.root";
+ if(toCdb) output = storage;