]>
Commit | Line | Data |
---|---|---|
6ecb073a | 1 | void MakeCTPLTUConfigEntry(const char *cdbStorage = "local://$ALICE_ROOT/OCDB"){ |
2 | ||
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: | |
6 | // fFineDelay1 = 0; | |
7 | // fFineDelay2 = 0; | |
8 | // fBCDelaysAdd = 0; | |
9 | ||
10 | AliCDBManager *man = AliCDBManager::Instance(); | |
11 | man->SetDefaultStorage(cdbStorage); | |
12 | ||
13 | TObjArray* ltuarray = new TObjArray(); | |
14 | ltuarray->SetOwner(1); | |
15 | AliLTUConfig* ltu; | |
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); | |
20 | } | |
21 | ||
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); | |
27 | ||
28 | return; | |
29 | } |