Fork me on GitHub

Ignore:
Timestamp:
Nov 2, 2011, 5:39:26 PM (13 years ago)
Author:
cp3-support
Message:

upgrade HepMC to version 2.06.05

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Utilities/HepMC/interface/GenParticle.h

    r349 r572  
    3030#include "Polarization.h"
    3131#include "SimpleVector.h"
     32#include "IteratorRange.h"
    3233#include <iostream>
    3334#ifdef _WIN32
     
    4344    class GenEvent;
    4445
     46    class GenParticleProductionRange;
     47    class ConstGenParticleProductionRange;
     48    class GenParticleEndRange;
     49    class ConstGenParticleEndRange;
    4550
    4651    //! The GenParticle class contains information about generated particles
     
    119124        ///
    120125        /// 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        ///
    123134        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;
    124153
    125154        /////////////////////
     
    225254    inline void GenParticle::set_barcode_( int bc ) { m_barcode = bc; }
    226255
     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
    227266} // HepMC
    228267
Note: See TracChangeset for help on using the changeset viewer.