1 void MakeGRPRecoParam(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult) {
2 //========================================================================
4 // Steering macro for GRP reconstruction parameters
7 //========================================================================
10 const char* macroname = "MakeGRPRecoParam.C";
12 // Activate CDB storage and load geometry from CDB
13 AliCDBManager* cdb = AliCDBManager::Instance();
14 if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://OCDB");
16 TObjArray *recoParamArray = new TObjArray();
19 AliGRPRecoParam * param = AliGRPRecoParam::GetCosmicTestParam();
20 param->SetEventSpecie(AliRecoParam::kCosmic);
21 param->SetVertexerTracksConstraintITS(kFALSE);
22 param->SetVertexerTracksConstraintTPC(kFALSE);
23 recoParamArray->AddLast(param);
26 // new settings for pass 2reco of Dec09 pp data
27 AliGRPRecoParam * param = AliGRPRecoParam::GetLowFluxParam();
28 param->SetEventSpecie(AliRecoParam::kLowMult);
29 param->SetVertexerTracksConstraintITS(kTRUE);
30 Double_t cutsITS[21]={0.1,
33 //4, // minimum 4 clusters (default was 5)
34 3, // minimum 3 clusters (was 4)
41 6, // 6: MultiVertexer (was 1)
43 // multivertexer settings
54 param->SetVertexerTracksCutsITS(21,cutsITS);
55 param->SetVertexerTracksConstraintTPC(kTRUE);
56 recoParamArray->AddLast(param);
59 AliGRPRecoParam * param = AliGRPRecoParam::GetHighFluxParam();
60 param->SetEventSpecie(AliRecoParam::kHighMult);
61 param->SetVertexerTracksConstraintITS(kTRUE);
62 Double_t cutsITS[21]={0.1,
65 4, // minimum 4 clusters (default was 5)
74 // multivertexer settings
84 }; // faster finder algo for Iteration 0
85 param->SetVertexerTracksCutsITS(21,cutsITS);
86 param->SetVertexerTracksConstraintTPC(kTRUE);
87 recoParamArray->AddLast(param);
91 Bool_t defaultIsSet = kFALSE;
92 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
93 AliDetectorRecoParam *par = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
95 if (default & par->GetEventSpecie()) {
102 Error(macroname,"The default reconstruction parameters are not set! Exiting...");
106 // save in CDB storage
107 AliCDBMetaData *md= new AliCDBMetaData();
108 md->SetResponsible("Cvetan Cheshkov");
109 md->SetComment("GRP reconstruction parameters");
110 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
111 md->SetBeamPeriod(0);
112 AliCDBId id("GRP/Calib/RecoParam",0,AliCDBRunRange::Infinity());
113 cdb->GetDefaultStorage()->Put(recoParamArray,id, md);