4 #include "KVQuadMoment.h"
52 for (
int i = 0; i < 3; ++i) {
53 for (
int j = 0; j < 3; ++j) {
54 CastedObj.matrix[i][j] = matrix[i][j];
63 void KVQuadMoment::init_KVQuadMoment(
void)
65 SetNameIndex(
"Qzz", 0);
66 SetNameIndex(
"Qxx", 1);
67 SetNameIndex(
"Qyy", 2);
84 for (
int i = 0; i < 3; i++)
for (
int j = 0; j < 3; j++) matrix[i][j] = 0.;
92 void KVQuadMoment::fill(
const KVNucleus* c)
98 for (
int i = 0; i < 3; i++) {
99 for (
int j = i; j < 3; j++) {
100 if (i == j) matrix[i][j] += 3.*P(i) * P(j) - P2;
Description of properties and kinematics of atomic nuclei.
Quadrupole moment tensor of particle momenta.
KVQuadMoment()
Default constructor.
void Reset(void) override
void Copy(TObject &obj) const override
Base class for all global variable implementations.
void Copy(TObject &obj) const override