KaliVeda
Toolkit for HIC analysis
Loading...
Searching...
No Matches
KVPtot.h
1#ifndef KVPtot_h
2#define KVPtot_h
3#include "KVVGVectorSum.h"
4
12class KVPtot: public KVVGVectorSum {
13
14protected:
15 void fill(const KVNucleus* n)
16 {
17 Add(n->GetMomentum());
18 }
19
20public:
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)
Global variable calculating sum of 3-dimensional vectors.
const Int_t n