Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoSHSlice.cxx
1/*
2 * FemtoSHSlice.cxx
3 *
4 * Created on: 24 sie 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "FemtoSHSlice.h"
10
11#include "FemtoSHCF.h"
12
13#include <TH1D.h>
14#include <iostream>
15
16namespace Hal {
17
18 FemtoSHSlice::FemtoSHSlice(Int_t L) : fMaxJM((L + 1) * (L + 1)) {
19 fCFImag.resize(fMaxJM);
20 fCFReal.resize(fMaxJM);
21 fCFImagE.resize(fMaxJM);
22 fCFRealE.resize(fMaxJM);
23 fNumReal.resize(fMaxJM);
24 fNumImag.resize(fMaxJM);
25 fDenReal.resize(fMaxJM);
26 fDenImag.resize(fMaxJM);
27 fNumRealE.resize(fMaxJM);
28 fNumImagE.resize(fMaxJM);
29 fDenRealE.resize(fMaxJM);
30 fDenImagE.resize(fMaxJM);
31 fCovCF.MakeBigger(fMaxJM * 2, fMaxJM * 2);
32 fCovNum.MakeBigger(fMaxJM * 2, fMaxJM * 2);
33 fCovDen.MakeBigger(fMaxJM * 2, fMaxJM * 2);
34 }
35
36 void FemtoSHSlice::BuildSlice(FemtoSHCF& cf, Int_t bin) {
37 for (int i = 0; i < fMaxJM; i++) {
38 fNumReal[i] = cf.fNumReal[i]->GetBinContent(bin);
39 fDenReal[i] = cf.fDenReal[i]->GetBinContent(bin);
40 fNumImag[i] = cf.fNumImag[i]->GetBinContent(bin);
41 fDenImag[i] = cf.fDenImag[i]->GetBinContent(bin);
42 fNumRealE[i] = cf.fNumReal[i]->GetBinError(bin);
43 fDenRealE[i] = cf.fDenReal[i]->GetBinError(bin);
44 fNumImagE[i] = cf.fNumImag[i]->GetBinError(bin);
45 fDenImagE[i] = cf.fDenImag[i]->GetBinError(bin);
46 }
47
48 for (int ilmzero = 0; ilmzero < 2 * fMaxJM; ilmzero++)
49 for (int ilmprim = 0; ilmprim < 2 * fMaxJM; ilmprim++) {
50 fCovNum[ilmzero][ilmprim] = cf.fCovNum[bin - 1][ilmzero][ilmprim];
51 }
52 }
53
54 FemtoSHSlice::~FemtoSHSlice() {}
55
56} /* namespace Hal */