9#include "FemtoYlmIndexes.h"
19 if (fEls)
delete[] fEls;
20 if (fEms)
delete[] fEms;
21 if (fElsi)
delete[] fElsi;
22 if (fEmsi)
delete[] fEmsi;
26 if (
this == &other)
return *
this;
27 if (this->fL == other.fL)
return *
this;
33 fL(L), fMaxJM((L + 1) * (L + 1)), fEls(nullptr), fEms(nullptr), fElsi(nullptr), fEmsi(nullptr) {
50 if (fL > 6) {
Cout::PrintInfo(
"Creating YLM for L>6!", EInfo::kError); }
51 fMaxJM = (fL + 1) * (fL + 1);
53 fEls =
new Double_t[fMaxJM];
54 fEms =
new Double_t[fMaxJM];
55 fElsi =
new Int_t[fMaxJM];
56 fEmsi =
new Int_t[fMaxJM];
58 for (
int i = 0; i <= fL; i++) {
59 for (
int j = 0; j < 2 * fL + 1; j++) {
72 fIndexes[el][fL + em] = il;
74 std::cout <<
"il el em " << il <<
" " << fElsi[il] <<
" " << fEmsi[il] << std::endl;
91 for (
int i = 0; i <= fL; i++) {
92 for (
int j = 0; j <= fL; j++) {
107 void FemtoYlmIndexes::Print(Option_t* )
const {
108 std::cout << ClassName() << std::endl;
109 std::cout << Form(
" l m index") << std::endl;
110 for (
int i = 0; i < fMaxJM; i++) {
111 std::cout << Form(
"%4i%4i%4i", fElsi[i], fEmsi[i], i) << std::endl;
113 std::cout <<
"------------" << std::endl;
void MakeBigger(Int_t sizeA, Int_t sizeB)
static void PrintInfo(TString text, Hal::EInfo status)
FemtoYlmIndexes(Int_t L=5)
virtual ~FemtoYlmIndexes()
Int_t GetPadId(Int_t l, Int_t m) const
FemtoYlmIndexes & operator=(const FemtoYlmIndexes &other)