From e9a264750ac5e1872f218d958e1341de3792e99c Mon Sep 17 00:00:00 2001 From: Daniel Wielanek Date: Tue, 3 Dec 2024 23:27:44 +0100 Subject: [PATCH] New function added. --- .../femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx | 9 +++++++++ .../femto/corrfit/mapgenerators/Femto1DMapGenerator.h | 7 +++++++ 2 files changed, 16 insertions(+) diff --git a/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx b/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx index 82e19135..409a6414 100644 --- a/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx +++ b/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx @@ -88,6 +88,13 @@ namespace Hal { } } } + void Femto1DMapGenerator::SetRBinsStep(Int_t steps, Double_t min, Double_t step) { + fRBins = steps; + fRadiiBins.MakeBigger(steps); + for (int i = 0; i < steps; i++) { + fRadiiBins[i] + step*(double(i)); + } + } void Femto1DMapGenerator::SetGenerator(FemtoFreezoutGenerator& gen) { if (fGenerator) delete fGenerator; @@ -133,4 +140,6 @@ namespace Hal { if (fWeight) delete fWeight; if (fMap) delete fMap; } + + } // namespace Hal diff --git a/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.h b/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.h index 4709b0d0..ba80ad93 100644 --- a/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.h +++ b/analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.h @@ -62,6 +62,13 @@ namespace Hal { * in ROOT histograms */ void SetRBins(Int_t bins, Double_t rmin, Double_t rmax, Bool_t center = kFALSE); + /** + * another method for set Rbins + * @param steps number of steps + * @param min step number + * @param step step + */ + void SetRBinsStep(Int_t steps, Double_t min, Double_t step); /** * set source generator algorithm * @param gen