File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
MC/config/PWGHF/ini/tests Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -109,20 +109,21 @@ int External() {
109109 std ::cerr << "Number of generated MB events different than expected\n" ;
110110 return 1 ;
111111 }
112- if (nEventsInjOne < nEvents * ratioTrigger * 0.5 * 0.95 ||
113- nEventsInjOne > nEvents * ratioTrigger * 0.5 * 1.05 ) {
112+ constexpr float nInjectedSpecies = 3.f ;
113+ if (nEventsInjOne < nEvents * ratioTrigger * 1 /nInjectedSpecies * 0.95 ||
114+ nEventsInjOne > nEvents * ratioTrigger * 1 /nInjectedSpecies * 1.05 ) {
114115 std ::cerr << "Number of generated events injected with " << checkPdgQuarkOne
115116 << " different than expected\n" ;
116117 return 1 ;
117118 }
118- if (nEventsInjTwo < nEvents * ratioTrigger * 0.5 * 0.95 ||
119- nEventsInjTwo > nEvents * ratioTrigger * 0.5 * 1.05 ) {
119+ if (nEventsInjTwo < nEvents * ratioTrigger * 1 / nInjectedSpecies * 0.95 ||
120+ nEventsInjTwo > nEvents * ratioTrigger * 1 / nInjectedSpecies * 1.05 ) {
120121 std ::cerr << "Number of generated events injected with " << checkPdgQuarkTwo
121122 << " different than expected\n" ;
122123 return 1 ;
123124 }
124- if (nEventsInjThree < nEvents * ratioTrigger * 0.5 * 0.95 ||
125- nEventsInjThree > nEvents * ratioTrigger * 0.5 * 1.05 ) {
125+ if (nEventsInjThree < nEvents * ratioTrigger * 1 / nInjectedSpecies * 0.95 ||
126+ nEventsInjThree > nEvents * ratioTrigger * 1 / nInjectedSpecies * 1.05 ) {
126127 std ::cerr << "Number of generated events injected with " << checkPdgQuarkThree
127128 << " different than expected\n" ;
128129 return 1 ;
You can’t perform that action at this time.
0 commit comments