Skip to content

Commit

Permalink
Another c-tor added.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielWielanek committed Oct 31, 2024
1 parent ec739f9 commit e2cc923
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions analysis/femto/corrfit/corrfitopt/CorrFitMask1D.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,9 @@ namespace Hal {

void CorrFitMask1D::SetBin(Int_t bin, Bool_t state) { fRawMask[bin] = state; }

CorrFitMask1D::CorrFitMask1D(const Hal::Femto1DCF& cf) :
CorrFitMask1D(cf.GetNum()->GetNbinsX(),
cf.GetNum()->GetXaxis()->GetBinLowEdge(1),
cf.GetNum()->GetXaxis()->GetBinUpEdge(cf.GetNum()->GetNbinsX())) {}

} // namespace Hal
2 changes: 2 additions & 0 deletions analysis/femto/corrfit/corrfitopt/CorrFitMask1D.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@
#include <RtypesCore.h>

namespace Hal {
class Femto1DCF;
class CorrFitMask1D : public CorrFitMask {
Int_t fBins;
Double_t fMin, fMax;
std::vector<Short_t> fRawMask;

public:
CorrFitMask1D(Int_t bins = 100, Double_t min = 0, Double_t max = 1);
CorrFitMask1D(const Hal::Femto1DCF& cf);
void ApplyRange(Double_t min, Double_t max, Bool_t additive = kTRUE);
void SetBin(Int_t bin, Bool_t state = true);
void Reset(Bool_t state = kTRUE);
Expand Down

0 comments on commit e2cc923

Please sign in to comment.