Setting IsDefault after the event specie, otherwise it is not taken into account
[u/mrichter/AliRoot.git] / TRD / Cal / AliTRDmakeRecoParam.C
CommitLineData
67314dde 1//____________________________________________________
2void AliTRDmakeRecoParam()
3{
4 AliCDBMetaData *metaData= new AliCDBMetaData();
5 metaData->SetObjectClassName("TObjArray");
6 metaData->SetResponsible("Alexandru Bercuci");
7 metaData->SetBeamPeriod(1);
8 metaData->SetAliRootVersion("05-21-01"); //root version
9 metaData->SetComment("Ideal reconstruction parameters for low, high and cosmic runs");
10
11 AliCDBId id("TRD/Calib/RecoParam", 0, AliCDBRunRange::Infinity());
12 AliCDBManager *man = AliCDBManager::Instance();
13 AliCDBStorage *gStorLoc = man->GetStorage("local://$ALICE_ROOT/OCDB");
14 if (!gStorLoc) {
15 return;
16 }
17 gStorLoc->Put(CreateRecoParamObject(), id, metaData);
18
19 return;
20}
21
22
23//____________________________________________________
24TObjArray* CreateRecoParamObject()
25{
26 TObjArray *recos = new TObjArray(4);
27
28 AliTRDrecoParam *rec = 0x0;
29 recos->AddLast(rec = AliTRDrecoParam::GetLowFluxParam());
67314dde 30 rec->SetEventSpecie(AliRecoParam::kLowMult);
31 rec->SetNameTitle("LOW", "TRD Low Flux Reco Param");
32 rec->SetStreamLevel(AliTRDrecoParam::kTracker, 1);
136ddc91 33 rec->SetAsDefault();
67314dde 34 // further settings for low flux reco param
35 // reco->SetThisAndThat()
36
37 recos->AddLast(rec = AliTRDrecoParam::GetHighFluxParam());
38 rec->SetEventSpecie(AliRecoParam::kHighMult);
39 rec->SetNameTitle("HIGH", "TRD High Flux Reco Param");
40 rec->SetStreamLevel(AliTRDrecoParam::kTracker, 1);
41
42 recos->AddLast(rec = AliTRDrecoParam::GetCosmicTestParam());
43 rec->SetEventSpecie(AliRecoParam::kCosmic);
44 rec->SetNameTitle("COSMIC", "TRD Cosmic Reco Param");
45 rec->SetStreamLevel(AliTRDrecoParam::kTracker, 1);
46 rec->SetRawStreamVersion("FAST");
47
48 recos->AddLast(rec = AliTRDrecoParam::GetCosmicTestParam());
49 rec->SetEventSpecie(AliRecoParam::kCalib);
50 rec->SetNameTitle("CALIBRATION", "TRD Calibration Reco Param");
51 rec->SetStreamLevel(AliTRDrecoParam::kTracker, 1);
52 rec->SetRawStreamVersion("FAST");
53
54// recos->AddLast(rec = AliTRDrecoParam::GetLowFluxParam());
55// rec->SetNameTitle("HLT", "TRD HLT Reco Param");
56// rec->SetChi2Y(.1);
57// rec->SetChi2Z(5.);
58
59 return recos;
60}