Commit 36cb484621a4393927e5b1c9f838e2447bf53c06
1 parent
855e46e7
Print GTIs in reference type system.
Before, GTIs have been printed in the native GammaLib system.
Showing
1 changed file
with
8 additions
and
2 deletions
src/obs/GGti.cpp
| ... | ... | @@ -684,10 +684,16 @@ std::string GGti::print(void) const |
| 684 | 684 | result.append("\n"+parformat("Ontime")+str(ontime())+" sec"); |
| 685 | 685 | result.append("\n"+parformat("Elapsed time")+str(telapse())+" sec"); |
| 686 | 686 | result.append("\n"+parformat("Time range")); |
| 687 | - result.append(tstart().print()+" - "+tstop().print()); | |
| 687 | + result.append(str(tstart().convert(m_reference))); | |
| 688 | + result.append(" - "); | |
| 689 | + result.append(str(tstop().convert(m_reference))); | |
| 690 | + result.append(" "+reference().timeunit()); | |
| 691 | + result.append(" ("+reference().timesys()+")"); | |
| 692 | + result.append("\n"+parformat("Reference MDJ")); | |
| 693 | + result.append(str(reference().mjdref())); | |
| 688 | 694 | |
| 689 | 695 | // Append time reference information |
| 690 | - result.append("\n"+m_reference.print()); | |
| 696 | + //result.append("\n"+reference().print()); | |
| 691 | 697 | |
| 692 | 698 | // Return result |
| 693 | 699 | return result; | ... | ... |