Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoSHCFQinv.cxx
1/*
2 * FemtoSHCFQinv.cxx
3 *
4 * Created on: 1 lip 2022
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#include "FemtoSHCFQinv.h"
10#include "FemtoPair.h"
11
12namespace Hal {
13
14 FemtoSHCFQinv::FemtoSHCFQinv() : FemtoSHCF(), fQinvDist(nullptr) {}
15
16 FemtoSHCFQinv::~FemtoSHCFQinv() {
17 if (fQinvDist) delete fQinvDist;
18 }
19
20 void FemtoSHCFQinv::FastAdd(const FemtoSHCF* obj) {
21 FemtoSHCF::FastAdd(obj);
22 fQinvDist->Add(((FemtoSHCFQinv*) obj)->fQinvDist);
23 }
24
25 FemtoSHCFQinv::FemtoSHCFQinv(TString name, Int_t maxL, Int_t bins, Double_t min, Double_t max, Femto::EKinematics kinematics) :
26 FemtoSHCF(name, maxL, bins, min, max, kinematics), fQinvDist(new TH1D("kv", "kv", bins, min, max)) {}
27
28 void FemtoSHCFQinv::FillNumObj(TObject* obj) {
29
30 FemtoPair* pair = (FemtoPair*) obj;
31 Double_t kv = TMath::Sqrt(pair->GetX() * pair->GetX() + pair->GetY() * pair->GetY() + pair->GetZ() * pair->GetZ());
32 fQinvDist->Fill(kv, pair->GetT());
34 }
35
37
38 void FemtoSHCFQinv::AddScaled(const Hal::DividedHisto1D& other, Double_t scale) {
39 FemtoSHCF::AddScaled(other, scale);
40 auto shcf = dynamic_cast<Hal::FemtoSHCFQinv&>(other);
41 fQinvDist->Add(shcf.fQinvDist, scale);
42 }
43
44} /* namespace Hal */
virtual void AddScaled(const DividedHisto1D &other, Double_t scale=1)
Double_t GetT() const
Definition FemtoPair.h:322
Double_t GetY() const
Definition FemtoPair.h:312
Double_t GetZ() const
Definition FemtoPair.h:317
Double_t GetX() const
Definition FemtoPair.h:307
virtual void FillDenObj(TObject *obj)
virtual void AddScaled(const Hal::DividedHisto1D &other, Double_t scale)
virtual void FillNumObj(TObject *obj)
virtual void FillNumObj(TObject *obj)
virtual void FillDenObj(TObject *obj)