ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/UserCode/kiesel/TreeWriter/treeWriter.cc
(Generate patch)

Comparing UserCode/kiesel/TreeWriter/treeWriter.cc (file contents):
Revision 1.24 by kiesel, Wed Apr 24 15:13:05 2013 UTC vs.
Revision 1.25 by kiesel, Wed Apr 24 15:25:35 2013 UTC

# 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                  }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines