hepmc - Diff between revs 92 and 100
Subversion Repositories:
| Rev 92 | Rev 100 | |||
|---|---|---|---|---|
| Line 33... | Line 33... | |||
| 33 | /// this predicate returns true if the input particle is a W+/W- | 33 | /// this predicate returns true if the input particle is a W+/W- | |
| 34 | class IsW_Boson { | 34 | class IsW_Boson { | |
| 35 | public: | 35 | public: | |
| 36 | /// returns true if the GenParticle is a W | 36 | /// returns true if the GenParticle is a W | |
| 37 | bool operator()( const HepMC::GenParticle* p ) { | 37 | bool operator()( const HepMC::GenParticle* p ) { | |
| 38 | if ( fabs(p->pdg_id()) == 24 ) return 1; | - | ||
| - | 38 | if ( abs(p->pdg_id()) == 24 ) return 1; | ||
| 39 | return 0; | 39 | return 0; | |
| 40 | } | 40 | } | |
| 41 | }; | 41 | }; | |
| 42 | 42 | |||
| 43 | //! example class | 43 | //! example class | |
