Heavy ion Analysis Libriares
Loading...
Searching...
No Matches
FemtoSourceDensity.h
1/*
2 * FemtoSourceDensity.h
3 *
4 * Created on: 3 sty 2023
5 * Author: Daniel Wielanek
6 * E-mail: daniel.wielanek@gmail.com
7 * Warsaw University of Technology, Faculty of Physics
8 */
9#ifndef HAL_ANALYSIS_FEMTO_BASE_SOURCE_MODELS_FEMTOSOURCEDENSITY_H_
10#define HAL_ANALYSIS_FEMTO_BASE_SOURCE_MODELS_FEMTOSOURCEDENSITY_H_
11
12#include <RtypesCore.h>
13#include <TVector3.h>
14
19namespace Hal {
20 class FemtoSourceDensity : public TObject {
21 Int_t fNParams;
22 Bool_t fAna1d;
23 Bool_t fAna3d;
24 Double_t* fParams; //[fNParams]
25 public:
26 FemtoSourceDensity(Int_t params = 0, Bool_t ana1d = kFALSE, Bool_t ana3d = kTRUE) :
27 fNParams(TMath::Min(1, params)), fAna1d(ana1d), fAna3d(ana3d), fParams(nullptr) {
28 fParams = new Double_t[fNParams];
29 };
45 virtual void SetBaseParameters(const Double_t* params);
52 virtual Double_t GetProbDensity3d(const TVector3& /*vec*/, const Double_t* /*params*/) const { return 0; };
60 virtual Double_t GetProbDensity1d(const Double_t /*r*/, const Double_t* /*params*/) const { return 0; };
67 virtual Double_t GetRelativeProbDensity3d(const TVector3& vec, const Double_t* params);
74 virtual Double_t GetRelativeProbDensity1d(const Double_t r, const Double_t* params) const;
79 Bool_t IsAna1d() const { return fAna1d; }
84 Bool_t IsAna3d() const { return fAna3d; }
85 virtual ~FemtoSourceDensity() {
86 if (fParams) delete[] fParams;
87 };
88 ClassDef(FemtoSourceDensity, 1)
89 };
90} // namespace Hal
91
92#endif /* HAL_ANALYSIS_FEMTO_BASE_SOURCE_MODELS_FEMTOSOURCEDENSITY_H_ */
virtual Double_t GetRelativeProbDensity3d(const TVector3 &vec, const Double_t *params)
virtual Double_t GetProbDensity3d(const TVector3 &, const Double_t *) const
FemtoSourceDensity & operator=(const FemtoSourceDensity &other)
virtual void SetBaseParameters(const Double_t *params)
virtual Double_t GetProbDensity1d(const Double_t, const Double_t *) const
virtual Double_t GetRelativeProbDensity1d(const Double_t r, const Double_t *params) const