]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - RALICE/AliBoost.cxx
New class. Set and Get trigger board strip positions from mapping
[u/mrichter/AliRoot.git] / RALICE / AliBoost.cxx
index fd3ba14fecfdb6c45e202247d69e9ef02a15c32f..52519aa1062bbf0d03e8f515a74324a91220e7f9 100644 (file)
 ///////////////////////////////////////////////////////////////////////////
 
 #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. 
@@ -80,7 +81,16 @@ AliBoost::~AliBoost()
 // 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.
@@ -131,7 +141,7 @@ void AliBoost::Set4Momentum(Ali4Vector& p)
  }
 }
 ///////////////////////////////////////////////////////////////////////////
-Ali3Vector AliBoost::GetBetaVector()
+Ali3Vector AliBoost::GetBetaVector() const
 {
 // Provide the beta 3-vector.
  return fBeta;
@@ -154,7 +164,7 @@ Double_t AliBoost::GetGamma()
  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()