1 void CreateMeanVertex(Double_t xmed=0., Double_t ymed=0., Double_t sigx=0.005,Double_t sigy=0.005, Double_t sigz=5.3){
2 Double_t resolx=35./10000.;
3 Double_t resoly=35./10000.;
4 Double_t sigma[3],position[3];
8 sigma[0]=TMath::Sqrt(sigx*sigx+resolx*resolx);
9 sigma[1]=TMath::Sqrt(sigy*sigy+resoly*resoly);
11 AliESDVertex *vave=new AliESDVertex(position,sigma,"vtxmean");
14 AliCDBManager* man = AliCDBManager::Instance();
15 man->SetDefaultStorage("local://$ALICE_ROOT/OCDB");
17 AliCDBId id("GRP/Calib/MeanVertex", 0, AliCDBRunRange::Infinity());
20 md.SetResponsible("prino@to.infn.it");
21 md.SetComment("Default mean vertex position");
22 md.SetAliRootVersion("Default mean vertex position");
24 man->Put(vave, id, &md);
28 // TFile *outf=new TFile("AliESDMeanVertex.root","recreate");