TRD module
[u/mrichter/AliRoot.git] / TRD / TRDbase / AliTRDmakeTrkDB.C
CommitLineData
a65a7e70 1//____________________________________________________
2void AliTRDmakeTrkDB(const Char_t *file)
3{
4 AliCDBManager *man = AliCDBManager::Instance();
5 AliCDBStorage *gStorLoc = man->GetStorage("local://$ALICE_ROOT/OCDB");
6 if (!gStorLoc) return;
7
8 // Attach clusters likelihoods
9 AliCDBMetaData *metaData= new AliCDBMetaData();
10 metaData->SetObjectClassName("TObjArray");
11 metaData->SetResponsible("Alexandru Bercuci");
12 metaData->SetBeamPeriod(1);
13 metaData->SetAliRootVersion("05-30-02"); //root version
14 metaData->SetComment(
15 "Likelihoods for Attach Cluster.\n"
16 " Tunned on p-p run 159580.");
17 AliCDBId id("TRD/Calib/TrkAttach", 151536, AliCDBRunRange::Infinity());
18 AliTRDCalTrkAttach attach;
19 if(!attach.LoadReferences(file)) return;
20// attach.SetNsgmDy(Int_t ns0, Int_t ns1);
21// attach.SetLikeMinRelDecrease(Float_t p0, Float_t p1);
22// attach.SetRClikeLimit(Float_t rc);
23 attach.SetScaleCov(5.);
24 gStorLoc->Put(&attach, id, metaData);
25
26 return;
27}
28