2 const char* macroname = "MakeEMCALPF.C";
3 TFile *f2 = new TFile("peakfindervectors2.root", "read" );
5 // AliCaloPeakFinderVectors *pfv = (AliCaloPeakFinderVectors* )f2->GetKey( "AliCaloPeakFinderVectors");
7 AliCaloPeakFinderVectors pfv = *((AliCaloPeakFinderVectors* )f2->GetKey( "AliCaloPeakFinderVectors"));
11 // TString Storage = "local://home/perthi/aliroot-current/OCDB/";
12 TString Storage = "local://OCDB/";
14 if(!Storage.BeginsWith("local://") && !Storage.BeginsWith("alien://")) {
15 Error(macroname ,"STORAGE variable set to %s is not valid. Exiting\n",Storage.Data());
19 Info(macroname,"Saving PF objects in CDB storage %s",
21 AliCDBManager* cdb = AliCDBManager::Instance();
24 AliCDBStorage* storage = cdb->GetStorage(Storage.Data());
26 Error(macroname,"Unable to open storage %s\n",Storage.Data());
30 AliCDBMetaData* md = new AliCDBMetaData();
31 md->SetResponsible("Per Thomas Hille");
32 md->SetComment("Peak-Finder vectors for EMCAL");
33 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
34 AliCDBId id("EMCAL/Config/PeakFinder",0,AliCDBRunRange::Infinity());
38 // cout << " ERROR !!!!!!!!!" << endl;
44 storage->Put( &pfv,id,md);