CMake: removing qpythia from the depedencies
[u/mrichter/AliRoot.git] / TOF / MakeTOFRecoParam.C
CommitLineData
cdafa9c7 1void MakeTOFRecoParam(AliRecoParam::EventSpecie_t default=AliRecoParam::kLowMult){
2 // Create TOF Calibration Object for Ideal calibration and
3 // write it on CDB
4 AliCDBManager *man = AliCDBManager::Instance();
162637e4 5 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
cdafa9c7 6
7 TObjArray *recoParamArray = new TObjArray();
8
9 {
10 AliTOFRecoParam* tofRecoParam = AliTOFRecoParam::GetPbPbparam();
11 tofRecoParam->SetEventSpecie(AliRecoParam::kHighMult);
12 recoParamArray->AddLast(tofRecoParam);
13 }
14
15 {
16 AliTOFRecoParam* tofRecoParam = AliTOFRecoParam::GetPPparam();
17 tofRecoParam->SetEventSpecie(AliRecoParam::kLowMult);
18 recoParamArray->AddLast(tofRecoParam);
19 }
20
21 // Set the default
22 Bool_t defaultIsSet = kFALSE;
23 for(Int_t i =0; i < recoParamArray->GetEntriesFast(); i++) {
24 AliDetectorRecoParam *param = (AliDetectorRecoParam *)recoParamArray->UncheckedAt(i);
25 if (!param) continue;
26 if (default & param->GetEventSpecie()) {
27 param->SetAsDefault();
28 defaultIsSet = kTRUE;
29 }
30 }
31
32
33 AliCDBMetaData *md= new AliCDBMetaData();
34 md->SetResponsible("Chiara Zampolli");
35 md->SetComment("Reconstruction parameters TOF");
36 md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
37 md->SetBeamPeriod(0);
38 AliCDBId id("TOF/Calib/RecoParam",0,AliCDBRunRange::Infinity());
39 man->GetDefaultStorage()->Put(recoParamArray,id, md);
40}
41
42