--- chewbacca/event/EventCounter.cpp 2009/08/04 13:58:16 1.4 +++ chewbacca/event/EventCounter.cpp 2010/02/11 09:02:15 1.5 @@ -1,6 +1,6 @@ /** @file * $Source: /afs/ba.infn.it/user/pamela/src/CVS/chewbacca/event/EventCounter.cpp,v $ - * $Id: EventCounter.cpp,v 1.3 2009/07/29 15:47:19 mocchiut Exp $ + * $Id: EventCounter.cpp,v 1.4 2009/08/04 13:58:16 mocchiut Exp $ * $Author: mocchiut $ * * Implementation of the EventCounter class. @@ -41,7 +41,8 @@ void mappa::Set(){ // cout << " in mappa set" << endl; - if (!val) val = new TClonesArray("pamela::mapval",47); + if (val) delete val; + val = new TClonesArray("pamela::mapval",47); // cout << " out mappa set" << endl; }