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/PdfInfo.h

    r349 r572  
    9191    double pdf2()                 const { return m_pdf2; }
    9292
     93    /// verify that the instance contains non-zero information
     94    bool  is_valid()                     const;
     95
    9396  // ---  mutators:
    9497    /// set flavour code of first parton
     
    124127};
    125128
     129// Free Functions
     130
     131// IO
     132std::ostream & operator << (std::ostream &, PdfInfo const *);
     133std::istream & operator >> (std::istream &, PdfInfo *);
     134
    126135// inline operators
    127136inline PdfInfo::PdfInfo( int i1, int i2, double x1, double x2,
     
    191200}
    192201
     202inline bool  PdfInfo::is_valid() const
     203{
     204    if( m_id1 != 0 ) return true;
     205    if( m_id2 != 0 ) return true;
     206    if( m_pdf_id1 != 0 ) return true;
     207    if( m_pdf_id2 != 0 ) return true;
     208    if( m_x1 != 0 ) return true;
     209    if( m_x2 != 0 ) return true;
     210    if( m_scalePDF != 0 ) return true;
     211    if( m_pdf1 != 0 ) return true;
     212    if( m_pdf2 != 0 ) return true;
     213    return false;
     214}
     215
    193216} // HepMC
    194217
Note: See TracChangeset for help on using the changeset viewer.