From 1f50c6317a4b35f9f60b4dbaa8b92a6eb2150755 Mon Sep 17 00:00:00 2001 From: knodlseder <> Date: Thu, 24 Feb 2011 14:25:52 +0000 Subject: [PATCH] add file counter increment --- src/ctbin/ctbin.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index 35126ef..d2008ec 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -324,6 +324,9 @@ void ctbin::save(void) // Save file obs->save(filename, clobber()); + // Increment file number + file_num++; + } // endif: observation was a CTA observation } // endfor: looped over files @@ -410,7 +413,7 @@ void ctbin::bin_events(GCTAObservation* obs) // Get Good Time intervals GGti gti = obs->events()->gti(); - + // Create skymap GSkymap map = GSkymap(m_proj, m_coordsys, m_xref, m_yref, m_binsz, m_binsz, @@ -420,7 +423,7 @@ void ctbin::bin_events(GCTAObservation* obs) int num_outside_map = 0; int num_outside_ebds = 0; int num_in_map = 0; - + // Fill sky map GCTAEventList* events = (GCTAEventList*)obs->events(); for (GCTAEventList::iterator event = events->begin(); event != events->end(); ++event) { @@ -447,7 +450,7 @@ void ctbin::bin_events(GCTAObservation* obs) // Fill event in skymap map(pixel, index) += 1.0; num_in_map++; - + } // endfor: looped over all events // Log binning results @@ -542,7 +545,7 @@ void ctbin::copy_members(const ctbin& app) // Return return; -} +} /***********************************************************************//** -- libgit2 0.21.4