KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVKinematicalFrame.h
Go to the documentation of this file.
1 
4 #ifndef __KVKINEMATICALFRAME_H
5 #define __KVKINEMATICALFRAME_H
6 
7 #include "TNamed.h"
8 #include "KVParticle.h"
9 #include "KVFrameTransform.h"
10 
21 class KVKinematicalFrame : public TNamed {
23  unique_ptr<KVParticle> fParticle;
24 
25 public:
26  KVKinematicalFrame(const Char_t* name, const KVParticle* original, const KVFrameTransform& trans);
28  KVKinematicalFrame(const KVFrameTransform& trans, const KVParticle* original);
31  virtual ~KVKinematicalFrame() {}
32 
34  {
35  return fParticle.get();
36  }
37  const KVParticle* operator->() const
38  {
39  return (const KVParticle*)GetParticle();
40  }
41  void ReapplyTransform(const KVParticle* original);
42  void ApplyTransform(const KVParticle* original, const KVFrameTransform& trans);
43 
45  {
46  return fTransform;
47  }
49  {
50  fTransform = f;
51  }
52 
53  ClassDef(KVKinematicalFrame, 0) //Handle representation of a particle in different kinematical frames
54 };
55 
56 #endif
#define f(i)
char Char_t
#define ClassDef(name, id)
Utility class for kinematical transformations of KVParticle class.
Kinematical representation of a particle in different reference frames.
unique_ptr< KVParticle > fParticle
kinematically transformed particle
KVParticle * GetParticle() const
KVKinematicalFrame & operator=(const KVKinematicalFrame &)
Assignment operator required for rootcint (not rootcling)
KVFrameTransform fTransform
kinematical transform wrt 'parent' frame
void ReapplyTransform(const KVParticle *original)
Apply stored kinematical transformation to the particle.
KVKinematicalFrame(const Char_t *name, const KVParticle *original, const KVFrameTransform &trans)
const KVParticle * operator->() const
void ApplyTransform(const KVParticle *original, const KVFrameTransform &trans)
Apply new kinematical transformation to the particle and update all subframes.
const KVFrameTransform & GetTransform() const
void SetTransform(const KVFrameTransform &f)
Base class for relativistic kinematics of massive particles.
Definition: KVParticle.h:398