@@ -263,7 +263,10 @@ struct DileptonHadronMPC {
263263 Configurable<int > cfg_min_ncluster_mch{" cfg_min_ncluster_mch" , 8 , " min ncluster MCH" };
264264 Configurable<float > cfg_max_chi2{" cfg_max_chi2" , 1e+6 , " max chi2/ndf" };
265265 Configurable<float > cfg_max_chi2mft{" cfg_max_chi2mft" , 1e+6 , " max chi2/ndf" };
266- Configurable<float > cfg_max_matching_chi2_mftmch{" cfg_max_matching_chi2_mftmch" , 40 , " max chi2 for MFT-MCH matching" };
266+ // Configurable<float> cfg_max_matching_chi2_mftmch{"cfg_max_matching_chi2_mftmch", 40, "max chi2 for MFT-MCH matching"};
267+ Configurable<float > cfg_border_pt_for_chi2mchmft{" cfg_border_pt_for_chi2mchmft" , 0 , " border pt for different max chi2 for MFT-MCH matching" };
268+ Configurable<float > cfg_max_matching_chi2_mftmch_lowPt{" cfg_max_matching_chi2_mftmch_lowPt" , 8 , " max chi2 for MFT-MCH matching for low pT" };
269+ Configurable<float > cfg_max_matching_chi2_mftmch_highPt{" cfg_max_matching_chi2_mftmch_highPt" , 40 , " max chi2 for MFT-MCH matching for high pT" };
267270 Configurable<float > cfg_max_matching_chi2_mchmid{" cfg_max_matching_chi2_mchmid" , 1e+10 , " max chi2 for MCH-MID matching" };
268271 Configurable<float > cfg_max_dcaxy{" cfg_max_dcaxy" , 1e+10 , " max dca XY for single track in cm" };
269272 Configurable<float > cfg_min_rabs{" cfg_min_rabs" , 17.6 , " min Radius at the absorber end" };
@@ -687,7 +690,8 @@ struct DileptonHadronMPC {
687690 fDimuonCut .SetNClustersMCHMID (dimuoncuts.cfg_min_ncluster_mch , 20 );
688691 fDimuonCut .SetChi2 (0 .f , dimuoncuts.cfg_max_chi2 );
689692 fDimuonCut .SetChi2MFT (0 .f , dimuoncuts.cfg_max_chi2mft );
690- fDimuonCut .SetMatchingChi2MCHMFT (0 .f , dimuoncuts.cfg_max_matching_chi2_mftmch );
693+ // fDimuonCut.SetMatchingChi2MCHMFT(0.f, dimuoncuts.cfg_max_matching_chi2_mftmch);
694+ fDimuonCut .SetMaxMatchingChi2MCHMFTPtDep ([&](float pt) { return (pt < dimuoncuts.cfg_border_pt_for_chi2mchmft ? dimuoncuts.cfg_max_matching_chi2_mftmch_lowPt : dimuoncuts.cfg_max_matching_chi2_mftmch_highPt ); });
691695 fDimuonCut .SetMatchingChi2MCHMID (0 .f , dimuoncuts.cfg_max_matching_chi2_mchmid );
692696 fDimuonCut .SetDCAxy (0 .f , dimuoncuts.cfg_max_dcaxy );
693697 fDimuonCut .SetRabs (dimuoncuts.cfg_min_rabs , dimuoncuts.cfg_max_rabs );
0 commit comments