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[24]={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
58 param->SetVertexerTracksCutsITS(24,cutsITS);
59 param->SetVertexerTracksConstraintTPC(kTRUE);
60 recoParamArray->AddLast(param);
63 AliGRPRecoParam * param = AliGRPRecoParam::GetHighFluxParam();
64 param->SetEventSpecie(AliRecoParam::kHighMult);
65 param->SetVertexerTracksConstraintITS(kTRUE);
66 Double_t cutsITS[24]={0.1,
69 4, // minimum 4 clusters (default was 5)
78 // multivertexer settings
91 }; // faster finder algo for Iteration 0
92 param->SetVertexerTracksCutsITS(24,cutsITS);
93 param->SetVertexerTracksConstraintTPC(kTRUE);
94 recoParamArray->AddLast(param);
98 Bool_t defaultIsSet = kFALSE;
99 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
100 AliDetectorRecoParam *par = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
102 if (default & par->GetEventSpecie()) {
104 defaultIsSet = kTRUE;
109 Error(macroname,"The default reconstruction parameters are not set! Exiting...");
113 // save in CDB storage
114 AliCDBMetaData *md= new AliCDBMetaData();
115 md->SetResponsible("Cvetan Cheshkov");
116 md->SetComment("GRP reconstruction parameters");
117 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
118 md->SetBeamPeriod(0);
119 AliCDBId id("GRP/Calib/RecoParam",0,AliCDBRunRange::Infinity());
120 cdb->GetDefaultStorage()->Put(recoParamArray,id, md);