]> git.uio.no Git - u/mrichter/AliRoot.git/blob - RALICE/AliPosition.cxx
Introduction of the Copyright and cvs Log
[u/mrichter/AliRoot.git] / RALICE / AliPosition.cxx
1 /**************************************************************************
2  * Copyright(c) 1998-1999, 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 $Log$
18 */
19
20 #include "AliPosition.h"
21  
22 ClassImp(AliPosition) // Class implementation to enable ROOT I/O
23  
24 AliPosition::AliPosition()
25 {
26 // Creation of an AliPosition object and initialisation of parameters
27 }
28 ///////////////////////////////////////////////////////////////////////////
29 AliPosition::~AliPosition()
30 {
31 // Destructor to delete dynamically allocated memory
32 }
33 ///////////////////////////////////////////////////////////////////////////
34 void AliPosition::SetPosition(Double_t* r,TString f)
35 {
36 // Store position according to reference frame f
37  SetVector(r,f);
38 }
39 ///////////////////////////////////////////////////////////////////////////
40 void AliPosition::GetPosition(Double_t* r,TString f)
41 {
42 // Provide position according to reference frame f
43  GetVector(r,f);
44 }
45 ///////////////////////////////////////////////////////////////////////////
46 void AliPosition::SetPosition(Float_t* r,TString f)
47 {
48 // Store position according to reference frame f
49  SetVector(r,f);
50 }
51 ///////////////////////////////////////////////////////////////////////////
52 void AliPosition::GetPosition(Float_t* r,TString f)
53 {
54 // Provide position according to reference frame f
55  GetVector(r,f);
56 }
57 ///////////////////////////////////////////////////////////////////////////
58 AliPosition& AliPosition::GetPosition()
59 {
60 // Provide position
61  return (*this);
62 }
63 ///////////////////////////////////////////////////////////////////////////
64 void AliPosition::SetPosition(Ali3Vector& r)
65 {
66 // Set position
67  Double_t a[3];
68  r.GetVector(a,"sph");
69  SetVector(a,"sph");
70 }
71 ///////////////////////////////////////////////////////////////////////////