corrected TRD/TOF MV position
[u/mrichter/AliRoot.git] / TOF / MakeCDBEntryTriggerMask.C
CommitLineData
f3dd29bf 1MakeCDBEntryTriggerMask(Int_t startRun = 0, Int_t endRun = AliCDBRunRange::Infinity())
2{
3
4 UInt_t triggerMask[72];
5 for (Int_t i = 0; i < 72; i++)
6 triggerMask[i] = 0xffffff;
7
8 /* create object */
9 AliTOFTriggerMask *obj = new AliTOFTriggerMask();
10 obj->SetTriggerMaskArray(triggerMask);
11
12 /* create cdb info */
13 AliCDBId id("TRIGGER/TOF/TriggerMask", startRun, endRun);
14 AliCDBMetaData *md = new AliCDBMetaData();
15 md->SetResponsible("Roberto Preghenella");
16 md->SetComment("TOF Trigger Mask");
17 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
18 md->SetBeamPeriod(0);
19
20 /* put object in cdb */
21 AliCDBManager *cdb = AliCDBManager::Instance();
22 cdb->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
23 cdb->GetDefaultStorage()->Put(obj, id, md);
24
25}