Changeset 572 in svn for trunk/Utilities/HepMC/interface/GenParticle.h
- Timestamp:
- Nov 2, 2011, 5:39:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/interface/GenParticle.h
r349 r572 30 30 #include "Polarization.h" 31 31 #include "SimpleVector.h" 32 #include "IteratorRange.h" 32 33 #include <iostream> 33 34 #ifdef _WIN32 … … 43 44 class GenEvent; 44 45 46 class GenParticleProductionRange; 47 class ConstGenParticleProductionRange; 48 class GenParticleEndRange; 49 class ConstGenParticleEndRange; 45 50 46 51 //! The GenParticle class contains information about generated particles … … 119 124 /// 120 125 /// The barcode is the particle's reference number, every vertex in the 121 /// event has a unique barcode. Particle barcodes are positive numbers, 122 /// vertex barcodes are negative numbers. 126 /// event has a unique barcode. Particle barcodes are positive numbers, 127 /// vertex barcodes are negative numbers. 128 /// 129 /// Please note that the barcodes are intended for internal use within 130 /// HepMC as a unique identifier for the particles and vertices. 131 /// Using the barcode to encode extra information is an abuse of 132 /// the barcode data member and causes confusion among users. 133 /// 123 134 int barcode() const; //!< particle barcode 135 136 /// Convenience method. Returns true if status==1 137 bool is_undecayed() const; 138 /// Convenience method. Returns true if status==2 139 bool has_decayed() const; 140 /// Convenience method. Returns true if status==4 141 /// Note that using status 4 for beam particles is a new convention which 142 /// may not have been implemented by the code originating this GenEvent. 143 bool is_beam() const; 144 145 /// incoming particle range 146 GenParticleProductionRange particles_in( IteratorRange range = relatives ); 147 /// incoming particle range 148 ConstGenParticleProductionRange particles_in( IteratorRange range = relatives ) const; 149 /// outgoing particle range 150 GenParticleEndRange particles_out( IteratorRange range = relatives ); 151 /// outgoing particle range 152 ConstGenParticleEndRange particles_out( IteratorRange range = relatives ) const; 124 153 125 154 ///////////////////// … … 225 254 inline void GenParticle::set_barcode_( int bc ) { m_barcode = bc; } 226 255 256 inline bool GenParticle::is_undecayed() const { 257 return ( m_status==1 ) ? true : false; 258 } 259 inline bool GenParticle::has_decayed() const { 260 return ( m_status==2 ) ? true : false; 261 } 262 inline bool GenParticle::is_beam() const { 263 return ( m_status==4 ) ? true : false; 264 } 265 227 266 } // HepMC 228 267
Note:
See TracChangeset
for help on using the changeset viewer.