@@ -84,9 +84,6 @@ struct HfTaskLc {
8484 NonPrompt
8585 };
8686
87- constexpr static std::string_view SignalFolders[] = {" signal" , " prompt" , " nonprompt" };
88- constexpr static std::string_view SignalSuffixes[] = {" " , " Prompt" , " NonPrompt" };
89-
9087 HfHelper hfHelper;
9188 SliceCache cache;
9289
@@ -127,6 +124,7 @@ struct HfTaskLc {
127124
128125 void init (InitContext&)
129126 {
127+ std::cout << " commit: moved static constexpr to lambdas\n " ;
130128 std::array<bool , 12 > doprocess{doprocessDataStd, doprocessDataStdWithFT0C, doprocessDataStdWithFT0M, doprocessDataWithMl, doprocessDataWithMlWithFT0C, doprocessDataWithMlWithFT0M, doprocessMcStd, doprocessMcStdWithFT0C, doprocessMcStdWithFT0M, doprocessMcWithMl, doprocessMcWithMlWithFT0C, doprocessMcWithMlWithFT0M};
131129 if ((std::accumulate (doprocess.begin (), doprocess.end (), 0 )) != 1 ) {
132130 LOGP (fatal, " no or more than one process function enabled! Please check your configuration!" );
@@ -346,6 +344,9 @@ struct HfTaskLc {
346344 auto ptRecB = candidate.ptBhadMotherPart ();
347345
348346 auto fillHistogramsRec = [&]<int signalType>() {
347+ constexpr static std::string_view SignalFolders[] = {" signal" , " prompt" , " nonprompt" };
348+ constexpr static std::string_view SignalSuffixes[] = {" " , " Prompt" , " NonPrompt" };
349+
349350 if ((candidate.isSelLcToPKPi () >= selectionFlagLc) && pdgCodeProng0 == kProton ) {
350351 registry.fill (HIST (" MC/reconstructed/" ) + HIST (SignalFolders[signalType]) + HIST (" /hMassRecSig" ) + HIST (SignalSuffixes[signalType]), hfHelper.invMassLcToPKPi (candidate));
351352 registry.fill (HIST (" MC/reconstructed/" ) + HIST (SignalFolders[signalType]) + HIST (" /hMassVsPtRecSig" ) + HIST (SignalSuffixes[signalType]), hfHelper.invMassLcToPKPi (candidate), pt);
@@ -481,6 +482,9 @@ struct HfTaskLc {
481482 const float properLifetime = mcDaughter0.vt () * NanoToPico / gamma; // from ns to ps * from lab time to proper time
482483
483484 auto fillHistogramsGen = [&]<int signalType>() {
485+ constexpr static std::string_view SignalFolders[] = {" signal" , " prompt" , " nonprompt" };
486+ constexpr static std::string_view SignalSuffixes[] = {" " , " Prompt" , " NonPrompt" };
487+
484488 registry.fill (HIST (" MC/generated/" ) + HIST (SignalFolders[signalType]) + HIST (" /hPtGen" ) + HIST (SignalSuffixes[signalType]), ptGen);
485489 registry.fill (HIST (" MC/generated/" ) + HIST (SignalFolders[signalType]) + HIST (" /hEtaGen" ) + HIST (SignalSuffixes[signalType]), particle.eta ());
486490 registry.fill (HIST (" MC/generated/" ) + HIST (SignalFolders[signalType]) + HIST (" /hYGen" ) + HIST (SignalSuffixes[signalType]), yGen);
0 commit comments