Skip to content

Commit 3d9adfe

Browse files
committed
Fix gen matching
1 parent ab9677f commit 3d9adfe

File tree

5 files changed

+271
-166
lines changed

5 files changed

+271
-166
lines changed

Common/Core/RecoDecay.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -673,8 +673,8 @@ struct RecoDecay {
673673
// If the particle is labelled as final, we add this particle in the list of final daughters and exit.
674674
if (isFinal) {
675675
// printf("getDaughters: ");
676-
for (int i = 0; i < stage; i++) // Indent to make the tree look nice.
677-
std::cout << " ";
676+
// for (int i = 0; i < stage; i++) // Indent to make the tree look nice.
677+
// std::cout << " ";
678678
// printf(" ");
679679
// printf("Stage %d: Adding %d (PDG %d) as final daughter.\n", stage, index, pdgParticle);
680680
// std::cout << "[getDaughters] Adding particle " << particle.globalIndex() << " as final daughter with PDG code " << pdgParticle << std::endl;
@@ -824,7 +824,7 @@ struct RecoDecay {
824824
for (auto i : arrAllDaughtersIndex) {
825825
std::cout << " (" << i << " , pdg: " << particlesMC.rawIteratorAt(i - particlesMC.offset()).pdgCode() << ") , ";
826826
}
827-
std::cout << " " << std::endl;
827+
// std::cout << " " << std::endl;
828828
// Check whether the number of actual final daughters is equal to the number of expected final daughters (i.e. the number of provided prongs).
829829
if (!acceptIncompleteReco && arrAllDaughtersIndex.size() != NDaug) {
830830
std::cout << "MC Rec: Number of final states " << arrAllDaughtersIndex.size() << " (expected " << NDaug << ")" << std::endl;
@@ -970,10 +970,10 @@ struct RecoDecay {
970970

971971
// printf("MC Gen: Mother %ld has %ld final states", candidate.globalIndex(), arrAllDaughtersIndex.size());
972972
// std::cout << "MC Gen: Mother " << candidate.globalIndex() << " has " << arrAllDaughtersIndex.size() << " final states" << std::endl;
973-
for (auto i : arrAllDaughtersIndex) {
973+
// for (auto i : arrAllDaughtersIndex) {
974974
// std::cout << " (" << i << " , pdg: " << particlesMC.rawIteratorAt(i - particlesMC.offset()).pdgCode() << ") , ";
975-
}
976-
std::cout << " " << std::endl;
975+
// }
976+
// std::cout << " " << std::endl;
977977
// printf("\n");
978978
// Check whether the number of final daughters is equal to the required number.
979979
if (arrAllDaughtersIndex.size() != N) {

0 commit comments

Comments
 (0)