Remove stale email recipient.
[u/mrichter/AliRoot.git] / VZERO / MakeVZEROCalibEntry.C
CommitLineData
53b85f23 1void MakeVZEROCalibEntry(Int_t run,const char *inputCDB = "raw://"){
2
3 AliCDBManager *man = AliCDBManager::Instance();
4
5 man->SetDefaultStorage(inputCDB);
6 man->SetRun(run);
7
8 AliCDBEntry *entry = man->Get("VZERO/Calib/Data");
9 AliVZEROCalibData *calibdaorg = (AliVZEROCalibData*)entry->GetObject();
10 AliVZEROCalibData *calibda = new AliVZEROCalibData(*calibdaorg);
11
189c0835 12 for (Int_t i = 0; i < 64; ++i) {
13 calibda->SetTimeOffset(5.0,i);
14 }
15 for (Int_t i = 0; i < 8; ++i) {
16 calibda->SetWidthResolution(2,i);
17 }
18
53b85f23 19 // Creation of the object VZERO Calibration as a MetaData
20 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
21 md->SetResponsible("Brigitte Cheynis");
22 md->SetBeamPeriod(0);
23 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
24 md->SetComment("VZERO Calibration from RAW OCDB");
25 AliCDBId id("VZERO/Calib/Data",0,AliCDBRunRange::Infinity());
26
27 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
28 AliCDBStorage *storLoc = man->GetDefaultStorage();
29 storLoc->Put(calibda, id, md);
30
31}