Additional protection
[u/mrichter/AliRoot.git] / VZERO / MakeVZEROTriggerEntry.C
CommitLineData
d0ff6548 1void MakeVZEROTriggerEntry(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/Trigger/Data");
9 AliVZEROTriggerData *trigdata = (AliVZEROTriggerData*)entry->GetObject();
10 entry->SetObject(NULL);
11 entry->SetOwner(kTRUE);
12
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 Trigger Conditions Data from RAW OCDB");
18 AliCDBId id("VZERO/Trigger/Data",0,AliCDBRunRange::Infinity());
19
20 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
21 AliCDBStorage *storLoc = man->GetDefaultStorage();
22 storLoc->Put(trigdata, id, md);
23
24}