1 /**************************************************************************
2 * Copyright(c) 2007-2009, ALICE Experiment at CERN, All rights reserved. *
4 * Author: The ALICE Off-line Project. *
5 * Contributors are mentioned in the code where appropriate. *
7 * Permission to use, copy, modify and distribute this software and its *
8 * documentation strictly for non-commercial purposes is hereby granted *
9 * without fee, provided that the above copyright notice appears in all *
10 * copies and that both the copyright notice and this permission notice *
11 * appear in the supporting documentation. The authors make no claims *
12 * about the suitability of this software for any purpose. It is *
13 * provided "as is" without express or implied warranty. *
14 **************************************************************************/
16 #include "AliMeanVertex.h"
20 /*****************************************************************************
22 * This class contains the coordinates of the mean primary vertex position *
23 * computed by AliITSMeanVertex *
25 *****************************************************************************/
27 ClassImp(AliMeanVertex)
29 //--------------------------------------------------------------------------
30 AliMeanVertex::AliMeanVertex() :
34 fSigmaOnAverTrack(0.) {
36 // Default Constructor, set everything to 0
38 for(Int_t i=0;i<3;i++){
43 //--------------------------------------------------------------------------
44 AliMeanVertex::AliMeanVertex(Double_t pos[3],Double_t err[3],Double_t cov[6],Int_t nevents, Float_t notracklets, Float_t avertracklets, Float_t signotrackl) :
45 AliESDVertex(pos,cov,0.,nevents,"MeanVertex"),
46 fTotTracklets(notracklets),
47 fAverTracklets(avertracklets),
48 fSigmaOnAverTrack(signotrackl) {
50 // Standard Constructor
52 for(Int_t i=0;i<3;i++){
57 //--------------------------------------------------------------------------
58 void AliMeanVertex::GetErrorsOnPosition(Double_t err[3]) const {
60 // Return errors on vertex average position (weighted mean on several events)