1 |
//============================================================================ |
//============================================================================ |
2 |
// $Id: PacketUser.cpp,v 1.10 2009/12/24 10:31:12 mocchiut Exp $ |
// $Id: PacketUser.cpp,v 1.11 2009/12/30 10:46:33 mocchiut Exp $ |
3 |
// Description : |
// Description : |
4 |
//============================================================================ |
//============================================================================ |
5 |
#include "PacketUser.h" |
#include "PacketUser.h" |
541 |
//Finish the old root file |
//Finish the old root file |
542 |
void PacketUser::FinishGroup(char * filename) { |
void PacketUser::FinishGroup(char * filename) { |
543 |
if (pRun) { |
if (pRun) { |
544 |
if ( !( !real_time_init && !real_time_last && numPKTSaved <= recoverlimit ) && candelete ) pRun->WriteFiles(); |
if ( !( !real_time_init && !real_time_last && numPKTSaved <= recoverlimit ) || !candelete ) pRun->WriteFiles(); |
545 |
delete pRun; |
delete pRun; |
546 |
pRun = NULL; |
pRun = NULL; |
547 |
stringstream close; |
stringstream close; |