Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCorrFuncY.cxx
1/*
2 * FemtoCorrFuncY.cxx
3 *
4 * Created on: 25 cze 2023
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "FemtoCorrFuncY.h"
10
11#include "Cout.h"
12#include "FemtoPair.h"
13
14#include <TCanvas.h>
15#include <TROOT.h>
16
17namespace Hal {
18
19 FemtoCorrFuncY::FemtoCorrFuncY(const DividedHisto1D& h, const std::initializer_list<double>& init, Int_t yBins) :
20 FemtoCorrFunc1D(h, init, yBins, "Y_{pair}", "Y_{pair} ", "N_{pairs}") {}
21
22 Double_t FemtoCorrFuncY::GetPairValNum(FemtoPair* pair) const {
23 Double_t e1 = pair->GetE1();
24 Double_t e2 = pair->GetE2();
25 Double_t pz1 = pair->GetPz1();
26 Double_t pz2 = pair->GetPz2();
27 Double_t E = e1 + e2;
28 Double_t Pz = pz1 + pz2;
29 return 0.5 * TMath::Log((E + Pz) / (E - Pz));
30 }
31
32 Double_t FemtoCorrFuncY::GetPairValDenRot(FemtoPair* pair) const { return GetPairValNum(pair); }
33
34 Double_t FemtoCorrFuncY::GetPairValDenHemi(FemtoPair* pair) const {
35 Double_t e1 = pair->GetE1();
36 Double_t e2 = pair->GetE2();
37 Double_t pz1 = pair->GetPz1();
38 Double_t pz2 = pair->GetPz2();
39 Double_t E = e1 + e2;
40 Double_t Pz = pz1 - pz2;
41 return 0.5 * TMath::Log((E + Pz) / (E - Pz));
42 }
43
44 FemtoCorrFuncY::FemtoCorrFuncY(const FemtoCorrFuncY& other) : FemtoCorrFunc1D(other) {}
45
46} // namespace Hal