1 void MakeCTPLTUConfigEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB"){
3 // Example macro to put in OCDB an LTU Config entry
4 // Since it is just an example macro, the AliLTUConfig members will be set as
5 // follows for all the detectors:
10 AliCDBManager *man = AliCDBManager::Instance();
11 man->SetDefaultStorage(cdbStorage);
13 TObjArray* ltuarray = new TObjArray();
14 ltuarray->SetOwner(1);
16 for(Int_t i = 0; i<AliDAQ::kNDetectors-2; i++){
17 const char* name = AliDAQ::DetectorName(i);
18 ltu = new AliLTUConfig((UChar_t)AliDAQ::DetectorID(name),0.,0.,0.);
19 ltuarray->AddAtAndExpand(ltu,i);
22 AliCDBMetaData* md = new AliCDBMetaData();
23 md->SetResponsible("Roman Lietava");
24 md->SetComment("Example of (dummy -> everything set to 0) entry for the detectors' LTU config");
25 AliCDBId id("GRP/CTP/LTUConfig",0,AliCDBRunRange::Infinity());
26 man->Put(ltuarray,id, md);