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[12]={0.1,
33 4, // minimum 4 clusters (default was 5)
42 param->SetVertexerTracksCutsITS(12,cutsITS);
43 param->SetVertexerTracksConstraintTPC(kTRUE);
44 recoParamArray->AddLast(param);
47 AliGRPRecoParam * param = AliGRPRecoParam::GetHighFluxParam();
48 param->SetEventSpecie(AliRecoParam::kHighMult);
49 param->SetVertexerTracksConstraintITS(kTRUE);
50 Double_t cutsITS[12]={0.1,
53 4, // minimum 4 clusters (default was 5)
61 1}; // faster finder algo for Iteration 0
62 param->SetVertexerTracksCutsITS(12,cutsITS);
63 param->SetVertexerTracksConstraintTPC(kTRUE);
64 recoParamArray->AddLast(param);
68 Bool_t defaultIsSet = kFALSE;
69 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
70 AliDetectorRecoParam *par = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
72 if (default & par->GetEventSpecie()) {
79 Error(macroname,"The default reconstruction parameters are not set! Exiting...");
83 // save in CDB storage
84 AliCDBMetaData *md= new AliCDBMetaData();
85 md->SetResponsible("Cvetan Cheshkov");
86 md->SetComment("GRP reconstruction parameters");
87 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
89 AliCDBId id("GRP/Calib/RecoParam",0,AliCDBRunRange::Infinity());
90 cdb->GetDefaultStorage()->Put(recoParamArray,id, md);