]>
Commit | Line | Data |
---|---|---|
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 | // $Id$ | |
17 | ||
18 | /////////////////////////////////////////////////////////////////////////// | |
19 | // Class Ali3VectorObj | |
20 | // Handling of 3-vectors in various reference frames. | |
21 | // | |
22 | // This class is meant to provide an Ali3Vector object which is derived | |
23 | // from TObject such that it can be stored in e.g. TObjArray etc... | |
24 | // and that it can be written out using the ROOT I/O machinery. | |
25 | // | |
26 | // Example : | |
27 | // ========= | |
28 | // | |
29 | // Float_t a[3]={1,2,3}; | |
30 | // Float_t ea[3]={0.01,0.02,0.03}; | |
31 | // Float_t b[3]={4,5,6}; | |
32 | // Float_t eb[3]={0.04,0.05,0.06}; | |
33 | // | |
34 | // Ali3Vector v,w; | |
35 | // | |
36 | // v.SetVector(a,"car"); | |
37 | // v.SetErrors(ea,"car"); | |
38 | // w.SetVector(b,"car"); | |
39 | // w.SetErrors(eb,"car"); | |
40 | // | |
41 | // Ali3Vector cross=v.Cross(w); | |
42 | // | |
43 | // Ali3Vector add=v+w; | |
44 | // | |
45 | // Ali3VectorObj vec1(cross); | |
46 | // | |
47 | // Ali3VectorObj vec2; | |
48 | // vec2.Load(add); | |
49 | // | |
50 | // vec1.Data(); | |
51 | // vec2.Data(); | |
52 | // | |
53 | //--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht | |
54 | //- Modified: NvE $Date$ UU-SAP Utrecht | |
55 | /////////////////////////////////////////////////////////////////////////// | |
56 | ||
57 | #include "Ali3VectorObj.h" | |
58 | ||
59 | ClassImp(Ali3VectorObj) // Class implementation to enable ROOT I/O | |
60 | ||
61 | Ali3VectorObj::Ali3VectorObj() : TObject(),Ali3Vector() | |
62 | { | |
63 | // Default constructor | |
64 | // Creation of an Ali3VectorObj object and initialisation of parameters. | |
65 | // All attributes initialised to 0. | |
66 | } | |
67 | /////////////////////////////////////////////////////////////////////////// | |
68 | Ali3VectorObj::Ali3VectorObj(Ali3Vector& q) : TObject(),Ali3Vector(q) | |
69 | { | |
70 | // Creation of an Ali3VectorObj object and initialisation of parameters. | |
71 | // All attributes are initialised to the values of the input Ali3Vector. | |
72 | } | |
73 | /////////////////////////////////////////////////////////////////////////// | |
74 | Ali3VectorObj::~Ali3VectorObj() | |
75 | { | |
76 | // Destructor to delete dynamically allocated memory. | |
77 | } | |
78 | /////////////////////////////////////////////////////////////////////////// | |
79 | Ali3VectorObj::Ali3VectorObj(Ali3VectorObj& v) : TObject(v),Ali3Vector(v) | |
80 | { | |
81 | // Copy constructor | |
82 | } | |
83 | /////////////////////////////////////////////////////////////////////////// |