# | Line 481 | Line 481 | void TreeWriter::Loop() { | |
---|---|---|
481 | genPhoton.push_back( thisGenParticle ); | |
482 | break; | |
483 | case 11: // electron | |
484 | < | genElectron.push_back( thisGenParticle ); |
484 | > | // Demand a W boson as mother particle of electron |
485 | > | if( abs(event->genParticles[it->motherIndex].pdgId) == 24 ) |
486 | > | genElectron.push_back( thisGenParticle ); |
487 | break; | |
488 | } | |
489 | } |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |