KaliVeda  1.12/06
Heavy-Ion Analysis Toolkit
KVZVtot.h
Go to the documentation of this file.
1 #ifndef KVZVtot_h
2 #define KVZVtot_h
3 #include "KVVGVectorSum.h"
4 
25 class KVZVtot: public KVVGVectorSum {
26 
27 protected:
28  void fill(const KVNucleus* n)
29  {
30  Add(n->GetZ()*n->GetVelocity());
31  }
32 
33 public:
34  KVZVtot() : KVVGVectorSum("KVZVtot") {}
35  KVZVtot(const Char_t* name) : KVVGVectorSum(name) {}
36  virtual ~KVZVtot() {}
37 
38  ClassDef(KVZVtot, 1) // Global variable ZVtot=Sum(Z(i)*v(i)) (units: cm/ns)
39 };
40 #endif
char Char_t
#define ClassDef(name, id)
Description of properties and kinematics of atomic nuclei.
Definition: KVNucleus.h:125
void Add(const TVector3 &obj)
Definition: KVVGObjectSum.h:27
Global variable calculating sum of 3-dimensional vectors.
Definition: KVVGVectorSum.h:25
Sum of particle pseudo-momentum.
Definition: KVZVtot.h:25
KVZVtot()
Definition: KVZVtot.h:34
KVZVtot(const Char_t *name)
Definition: KVZVtot.h:35
void fill(const KVNucleus *n)
Definition: KVZVtot.h:28
virtual ~KVZVtot()
Definition: KVZVtot.h:36
const Int_t n