Updated vertex diamond (from v4-06-Release)
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Oct 2007 04:59:57 +0000 (04:59 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 10 Oct 2007 04:59:57 +0000 (04:59 +0000)
GRP/Calib/MeanVertex/Run0_999999999_v0_s0.root
GRP/UpdateCDBVertexDiamond.C

index e32fd66..3a9acd1 100644 (file)
Binary files a/GRP/Calib/MeanVertex/Run0_999999999_v0_s0.root and b/GRP/Calib/MeanVertex/Run0_999999999_v0_s0.root differ
index d977a69..9f78b9c 100644 (file)
@@ -1,4 +1,4 @@
-void UpdateCDBVertexDiamond() {
+void UpdateCDBVertexDiamond(Double_t xmed = 0., Double_t ymed = 0., Double_t sigx = 0.005, Double_t sigy = 0.005, Double_t sigz = 5.3) {
   // produce the trigger descriptorwith the current AliRoot and store it in the
   // CDB
   
@@ -26,17 +26,26 @@ void UpdateCDBVertexDiamond() {
     alirootv="HEAD";
   }else{
     alirootv = buf;
-    metadata->SetResponsible("Tapan Nayak");
+    metadata->SetResponsible("prino@to.infn.it");
+    metadata->SetComment("Default mean vertex position");
     metadata->SetAliRootVersion(alirootv);
     metadata->SetComment(Form("Default trigger description produced with root version %s and AliRoot version %s",rootv,alirootv));
   }
 
   Printf("Storing in CDB the default trigger description produced with root version %s and AliRoot version %s",rootv,alirootv);
 
-  Double_t position[3] = {0.0,0.0,0.0};
-  Double_t sigma[3] = {0.0,0.0,0.0};
-  AliESDVertex *vertex = new AliESDVertex(position,sigma,"Default");
-  vertex->Print();
+  Double_t resolx=35./10000.;
+  Double_t resoly=35./10000.;
+  Double_t sigma[3],position[3];
+  position[0]=xmed;
+  position[1]=ymed;
+  position[2]=0.;
+  sigma[0]=TMath::Sqrt(sigx*sigx+resolx*resolx);
+  sigma[1]=TMath::Sqrt(sigy*sigy+resoly*resoly);
+  sigma[2]=sigz;
+
+  AliESDVertex *vertex = new AliESDVertex(position,sigma,"vtxmean");
+  vertex->PrintStatus();
 
   man->Put(vertex,id,metadata);
 }