Macros used to produce the OCDB entries for MC. One for default (p-p) and one for...
[u/mrichter/AliRoot.git] / VZERO / MakeVZEROCalibEntry.C
CommitLineData
53b85f23 1
2void MakeVZEROCalibEntry(Int_t run,const char *inputCDB = "raw://"){
3
4 AliCDBManager *man = AliCDBManager::Instance();
5
6 man->SetDefaultStorage(inputCDB);
7 man->SetRun(run);
8
9 AliCDBEntry *entry = man->Get("VZERO/Calib/Data");
10 AliVZEROCalibData *calibdaorg = (AliVZEROCalibData*)entry->GetObject();
11 AliVZEROCalibData *calibda = new AliVZEROCalibData(*calibdaorg);
12
13 // Creation of the object VZERO Calibration as a MetaData
14 AliCDBMetaData *md= new AliCDBMetaData(); // metaData describing the object
15 md->SetResponsible("Brigitte Cheynis");
16 md->SetBeamPeriod(0);
17 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
18 md->SetComment("VZERO Calibration from RAW OCDB");
19 AliCDBId id("VZERO/Calib/Data",0,AliCDBRunRange::Infinity());
20
21 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
22 AliCDBStorage *storLoc = man->GetDefaultStorage();
23 storLoc->Put(calibda, id, md);
24
25}