Resolving all symbols in the library
[u/mrichter/AliRoot.git] / VZERO / MakeVZEROCalibEntryHVfix.C
CommitLineData
c48bfe81 1void MakeVZEROCalibEntryHVfix(Int_t runIn, Int_t runOut, const char *inputCDB = "raw://"){
2
3 AliCDBManager *man = AliCDBManager::Instance();
4
5 man->SetDefaultStorage(inputCDB);
6 man->SetRun(runIn);
7
8 AliCDBEntry *entry = man->Get("VZERO/Calib/Data");
9 AliVZEROCalibData *calibdaorg = (AliVZEROCalibData*)entry->GetObject();
10 AliVZEROCalibData *calibda = new AliVZEROCalibData(*calibdaorg);
11
12 // Creation of the object VZERO Calibration as a MetaData
13 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
14 md->SetResponsible("Brigitte Cheynis");
15 md->SetBeamPeriod(0);
16 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
17 md->SetComment("VZERO Calibration from RAW OCDB (repaired manually for HV ramping-down before EOR)");
18 AliCDBId id("VZERO/Calib/Data",runOut,runOut);
19
20 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
21 AliCDBStorage *storLoc = man->GetDefaultStorage();
22 storLoc->Put(calibda, id, md);
23
24}