ROOT logo
void MakeGRPRecoParam(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult) {
//========================================================================
//
// Steering macro for GRP reconstruction parameters
//
//
//========================================================================


  const char* macroname = "MakeGRPRecoParam.C";

  // Activate CDB storage and load geometry from CDB
  AliCDBManager* cdb = AliCDBManager::Instance();
  if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://OCDB");
  
  TObjArray *recoParamArray = new TObjArray();

  {
    AliGRPRecoParam * param = AliGRPRecoParam::GetCosmicTestParam();
    param->SetEventSpecie(AliRecoParam::kCosmic);
    param->SetVertexerTracksConstraintITS(kFALSE);
    param->SetVertexerTracksConstraintTPC(kFALSE);
    recoParamArray->AddLast(param);
  }
  {
    // new settings for pass 2reco of Dec09 pp data
    AliGRPRecoParam * param = AliGRPRecoParam::GetLowFluxParam();
    param->SetEventSpecie(AliRecoParam::kLowMult);
    param->SetVertexerTracksConstraintITS(kTRUE);
    Double_t cutsITS[24]={0.1,
                          0.1,
			  0.5,
			  //4, // minimum 4 clusters (default was 5)
			  3, // minimum 3 clusters (was 4)
                          1,
                          3.,
                          100.,
                          1000.,
                          3.,
                          30.,
                          6, // 6: MultiVertexer (was 1)
                          4,
			  // multivertexer settings
			  7., 
			  1e3.,
			  5.0,
			  0.05,
			  10e-4,
			  2.,
			  10.,
			  1.,
			  50.,
			  50.,
			  0.,
			  999999.,
			  3.
    };
    param->SetVertexerTracksCutsITS(24,cutsITS);
    param->SetVertexerTracksConstraintTPC(kTRUE);
    recoParamArray->AddLast(param);
  }
  {
    AliGRPRecoParam * param = AliGRPRecoParam::GetHighFluxParam();
    param->SetEventSpecie(AliRecoParam::kHighMult);
    param->SetVertexerTracksConstraintITS(kTRUE);
    Double_t cutsITS[24]={0.1,
                          0.1,
			  0.5,
			  4, // minimum 4 clusters (default was 5)
                          1,
                          3.,
                          100.,
                          1000.,
                          3.,
                          30.,
                          1,
                          1,
			  // multivertexer settings
			  7., 
			  1e3.,
			  5.0,
			  0.05,
			  10e-4,
			  2.,
			  10.,
			  1.,
			  50.,
			  0.,
			  999999.,
			  3.
    }; // faster finder algo for Iteration 0
    param->SetVertexerTracksCutsITS(24,cutsITS);
    param->SetVertexerTracksConstraintTPC(kTRUE);
    recoParamArray->AddLast(param);
  }

  // Set the default
  Bool_t defaultIsSet = kFALSE;
  for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
    AliDetectorRecoParam *par = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
    if (!par) continue;
    if (default & par->GetEventSpecie()) {
      par->SetAsDefault();
      defaultIsSet = kTRUE;
    }
  }

  if (!defaultIsSet) {
    Error(macroname,"The default reconstruction parameters are not set! Exiting...");
    return;
  }

  // save in CDB storage
  AliCDBMetaData *md= new AliCDBMetaData();
  md->SetResponsible("Cvetan Cheshkov");
  md->SetComment("GRP reconstruction parameters");
  md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
  md->SetBeamPeriod(0);
  AliCDBId id("GRP/Calib/RecoParam",0,AliCDBRunRange::Infinity());
  cdb->GetDefaultStorage()->Put(recoParamArray,id, md);

  return;
}
 MakeGRPRecoParam.C:1
 MakeGRPRecoParam.C:2
 MakeGRPRecoParam.C:3
 MakeGRPRecoParam.C:4
 MakeGRPRecoParam.C:5
 MakeGRPRecoParam.C:6
 MakeGRPRecoParam.C:7
 MakeGRPRecoParam.C:8
 MakeGRPRecoParam.C:9
 MakeGRPRecoParam.C:10
 MakeGRPRecoParam.C:11
 MakeGRPRecoParam.C:12
 MakeGRPRecoParam.C:13
 MakeGRPRecoParam.C:14
 MakeGRPRecoParam.C:15
 MakeGRPRecoParam.C:16
 MakeGRPRecoParam.C:17
 MakeGRPRecoParam.C:18
 MakeGRPRecoParam.C:19
 MakeGRPRecoParam.C:20
 MakeGRPRecoParam.C:21
 MakeGRPRecoParam.C:22
 MakeGRPRecoParam.C:23
 MakeGRPRecoParam.C:24
 MakeGRPRecoParam.C:25
 MakeGRPRecoParam.C:26
 MakeGRPRecoParam.C:27
 MakeGRPRecoParam.C:28
 MakeGRPRecoParam.C:29
 MakeGRPRecoParam.C:30
 MakeGRPRecoParam.C:31
 MakeGRPRecoParam.C:32
 MakeGRPRecoParam.C:33
 MakeGRPRecoParam.C:34
 MakeGRPRecoParam.C:35
 MakeGRPRecoParam.C:36
 MakeGRPRecoParam.C:37
 MakeGRPRecoParam.C:38
 MakeGRPRecoParam.C:39
 MakeGRPRecoParam.C:40
 MakeGRPRecoParam.C:41
 MakeGRPRecoParam.C:42
 MakeGRPRecoParam.C:43
 MakeGRPRecoParam.C:44
 MakeGRPRecoParam.C:45
 MakeGRPRecoParam.C:46
 MakeGRPRecoParam.C:47
 MakeGRPRecoParam.C:48
 MakeGRPRecoParam.C:49
 MakeGRPRecoParam.C:50
 MakeGRPRecoParam.C:51
 MakeGRPRecoParam.C:52
 MakeGRPRecoParam.C:53
 MakeGRPRecoParam.C:54
 MakeGRPRecoParam.C:55
 MakeGRPRecoParam.C:56
 MakeGRPRecoParam.C:57
 MakeGRPRecoParam.C:58
 MakeGRPRecoParam.C:59
 MakeGRPRecoParam.C:60
 MakeGRPRecoParam.C:61
 MakeGRPRecoParam.C:62
 MakeGRPRecoParam.C:63
 MakeGRPRecoParam.C:64
 MakeGRPRecoParam.C:65
 MakeGRPRecoParam.C:66
 MakeGRPRecoParam.C:67
 MakeGRPRecoParam.C:68
 MakeGRPRecoParam.C:69
 MakeGRPRecoParam.C:70
 MakeGRPRecoParam.C:71
 MakeGRPRecoParam.C:72
 MakeGRPRecoParam.C:73
 MakeGRPRecoParam.C:74
 MakeGRPRecoParam.C:75
 MakeGRPRecoParam.C:76
 MakeGRPRecoParam.C:77
 MakeGRPRecoParam.C:78
 MakeGRPRecoParam.C:79
 MakeGRPRecoParam.C:80
 MakeGRPRecoParam.C:81
 MakeGRPRecoParam.C:82
 MakeGRPRecoParam.C:83
 MakeGRPRecoParam.C:84
 MakeGRPRecoParam.C:85
 MakeGRPRecoParam.C:86
 MakeGRPRecoParam.C:87
 MakeGRPRecoParam.C:88
 MakeGRPRecoParam.C:89
 MakeGRPRecoParam.C:90
 MakeGRPRecoParam.C:91
 MakeGRPRecoParam.C:92
 MakeGRPRecoParam.C:93
 MakeGRPRecoParam.C:94
 MakeGRPRecoParam.C:95
 MakeGRPRecoParam.C:96
 MakeGRPRecoParam.C:97
 MakeGRPRecoParam.C:98
 MakeGRPRecoParam.C:99
 MakeGRPRecoParam.C:100
 MakeGRPRecoParam.C:101
 MakeGRPRecoParam.C:102
 MakeGRPRecoParam.C:103
 MakeGRPRecoParam.C:104
 MakeGRPRecoParam.C:105
 MakeGRPRecoParam.C:106
 MakeGRPRecoParam.C:107
 MakeGRPRecoParam.C:108
 MakeGRPRecoParam.C:109
 MakeGRPRecoParam.C:110
 MakeGRPRecoParam.C:111
 MakeGRPRecoParam.C:112
 MakeGRPRecoParam.C:113
 MakeGRPRecoParam.C:114
 MakeGRPRecoParam.C:115
 MakeGRPRecoParam.C:116
 MakeGRPRecoParam.C:117
 MakeGRPRecoParam.C:118
 MakeGRPRecoParam.C:119
 MakeGRPRecoParam.C:120
 MakeGRPRecoParam.C:121
 MakeGRPRecoParam.C:122
 MakeGRPRecoParam.C:123
 MakeGRPRecoParam.C:124