]>
Commit | Line | Data |
---|---|---|
66e811e2 | 1 | /************************************************************************** |
2 | * Copyright(c) 1998-2003, ALICE Experiment at CERN, All rights reserved. * | |
3 | * * | |
4 | * Author: The ALICE Off-line Project. * | |
5 | * Contributors are mentioned in the code where appropriate. * | |
6 | * * | |
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 | **************************************************************************/ | |
15 | ||
16 | //----------------------------------------------------------------- | |
17 | // Implementation of the Secondary Vertex class | |
18 | // This class contains the Secondary Vertex | |
19 | // of a set of tracks | |
20 | // Origin: F.Prino, Torino, prino@to.infn.it | |
21 | //----------------------------------------------------------------- | |
22 | ||
23 | #include "AliITSSimpleVertex.h" | |
24 | ||
25 | ||
26 | ClassImp(AliITSSimpleVertex) | |
27 | ||
28 | //-------------------------------------------------------------------------- | |
29 | AliITSSimpleVertex::AliITSSimpleVertex() { | |
30 | // | |
31 | // Default Constructor, set everything to 0 | |
32 | // | |
33 | for(Int_t k=0;k<3;k++) fPosition[k] = 0; | |
34 | fSigma = 0; | |
35 | fNContributors=0; | |
36 | } | |
37 | ||
38 | //-------------------------------------------------------------------------- | |
39 | AliITSSimpleVertex::AliITSSimpleVertex(Double_t position[3],Double_t dispersion, | |
40 | Int_t nContributors) { | |
41 | ||
42 | ||
43 | // | |
44 | // Constructor for vertex Z from pixels | |
45 | // | |
46 | ||
47 | for(Int_t k=0;k<3;k++) fPosition[k] = position[k]; | |
48 | fSigma = dispersion; | |
49 | fNContributors = nContributors; | |
50 | ||
51 | } | |
52 | ||
53 | ||
54 | //-------------------------------------------------------------------------- | |
55 | AliITSSimpleVertex::~AliITSSimpleVertex() { | |
56 | // | |
57 | // Default Destructor | |
58 | // | |
59 | ||
60 | } | |
61 | //-------------------------------------------------------------------------- | |
62 | void AliITSSimpleVertex::GetXYZ(Double_t position[3]) const { | |
63 | // | |
64 | // Return position of the vertex in global frame | |
65 | // | |
66 | position[0] = fPosition[0]; | |
67 | position[1] = fPosition[1]; | |
68 | position[2] = fPosition[2]; | |
69 | ||
70 | return; | |
71 | } | |
72 | //-------------------------------------------------------------------------- | |
73 | void AliITSSimpleVertex::Print(Option_t* /*option*/) const { | |
74 | // | |
75 | // Print out information on all data members | |
76 | // | |
77 | printf("Secondary vertex position:\n"); | |
78 | printf(" x = %f\n",fPosition[0]); | |
79 | printf(" y = %f\n",fPosition[1]); | |
80 | printf(" z = %f\n",fPosition[2]); | |
81 | printf(" Dispersion = %f\n",fSigma); | |
82 | printf(" # tracks = %d\n",fNContributors); | |
83 | ||
84 | return; | |
85 | } | |
86 | ||
87 | ||
88 | ||
89 |