Skip to content

Commit 8b1cc1d

Browse files
committed
vector->array for names of Bg and Refl functions
1 parent 678233c commit 8b1cc1d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PWGHF/D2H/Macros/HFInvMassFitter.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <Rtypes.h>
3434
#include <RtypesCore.h>
3535

36+
#include <array>
3637
#include <cstdio>
3738
#include <string>
3839
#include <vector>
@@ -50,7 +51,7 @@ class HFInvMassFitter : public TNamed
5051
NoBkg = 6,
5152
NTypesOfBkgPdf
5253
};
53-
std::vector<std::string> namesOfBkgPdf{"bkgFuncExpo", "bkgFuncPoly1", "bkgFuncPoly2", "bkgFuncPow", "bkgFuncPowExpo", "bkgFuncPoly3"};
54+
std::array<std::string, NTypesOfBkgPdf> namesOfBkgPdf{"bkgFuncExpo", "bkgFuncPoly1", "bkgFuncPoly2", "bkgFuncPow", "bkgFuncPowExpo", "bkgFuncPoly3"};
5455
enum TypeOfSgnPdf {
5556
SingleGaus = 0,
5657
DoubleGaus = 1,
@@ -65,7 +66,7 @@ class HFInvMassFitter : public TNamed
6566
Poly6Refl = 3,
6667
NTypesOfReflPdf
6768
};
68-
std::vector<std::string> namesOfReflPdf{"reflFuncGaus", "reflFuncDoubleGaus", "reflFuncPoly3", "reflFuncPoly6"};
69+
std::array<std::string, NTypesOfReflPdf> namesOfReflPdf{"reflFuncGaus", "reflFuncDoubleGaus", "reflFuncPoly3", "reflFuncPoly6"};
6970
HFInvMassFitter();
7071
HFInvMassFitter(const TH1* histoToFit, Double_t minValue, Double_t maxValue, Int_t fitTypeBkg = Expo, Int_t fitTypeSgn = SingleGaus);
7172
~HFInvMassFitter() override;

0 commit comments

Comments
 (0)