KaliVeda
Toolkit for HIC analysis
KVPtot.h
1 #ifndef KVPtot_h
2 #define KVPtot_h
3 #include "KVVGVectorSum.h"
4 
12 class KVPtot: public KVVGVectorSum {
13 
14 protected:
15  void fill(const KVNucleus* n)
16  {
17  Add(n->GetMomentum());
18  }
19 
20 public:
21  KVPtot() : KVVGVectorSum("KVPtot") {}
22  KVPtot(const Char_t* name) : KVVGVectorSum(name) {}
23  virtual ~KVPtot() {}
24 
25  ClassDef(KVPtot, 1) //Sum of particle momenta
26 };
27 #endif
char Char_t
#define ClassDef(name, id)
char name[80]
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:126
Sum of particle momenta.
Definition: KVPtot.h:12
virtual ~KVPtot()
Definition: KVPtot.h:23
KVPtot(const Char_t *name)
Definition: KVPtot.h:22
KVPtot()
Definition: KVPtot.h:21
void fill(const KVNucleus *n)
Definition: KVPtot.h:15
void Add(const TVector3 &obj)
Definition: KVVGObjectSum.h:29
Global variable calculating sum of 3-dimensional vectors.
Definition: KVVGVectorSum.h:26
const Int_t n