NCFS-Pack
A generic (astro)particle physics analysis framework
 
Loading...
Searching...
No Matches
Nc4VectorObj Class Reference

Handling of Lorentz 4-vectors in various reference frames. More...

#include "Nc4VectorObj.h"

Inheritance diagram for Nc4VectorObj:
Nc4Vector

Detailed Description

Handling of Lorentz 4-vectors in various reference frames.


Copyright(c) 1999 NCFS/IIHE, All Rights Reserved. *
*
Authors: The Netherlands Center for Fundamental Studies (NCFS). *
The Inter-university Institute for High Energies (IIHE). *
Website : http://www.iihe.ac.be *
Contact : Nick van Eijndhoven (nickve.nl@gmail.com) *
*
Contributors are mentioned in the code where appropriate. *
*
No part of this software may be used, copied, modified or distributed *
by any means nor transmitted or translated into machine language for *
commercial purposes without written permission by the IIHE representative. *
Permission to use the software strictly for non-commercial purposes *
is hereby granted without fee, provided that the above copyright notice *
appears in all copies and that both the copyright notice and this *
permission notice appear in the supporting documentation. *
This software is provided "as is" without express or implied warranty. *
The authors make no claims that this software is free of error, or is *
consistent with any particular standard of merchantability, or that it *
will meet your requirements for any particular application, other than *
indicated in the corresponding documentation. *
This software should not be relied on for solving a problem whose *
incorrect solution could result in injury to a person or loss of property. *
If you do use this software in such a manner, it is at your own risk. *
The authors disclaim all liability for direct or consequential damage *
resulting from your use of this software. *

// Class Nc4VectorObj
// Handling of Lorentz 4-vectors in various reference frames.
//
// This class is meant to provide an Nc4Vector object which is derived
// from TObject such that it can be stored in e.g. TObjArray etc...
// and that it can be written out using the ROOT I/O machinery.
//
// Example :
// =========
//
// Float_t a[4]={5,1,2,3};
// Float_t ea[4]={0.05,0.01,0.02,0.03};
// Float_t b[4]={10,4,5,6};
// Float_t eb[4]={0.1,0.04,0.05,0.06};
//
// Nc4Vector v,w;
//
// v.SetVector(a,"car");
// v.SetErrors(ea,"car");
// w.SetVector(b,"car");
// w.SetErrors(eb,"car");
//
// Nc4Vector add=v+w;
//
// Nc4Vector sub=v-w;
//
// Nc4VectorObj vec1(add);
//
// Nc4VectorObj vec2;
// vec2.Load(sub);
//
// vec1.Data();
// vec2.Data();
//
//--- Author: Nick van Eijndhoven 18-oct-1999 Utrecht University
//- Modified: NvE $Date: 2011-02-18 11:24:15 +0100 (Fri, 18 Feb 2011) $ NCFS

Definition at line 12 of file Nc4VectorObj.h.

Public Member Functions

 Nc4VectorObj ()
 
 Nc4VectorObj (Nc4Vector &q)
 
 Nc4VectorObj (Nc4VectorObj &q)
 
virtual ~Nc4VectorObj ()
 
- Public Member Functions inherited from Nc4Vector
 Nc4Vector ()
 
 Nc4Vector (const Nc4Vector &v)
 
virtual ~Nc4Vector ()
 
virtual void Data (TString f="car", TString u="rad")
 
Double_t Dot (Nc4Vector &q)
 
Nc3Vector Get3Vector () const
 
Double_t GetBeta ()
 
Nc3Vector GetBetaVector () const
 
void GetErrors (Double_t *v, TString f, TString u="rad")
 
void GetErrors (Float_t *v, TString f, TString u="rad")
 
Double_t GetGamma ()
 
Double_t GetInvariant ()
 
virtual Double_t GetOpeningAngle (Nc3Vector &q, TString u="rad")
 
virtual Double_t GetOpeningAngle (Nc4Vector &q, TString u="rad")
 
Double_t GetPseudoRapidity ()
 
Double_t GetResultError () const
 
Double_t GetScalar ()
 
Int_t GetScalarFlag () const
 
NcSignalGetUserData () const
 
Nc3Vector GetVecLong () const
 
void GetVector (Double_t *v, TString f, TString u="rad")
 
void GetVector (Float_t *v, TString f, TString u="rad")
 
Nc3Vector GetVecTrans () const
 
Double_t GetX (Int_t i, TString f, TString u="rad")
 
Int_t HasErrors () const
 
Int_t HasVector () const
 
virtual void Load (Nc4Vector &q)
 
Nc4Vector operator* (Double_t s)
 
Nc4Vectoroperator*= (Double_t s)
 
Nc4Vector operator+ (Nc4Vector &q)
 
Nc4Vectoroperator+= (Nc4Vector &q)
 
Nc4Vector operator- (Nc4Vector &q)
 
Nc4Vectoroperator-= (Nc4Vector &q)
 
Nc4Vector operator/ (Double_t s)
 
Nc4Vectoroperator/= (Double_t s)
 
Nc4Vectoroperator= (const Nc4Vector &q)
 
void Set3Vector (Double_t *v, TString f, TString u="rad")
 
void Set3Vector (Double_t v1, Double_t v2, Double_t v3, TString f, TString u="rad")
 
void Set3Vector (Float_t *v, TString f, TString u="rad")
 
void Set3Vector (Nc3Vector &v)
 
void SetErrors (Double_t *v, TString f, TString u="rad")
 
void SetErrors (Double_t e0, Double_t e1, Double_t e2, Double_t e3, TString f, TString u="rad")
 
void SetErrors (Float_t *v, TString f, TString u="rad")
 
void SetInvariant (Double_t v2, Double_t dv2=0)
 
void SetInvariantError (Double_t dv2)
 
void SetScalar (Double_t v0, Double_t dv0=0)
 
void SetScalarError (Double_t dv0)
 
void SetUserData (NcSignal &s)
 
void SetUserData (NcSignal *s)
 
void SetVector (Double_t *v, TString f, TString u="rad")
 
void SetVector (Double_t v0, Double_t v1, Double_t v2, Double_t v3, TString f, TString u="rad")
 
void SetVector (Double_t v0, Nc3Vector &v)
 
void SetVector (Float_t *v, TString f, TString u="rad")
 
virtual void SetZero ()
 

Additional Inherited Members

- Protected Member Functions inherited from Nc4Vector
Double_t GetScaLong ()
 
Double_t GetScaTrans ()
 
- Protected Attributes inherited from Nc4Vector
Double32_t fDresult
 ! The error on the scalar result of an operation (e.g. dotproduct)
 
Double32_t fDv0
 
Double32_t fDv2
 
Int_t fScalar
 
NcSignalfUser
 
Nc3Vector fV
 
Double32_t fV0
 
Double32_t fV2
 

Constructor & Destructor Documentation

◆ Nc4VectorObj() [1/3]

Nc4VectorObj::Nc4VectorObj ( )
// Default constructor.
// Creation of an Nc4VectorObj object and initialisation of parameters.
// All attributes initialised to 0.

Definition at line 80 of file Nc4VectorObj.cxx.

◆ Nc4VectorObj() [2/3]

Nc4VectorObj::Nc4VectorObj ( Nc4Vector & q)
// Creation of an Nc4VectorObj object and initialisation of parameters.
// All attributes are initialised to the values of the input Nc4Vector.

Definition at line 91 of file Nc4VectorObj.cxx.

◆ ~Nc4VectorObj()

Nc4VectorObj::~Nc4VectorObj ( )
virtual
// Destructor to delete dynamically allocated memory.

Definition at line 101 of file Nc4VectorObj.cxx.

◆ Nc4VectorObj() [3/3]

Nc4VectorObj::Nc4VectorObj ( Nc4VectorObj & q)
// Copy constructor.

Definition at line 110 of file Nc4VectorObj.cxx.


The documentation for this class was generated from the following files: