///////////////////////////////////////////////////////////////////////////
#include "AliBoost.h"
+#include "Riostream.h"
ClassImp(AliBoost) // Class implementation to enable ROOT I/O
-AliBoost::AliBoost()
+AliBoost::AliBoost() : TObject()
{
// Creation of a Lorentz boost object and initialisation of parameters.
// Beta is set to (0,0,0) and consequently Gamma=1.
// Default destructor.
}
///////////////////////////////////////////////////////////////////////////
-void AliBoost::SetBeta(Ali3Vector b)
+AliBoost::AliBoost(const AliBoost& b) : TObject(b)
+{
+// Copy constructor
+ fBeta=b.fBeta;
+ fGamma=b.fGamma;
+ fDgamma=b.fDgamma;
+ fDresult=b.fDresult;
+}
+///////////////////////////////////////////////////////////////////////////
+void AliBoost::SetBeta(Ali3Vector& b)
{
// Setting of boost parameters on basis of beta 3-vector.
// The errors on the beta 3-vector are taken from the input 3-vector.
}
}
///////////////////////////////////////////////////////////////////////////
-Ali3Vector AliBoost::GetBetaVector()
+Ali3Vector AliBoost::GetBetaVector() const
{
// Provide the beta 3-vector.
return fBeta;
return fGamma;
}
///////////////////////////////////////////////////////////////////////////
-Double_t AliBoost::GetResultError()
+Double_t AliBoost::GetResultError() const
{
// Provide the error on the result of an operation yielding a scalar.
// E.g. GetBeta() or GetGamma()