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(kFALSE);
50 param->SetVertexerTracksConstraintTPC(kFALSE);
51 recoParamArray->AddLast(param);
55 Bool_t defaultIsSet = kFALSE;
56 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
57 AliDetectorRecoParam *par = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
59 if (default & par->GetEventSpecie()) {
66 Error(macroname,"The default reconstruction parameters are not set! Exiting...");
70 // save in CDB storage
71 AliCDBMetaData *md= new AliCDBMetaData();
72 md->SetResponsible("Cvetan Cheshkov");
73 md->SetComment("GRP reconstruction parameters");
74 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
76 AliCDBId id("GRP/Calib/RecoParam",0,AliCDBRunRange::Infinity());
77 cdb->GetDefaultStorage()->Put(recoParamArray,id, md);