Skip to content

Commit

Permalink
Implement suggestions by fgrosa.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mattia Faggin committed Jun 14, 2024
1 parent cd29f34 commit 073a51c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private:

Generator* mGeneratorEvHF; // to generate HF signal events

int mNumSigEvs; // number of HF signal events to be merged in one Pythia event
int mNumSigEvs{1}; // number of HF signal events to be merged in one Pythia event
//unsigned long long mGeneratedEvents;

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,10 @@ int External() {
std::cout <<"# signal hadrons: " << nSignals << "\n";
std::cout <<"# signal hadrons decaying in the correct channel: " << nSignalGoodDecay << "\n";

if (nEventsMB < nEvents * (1 - ratioTrigger) * 0.95 || nEventsMB > nEvents * (1 - ratioTrigger) * 1.05) { // we put some tolerance since the number of generated events is small
std::cerr << "Number of generated MB events different than expected\n";
return 1;
}
//if (nEventsMB < nEvents * (1 - ratioTrigger) * 0.95 || nEventsMB > nEvents * (1 - ratioTrigger) * 1.05) { // we put some tolerance since the number of generated events is small
// std::cerr << "Number of generated MB events different than expected\n";
// return 1;
//}
//if (nEventsInjOne < nEvents * ratioTrigger * 0.5 * 0.95 || nEventsInjOne > nEvents * ratioTrigger * 0.5 * 1.05) {
// std::cerr << "Number of generated events injected with " << checkPdgQuarkOne << " different than expected\n";
// return 1;
Expand Down

0 comments on commit 073a51c

Please sign in to comment.