@@ -132,14 +132,16 @@ struct HfTaskCharmResoReduced {
132132 Produces<aod::HfCandResoLites> hfCandResoLite;
133133 Produces<aod::HfGenResoLites> hfGenResoLite;
134134 Configurable<float > ptMinReso{" ptMinReso" , -1 , " Discard events with smaller pT" };
135- Configurable<bool > fillTrees{" fillTrees" , false , " Fill output Trees" };
135+ Configurable<bool > fillTrees{" fillTrees" , true , " Fill output Trees" };
136136 Configurable<bool > fillSparses{" fillSparses" , false , " Fill output Sparses" };
137- Configurable<bool > useDeltaMass{" useDeltaMass" , false , " Use Delta Mass for resonance invariant Mass calculation" };
137+ Configurable<bool > useDeltaMass{" useDeltaMass" , true , " Use Delta Mass for resonance invariant Mass calculation" };
138138 Configurable<bool > fillOnlySignal{" fillOnlySignal" , false , " Flag to Fill only signal candidates (MC only)" };
139139 Configurable<float > yCandGenMax{" yCandGenMax" , 0.5 , " max. gen particle rapidity" };
140140 Configurable<float > yCandRecoMax{" yCandRecoMax" , -1 , " max. cand. rapidity" };
141141 Configurable<float > etaTrackMax{" etaTrackMax" , 0.8 , " max. track pseudo-rapidity for acceptance calculation" };
142142 Configurable<float > ptTrackMin{" ptTrackMin" , 0.1 , " min. track transverse momentum for acceptance calculation" };
143+ Configurable<float > massResoMin{" massResoMin" , 0.49 , " min. mass of resonance" };
144+ Configurable<float > massResoMax{" massResoMax" , 1.29 , " max. mass of resonance" };
143145 // Configurables axis for histos
144146 ConfigurableAxis axisPt{" axisPt" , {VARIABLE_WIDTH, 0 ., 1 .f , 2 .f , 3 .f , 4 .f , 5 .f , 6 .f , 8 .f , 12 .f , 24 .f , 50 .f }, " #it{p}_{T} (GeV/#it{c})" };
145147 ConfigurableAxis axisPtProng0{" axisPtProng0" , {VARIABLE_WIDTH, 0 ., 1 .f , 2 .f , 3 .f , 4 .f , 5 .f , 6 .f , 8 .f , 12 .f , 24 .f , 50 .f }, " prong0 bach. #it{p}_{T} (GeV/#it{c})" };
@@ -250,6 +252,9 @@ struct HfTaskCharmResoReduced {
250252 } else {
251253 invMassReso = RecoDecay::m (std::array{bach0.pVector (), bach1.pVector ()}, std::array{pdgMassBach0, pdgMassBach1});
252254 }
255+ if (invMassReso < massResoMin || invMassReso > massResoMax) {
256+ return ;
257+ }
253258 invMassBach0 = invMassBach0 - invMassD0;
254259 float ptGen{-1 .};
255260 int8_t origin{-1 }, flagMcMatchRec{-1 }, debugMcRec{-1 }, signD0{0 };
0 commit comments