Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoCorrFuncPt.cxx
1/*
2 * CorrFuncCollectionPt.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 "FemtoCorrFuncPt.h"
11
12#include "Array.h"
13#include "Cout.h"
14#include "DividedHisto.h"
15#include "FemtoPair.h"
16#include "ObjectMatrix.h"
17#include "Std.h"
18
19#include <RtypesCore.h>
20#include <TMath.h>
21#include <TString.h>
22#include <initializer_list>
23
24
25namespace Hal {
26
27 Double_t FemtoCorrFuncPt::GetPairValNum(Hal::FemtoPair* pair) const {
28 Double_t pt1 = pair->GetPx1() * pair->GetPx1() + pair->GetPy1() * pair->GetPy1();
29 Double_t pt2 = pair->GetPx2() * pair->GetPx2() + pair->GetPy2() * pair->GetPy2();
30 return TMath::Sqrt(pt1) + TMath::Sqrt(pt2);
31 }
32
33 FemtoCorrFuncPt::FemtoCorrFuncPt(const DividedHisto1D& h, const std::initializer_list<double>& init, Int_t bins) :
34 FemtoCorrFunc1D(h, init, bins, "pT", "p_{Tsum} [GeV/c]", "dN/dp_{T}") {}
35
36
37} // namespace Hal
Double_t GetPy1() const
Definition FemtoPair.h:237
Double_t GetPy2() const
Definition FemtoPair.h:262
Double_t GetPx2() const
Definition FemtoPair.h:257
Double_t GetPx1() const
Definition FemtoPair.h:232