Changeset 572 in svn for trunk/Utilities/HepMC/interface/PdfInfo.h
- Timestamp:
- Nov 2, 2011, 5:39:26 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/HepMC/interface/PdfInfo.h
r349 r572 91 91 double pdf2() const { return m_pdf2; } 92 92 93 /// verify that the instance contains non-zero information 94 bool is_valid() const; 95 93 96 // --- mutators: 94 97 /// set flavour code of first parton … … 124 127 }; 125 128 129 // Free Functions 130 131 // IO 132 std::ostream & operator << (std::ostream &, PdfInfo const *); 133 std::istream & operator >> (std::istream &, PdfInfo *); 134 126 135 // inline operators 127 136 inline PdfInfo::PdfInfo( int i1, int i2, double x1, double x2, … … 191 200 } 192 201 202 inline 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 193 216 } // HepMC 194 217
Note:
See TracChangeset
for help on using the changeset viewer.