]> git.uio.no Git - u/mrichter/AliRoot.git/blame - RALICE/AliBoost.h
fix for bug #66294
[u/mrichter/AliRoot.git] / RALICE / AliBoost.h
CommitLineData
d88f97cc 1#ifndef ALIBOOST_H
2#define ALIBOOST_H
3da30618 3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
f531a546 6// $Id$
3da30618 7
d88f97cc 8#include <math.h>
9
10#include "TObject.h"
11
12#include "Ali4Vector.h"
13
14class AliBoost : public TObject
15{
16 public:
17 AliBoost(); // Default constructor
c72198f1 18 virtual ~AliBoost(); // Default destructor
261c0caf 19 AliBoost(const AliBoost& b); // Copy constructor
c72198f1 20 void SetBeta(Ali3Vector& b); // Set boost parameters by beta 3-vector
d88f97cc 21 void Set4Momentum(Ali4Vector& p); // Set boost parameters by 4-momentum
261c0caf 22 Ali3Vector GetBetaVector() const; // Provide the beta 3-vector
d88f97cc 23 Double_t GetBeta(); // Provide norm of beta 3-vector
24 Double_t GetGamma(); // Provide gamma value
84bb7c66 25 void Data(TString f="car"); // Print boost parameter info in coord. frame f
d88f97cc 26 Ali4Vector Boost(Ali4Vector& v); // Perform Lorentz boost on 4-vector v
27 Ali4Vector Inverse(Ali4Vector& v); // Perform inverse Lorentz boost on 4-vector v
261c0caf 28 Double_t GetResultError() const; // Provide error on scalar result
d88f97cc 29
30 protected:
d0120ca2 31 Ali3Vector fBeta; // The beta 3-vector
32 Double32_t fGamma; // The gamma factor
33 Double32_t fDgamma; // Error on the gamma value
34 Double32_t fDresult; //! Error on scalar result
d88f97cc 35
d0120ca2 36 ClassDef(AliBoost,5) // Perform various Lorentz transformations.
d88f97cc 37};
38#endif