KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVPtot.h
Go to the documentation of this file.
1 #ifndef KVPtot_h
2 #define KVPtot_h
3 #include "KVVGVectorSum.h"
4 
11 class KVPtot: public KVVGVectorSum {
12 
13 protected:
14  void fill(const KVNucleus* n)
15  {
16  Add(n->GetMomentum());
17  }
18 
19 public:
20  KVPtot() : KVVGVectorSum("KVPtot") {}
21  KVPtot(const Char_t* name) : KVVGVectorSum(name) {}
22  virtual ~KVPtot() {}
23 
24  ClassDef(KVPtot, 1) //Sum of particle momenta
25 };
26 #endif
char Char_t
#define ClassDef(name, id)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:125
Sum of particle momenta.
Definition: KVPtot.h:11
virtual ~KVPtot()
Definition: KVPtot.h:22
KVPtot(const Char_t *name)
Definition: KVPtot.h:21
KVPtot()
Definition: KVPtot.h:20
void fill(const KVNucleus *n)
Definition: KVPtot.h:14
void Add(const TVector3 &obj)
Definition: KVVGObjectSum.h:27
Global variable calculating sum of 3-dimensional vectors.
Definition: KVVGVectorSum.h:25
const Int_t n