@@ -71,10 +71,10 @@ struct HfCandidateSelectorCd {
7171 Configurable<float > itsChi2PerClusterMax{" itsChi2PerClusterMax" , 1e10f, " max its fit chi2 per ITS cluster" };
7272 // DCA track cuts
7373 Configurable<std::vector<double >> binsPtTrack{" binsPtTrack" , std::vector<double >{hf_cuts_single_track::vecBinsPtTrack}, " track pT bin limits for DCA XY/Z pT-dependent cut" };
74- Configurable<LabeledArray<double >> cutsSingleTrack{" cutsSingleTrack" , {hf_cuts_single_track::CutsTrack[0 ], hf_cuts_single_track::NBinsPtTrack, hf_cuts_single_track::NCutVarsTrack, hf_cuts_single_track::labelsPtTrack, hf_cuts_single_track::labelsCutVarTrack}, " Single-track selections" };
74+ Configurable<LabeledArray<double >> cutsSingleTrack{" cutsSingleTrack" , {& hf_cuts_single_track::CutsTrack[ 0 ] [0 ], hf_cuts_single_track::NBinsPtTrack, hf_cuts_single_track::NCutVarsTrack, hf_cuts_single_track::labelsPtTrack, hf_cuts_single_track::labelsCutVarTrack}, " Single-track selections" };
7575 // topological cuts
7676 Configurable<std::vector<double >> binsPt{" binsPt" , std::vector<double >{hf_cuts_cd_to_de_k_pi::vecBinsPt}, " pT bin limits" };
77- Configurable<LabeledArray<double >> cuts{" cuts" , {hf_cuts_cd_to_de_k_pi::Cuts[0 ], hf_cuts_cd_to_de_k_pi::NBinsPt, hf_cuts_cd_to_de_k_pi::NCutVars, hf_cuts_cd_to_de_k_pi::labelsPt, hf_cuts_cd_to_de_k_pi::labelsCutVar}, " Cd candidate selection per pT bin" };
77+ Configurable<LabeledArray<double >> cuts{" cuts" , {& hf_cuts_cd_to_de_k_pi::Cuts[ 0 ] [0 ], hf_cuts_cd_to_de_k_pi::NBinsPt, hf_cuts_cd_to_de_k_pi::NCutVars, hf_cuts_cd_to_de_k_pi::labelsPt, hf_cuts_cd_to_de_k_pi::labelsCutVar}, " Cd candidate selection per pT bin" };
7878 Configurable<bool > acceptCandidatesWithoutCdFlag{" acceptCandidatesWithoutCdFlag" , false , " Apply the Cd mass hypotheses also to 3-prong candidates without the Cd skim bit; intended for MC reflection studies" };
7979 // QA switch
8080 Configurable<bool > activateQA{" activateQA" , false , " Flag to enable QA histogram" };
@@ -315,11 +315,11 @@ struct HfCandidateSelectorCd {
315315
316316 if (usePid) {
317317 // track-level PID selection
318- TrackSelectorPID::Status pidTrackPos1Deuteron;
319- TrackSelectorPID::Status pidTrackPos2Deuteron;
320- TrackSelectorPID::Status pidTrackPos1Pion;
321- TrackSelectorPID::Status pidTrackPos2Pion;
322- TrackSelectorPID::Status pidTrackNegKaon;
318+ TrackSelectorPID::Status pidTrackPos1Deuteron = TrackSelectorPID::NotApplicable ;
319+ TrackSelectorPID::Status pidTrackPos2Deuteron = TrackSelectorPID::NotApplicable ;
320+ TrackSelectorPID::Status pidTrackPos1Pion = TrackSelectorPID::NotApplicable ;
321+ TrackSelectorPID::Status pidTrackPos2Pion = TrackSelectorPID::NotApplicable ;
322+ TrackSelectorPID::Status pidTrackNegKaon = TrackSelectorPID::NotApplicable ;
323323 if (usePidTpcAndTof) {
324324 pidTrackPos1Deuteron = selectorDeuteron.statusTpcAndTof (trackPos1, candidate.nSigTpcDe0 (), candidate.nSigTofDe0 ());
325325 pidTrackPos2Deuteron = selectorDeuteron.statusTpcAndTof (trackPos2, candidate.nSigTpcDe2 (), candidate.nSigTofDe2 ());
0 commit comments