Skip to content

Commit 4eec5c4

Browse files
committed
Fix gen matching
1 parent 092b533 commit 4eec5c4

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
@@ -659,8 +659,8 @@ struct RecoDecay {
659659
// If the particle is labelled as final, we add this particle in the list of final daughters and exit.
660660
if (isFinal) {
661661
// printf("getDaughters: ");
662-
for (int i = 0; i < stage; i++) // Indent to make the tree look nice.
663-
std::cout << " ";
662+
// for (int i = 0; i < stage; i++) // Indent to make the tree look nice.
663+
// std::cout << " ";
664664
// printf(" ");
665665
// printf("Stage %d: Adding %d (PDG %d) as final daughter.\n", stage, index, pdgParticle);
666666
// std::cout << "[getDaughters] Adding particle " << particle.globalIndex() << " as final daughter with PDG code " << pdgParticle << std::endl;
@@ -810,7 +810,7 @@ struct RecoDecay {
810810
for (auto i : arrAllDaughtersIndex) {
811811
std::cout << " (" << i << " , pdg: " << particlesMC.rawIteratorAt(i - particlesMC.offset()).pdgCode() << ") , ";
812812
}
813-
std::cout << " " << std::endl;
813+
// std::cout << " " << std::endl;
814814
// Check whether the number of actual final daughters is equal to the number of expected final daughters (i.e. the number of provided prongs).
815815
if (!acceptIncompleteReco && arrAllDaughtersIndex.size() != NDaug) {
816816
std::cout << "MC Rec: Number of final states " << arrAllDaughtersIndex.size() << " (expected " << NDaug << ")" << std::endl;
@@ -956,10 +956,10 @@ struct RecoDecay {
956956

957957
// printf("MC Gen: Mother %ld has %ld final states", candidate.globalIndex(), arrAllDaughtersIndex.size());
958958
// std::cout << "MC Gen: Mother " << candidate.globalIndex() << " has " << arrAllDaughtersIndex.size() << " final states" << std::endl;
959-
for (auto i : arrAllDaughtersIndex) {
959+
// for (auto i : arrAllDaughtersIndex) {
960960
// std::cout << " (" << i << " , pdg: " << particlesMC.rawIteratorAt(i - particlesMC.offset()).pdgCode() << ") , ";
961-
}
962-
std::cout << " " << std::endl;
961+
// }
962+
// std::cout << " " << std::endl;
963963
// printf("\n");
964964
// Check whether the number of final daughters is equal to the required number.
965965
if (arrAllDaughtersIndex.size() != N) {

0 commit comments

Comments
 (0)