]> git.uio.no Git - u/mrichter/AliRoot.git/blob - ZDC/MakeZDCRecoParam.C
Restoring backward compatibility of the SSD calibration objects + output of the SSD...
[u/mrichter/AliRoot.git] / ZDC / MakeZDCRecoParam.C
1 void MakeZDCRecoParam(Int_t type=0){
2 //========================================================================
3 //
4 // Steering macro to create and store in OCDB
5 //       ZDC reconstruction parameters
6 //
7 // Contact: chiara.oppedisano@to.infn.it
8 //
9 //========================================================================
10
11   AliCDBManager* cdb = AliCDBManager::Instance();
12   //if(!cdb->IsDefaultStorageSet()) cdb->SetDefaultStorage("local://OCDB");
13   cdb->SetDefaultStorage("local://$ALICE_ROOT");
14   
15   AliZDCRecoParam *zdcRecoParam = 0;
16   //
17   switch(type) {
18   case 0:
19     zdcRecoParam = (AliZDCRecoParampp*) AliZDCRecoParampp::GetppRecoParam();
20     break;
21   case 1:
22     zdcRecoParam = (AliZDCRecoParamPbPb*) AliZDCRecoParamPbPb::GetPbPbRecoParam();
23     break;
24   case default:
25     printf("Event type not implemented\n");
26     return;
27     break;
28   }
29   //
30   // save in CDB storage
31   AliCDBMetaData *md= new AliCDBMetaData();
32   md->SetResponsible("Chiara Oppedisano");
33   md->SetComment("Reconstruction parameters for ZDC");
34   md->SetAliRootVersion(gSystem->Getenv("ARVERSION"));
35   md->SetBeamPeriod(0);
36   md->SetObjectClassName("AliZDCRecoParam");
37   AliCDBId id("ZDC/Calib/RecoParam",0,AliCDBRunRange::Infinity());
38   AliCDBManager::Instance()->GetDefaultStorage()->Put(zdcRecoParam,id, md);
39
40 }