Skip to content

Commit

Permalink
New function added.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWielanek committed Dec 3, 2024
1 parent 0058b38 commit e9a2647
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -133,4 +140,6 @@ namespace Hal {
if (fWeight) delete fWeight;
if (fMap) delete fMap;
}


} // namespace Hal
7 changes: 7 additions & 0 deletions analysis/femto/corrfit/mapgenerators/Femto1DMapGenerator.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e9a2647

Please sign in to comment.