NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
NcBoost.h
Go to the documentation of this file.
1#ifndef NcBoost_h
2#define NcBoost_h
3// Copyright(c) 1996 NCFS/IIHE, All Rights Reserved.
4// See cxx source for full Copyright notice.
5
6// $Id: NcBoost.h 5 2010-03-19 10:10:02Z nickve $
7
8#include <math.h>
9
10#include "TObject.h"
11
12#include "Nc4Vector.h"
13
15
16class NcBoost : public TObject
17{
18 public:
19 NcBoost(); // Default constructor
20 virtual ~NcBoost(); // Default destructor
21 NcBoost(const NcBoost& b); // Copy constructor
22 void SetBeta(Nc3Vector& b); // Set boost parameters by beta 3-vector
23 void Set4Momentum(Nc4Vector& p); // Set boost parameters by 4-momentum
24 Nc3Vector GetBetaVector() const; // Provide the beta 3-vector
25 Double_t GetBeta(); // Provide norm of beta 3-vector
26 Double_t GetGamma(); // Provide gamma value
27 void Data(TString f="car"); // Print boost parameter info in coord. frame f
28 Nc4Vector Boost(Nc4Vector& v); // Perform Lorentz boost on 4-vector v
29 Nc4Vector Inverse(Nc4Vector& v); // Perform inverse Lorentz boost on 4-vector v
30 Double_t GetResultError() const; // Provide error on scalar result
31
32 protected:
33 Nc3Vector fBeta; // The beta 3-vector
34 Double32_t fGamma; // The gamma factor
35 Double32_t fDgamma; // Error on the gamma value
36 Double32_t fDresult;
37
38 ClassDef(NcBoost,1) // Perform various Lorentz transformations.
39};
40#endif
Handling of 3-vectors in various reference frames.
Definition Nc3Vector.h:15
Handling of Lorentz 4-vectors in various reference frames.
Definition Nc4Vector.h:14
void Data(TString f="car")
Definition NcBoost.cxx:237
Double_t GetGamma()
Definition NcBoost.cxx:212
Double_t GetBeta()
Definition NcBoost.cxx:198
Nc3Vector fBeta
Definition NcBoost.h:33
void SetBeta(Nc3Vector &b)
Definition NcBoost.cxx:126
Double32_t fGamma
Definition NcBoost.h:34
Nc4Vector Inverse(Nc4Vector &v)
Definition NcBoost.cxx:325
NcBoost()
Definition NcBoost.cxx:86
Double32_t fDresult
! Error on scalar result
Definition NcBoost.h:36
Double_t GetResultError() const
Definition NcBoost.cxx:225
Nc4Vector Boost(Nc4Vector &v)
Definition NcBoost.cxx:253
virtual ~NcBoost()
Definition NcBoost.cxx:103
void Set4Momentum(Nc4Vector &p)
Definition NcBoost.cxx:154
Double32_t fDgamma
Definition NcBoost.h:35
Nc3Vector GetBetaVector() const
Definition NcBoost.cxx:187