| /trunk/src/GenEventStreamIO.cc |
|---|
| 240,7 → 240,7 |
| } |
| } break; |
| case 'H': |
| { // we have a HeavyIon line |
| { // we have a HeavyIon line OR an unexpected HepMC... line |
| if( info.io_type() == gen || info.io_type() == extascii ) { |
| // get HeavyIon |
| HeavyIon ion; |
| /trunk/src/HeavyIon.cc |
|---|
| 86,9 → 86,8 |
| if( firstc != "H" ) { |
| std::cerr << "HeavyIon input stream invalid line type: " |
| << firstc << std::endl; |
| std::cerr << "HeavyIon input stream setting badbit." << std::endl; |
| is.clear(std::ios::badbit); |
| return is; |
| // The most likely problem is that we have found a HepMC block line |
| throw IO_Exception("HeavyIon input stream encounterd invalid data"); |
| } |
| // read values into temp variables, then create a new HeavyIon object |
| int nh =0, np =0, nt =0, nc =0, |
| /trunk/src/PdfInfo.cc |
|---|
| 75,9 → 75,8 |
| if ( firstc != "F" ) { |
| std::cerr << "PdfInfo input stream invalid line type: " |
| << firstc << std::endl; |
| std::cerr << "PdfInfo input stream setting badbit." << std::endl; |
| is.clear(std::ios::badbit); |
| return is; |
| // this is non-recoverable, so throw here |
| throw IO_Exception("PdfInfo input stream encounterd invalid data"); |
| } |
| // read values into temp variables, then create a new PdfInfo object |
| int id1 =0, id2 =0, pdf_id1=0, pdf_id2=0; |