Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCorrFuncKt.cxx
1
/*
2
* CorrFuncCollectionKt.cxx
3
*
4
* Created on: 4 lip 2019
5
* Author: Daniel Wielanek
6
* E-mail: daniel.wielanek@gmail.com
7
* Warsaw University of Technology, Faculty of Physics
8
*/
9
10
#include "FemtoCorrFuncKt.h"
11
12
#include "Array.h"
13
#include "Cout.h"
14
#include "DividedHisto.h"
15
#include "FemtoPair.h"
16
#include "HtmlCore.h"
17
#include "HtmlFile.h"
18
#include "ObjectMatrix.h"
19
#include "Std.h"
20
21
#include <TCanvas.h>
22
#include <TH1.h>
23
#include <TMath.h>
24
#include <TROOT.h>
25
#include <TString.h>
26
#include <initializer_list>
27
28
#include <iostream>
29
30
namespace
Hal
{
31
FemtoCorrFuncKt::FemtoCorrFuncKt(
const
DividedHisto1D
& h,
const
std::initializer_list<double>& init, Int_t ktBins) :
32
FemtoCorrFunc1D
(h, init, ktBins,
"kT"
,
"k_{T} [GeV/c]"
,
"k_{T} [GeV/c];N_{pairs}"
) {}
33
34
Double_t FemtoCorrFuncKt::GetPairValDenRot(
Hal::FemtoPair
* pair)
const
{
35
Double_t px = pair->
GetPx1
() - pair->
GetPx2
();
36
Double_t py = pair->
GetPy1
() - pair->
GetPy2
();
37
return
TMath::Sqrt(px * px + py * py) * 0.5;
38
}
39
40
Double_t FemtoCorrFuncKt::GetPairValDenHemi(
Hal::FemtoPair
* pair)
const
{
41
Double_t px = pair->
GetPx1
() - pair->
GetPx2
();
42
Double_t py = pair->
GetPy1
() - pair->
GetPy2
();
43
return
TMath::Sqrt(px * px + py * py) * 0.5;
44
}
45
46
Double_t FemtoCorrFuncKt::GetPairValNum(
Hal::FemtoPair
* pair)
const
{
47
Double_t px = pair->
GetPx1
() + pair->
GetPx2
();
48
Double_t py = pair->
GetPy1
() + pair->
GetPy2
();
49
return
TMath::Sqrt(px * px + py * py) * 0.5;
50
}
51
52
}
// namespace Hal
Hal::DividedHisto1D
Definition
DividedHisto.h:31
Hal::FemtoCorrFunc1D
Definition
FemtoCorrFunc1D.h:17
Hal::FemtoPair
Definition
FemtoPair.h:28
Hal::FemtoPair::GetPy1
Double_t GetPy1() const
Definition
FemtoPair.h:237
Hal::FemtoPair::GetPy2
Double_t GetPy2() const
Definition
FemtoPair.h:262
Hal::FemtoPair::GetPx2
Double_t GetPx2() const
Definition
FemtoPair.h:257
Hal::FemtoPair::GetPx1
Double_t GetPx1() const
Definition
FemtoPair.h:232
Hal
Definition
EventAnaChain.cxx:28
analysis
femto
base
corrfunc
FemtoCorrFuncKt.cxx
Generated on Wed Oct 23 2024 15:07:50 for Heavy ion Analysis Libriares by
1.12.0