]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliPosition.cxx
This commit was generated by cvs2svn to compensate for changes in r165,
[u/mrichter/AliRoot.git] / RALICE / AliPosition.cxx
1 #include "AliPosition.h"
2  
3 ClassImp(AliPosition) // Class implementation to enable ROOT I/O
4  
5 AliPosition::AliPosition()
6 {
7 // Creation of an AliPosition object and initialisation of parameters
8 }
9 ///////////////////////////////////////////////////////////////////////////
10 AliPosition::~AliPosition()
11 {
12 // Destructor to delete dynamically allocated memory
13 }
14 ///////////////////////////////////////////////////////////////////////////
15 void AliPosition::SetPosition(Double_t* r,TString f)
16 {
17 // Store position according to reference frame f
18  SetVector(r,f);
19 }
20 ///////////////////////////////////////////////////////////////////////////
21 void AliPosition::GetPosition(Double_t* r,TString f)
22 {
23 // Provide position according to reference frame f
24  GetVector(r,f);
25 }
26 ///////////////////////////////////////////////////////////////////////////
27 void AliPosition::SetPosition(Float_t* r,TString f)
28 {
29 // Store position according to reference frame f
30  SetVector(r,f);
31 }
32 ///////////////////////////////////////////////////////////////////////////
33 void AliPosition::GetPosition(Float_t* r,TString f)
34 {
35 // Provide position according to reference frame f
36  GetVector(r,f);
37 }
38 ///////////////////////////////////////////////////////////////////////////
39 AliPosition& AliPosition::GetPosition()
40 {
41 // Provide position
42  return (*this);
43 }
44 ///////////////////////////////////////////////////////////////////////////
45 void AliPosition::SetPosition(Ali3Vector& r)
46 {
47 // Set position
48  Double_t a[3];
49  r.GetVector(a,"sph");
50  SetVector(a,"sph");
51 }
52 ///////////////////////////////////////////////////////////////////////////