1 /**************************************************************************
2 * Copyright(c) 1998-1999, 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 **************************************************************************/
20 ///////////////////////////////////////////////////////////////////////////
21 // Class Ali4VectorObj
22 // Handling of Lorentz 4-vectors in various reference frames.
24 // This class is meant to provide an Ali4Vector object which is derived
25 // from TObject such that it can be stored in e.g. TObjArray etc...
26 // and that it can be written out using the ROOT I/O machinery.
31 // Float_t a[4]={5,1,2,3};
32 // Float_t ea[4]={0.05,0.01,0.02,0.03};
33 // Float_t b[4]={10,4,5,6};
34 // Float_t eb[4]={0.1,0.04,0.05,0.06};
38 // v.SetVector(a,"car");
39 // v.SetErrors(ea,"car");
40 // w.SetVector(b,"car");
41 // w.SetErrors(eb,"car");
43 // Ali4Vector add=v+w;
45 // Ali4Vector sub=v-w;
47 // Ali4VectorObj vec1(add);
49 // Ali4VectorObj vec2;
55 //--- Author: Nick van Eijndhoven 18-oct-1999 UU-SAP Utrecht
56 ///////////////////////////////////////////////////////////////////////////
58 #include "Ali4VectorObj.h"
60 ClassImp(Ali4VectorObj) // Class implementation to enable ROOT I/O
62 Ali4VectorObj::Ali4VectorObj()
64 // Creation of an Ali4VectorObj object and initialisation of parameters.
65 // All attributes initialised to 0.
67 ///////////////////////////////////////////////////////////////////////////
68 Ali4VectorObj::Ali4VectorObj(Ali4Vector& q)
70 // Creation of an Ali3VectorObj object and initialisation of parameters.
71 // All attributes are initialised to the values of the input Ali3Vector.
74 ///////////////////////////////////////////////////////////////////////////
75 Ali4VectorObj::~Ali4VectorObj()
77 // Destructor to delete dynamically allocated memory.
79 ///////////////////////////////////////////////////////////////////////////
80 void Ali4VectorObj::Load(Ali4Vector& q)
82 // Load all attributes of the input Ali4Vector into this Ali4VectorObj object.
83 Int_t temp1=q.GetScalarFlag();
84 Double_t temp2=q.GetResultError();
93 ///////////////////////////////////////////////////////////////////////////