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