00001 #include "TGlobalData.h"
00002
00003 ClassImp(TGlobalData)
00004
00005
00006 void TGlobalData::Clear(const Option_t* )
00007 {
00008
00009
00010
00011 typedef std::map<std::string, std::vector<TPulseIsland*> > PulseMap;
00012 typedef PulseMap::iterator PulseMapIt;
00013 PulseMapIt mapIter;
00014 PulseMapIt mapEnd = this->fPulseIslandToChannelMap.end();
00015 for(mapIter = this->fPulseIslandToChannelMap.begin(); mapIter != mapEnd; mapIter++) {
00016
00017 std::vector<TPulseIsland*>& pulse_vector= mapIter->second;
00018 for(size_t i=0; i<pulse_vector.size(); i++){
00019 delete pulse_vector[i];
00020 pulse_vector[i] = NULL;
00021 }
00022 pulse_vector.clear();
00023 }
00024
00025 for (unsigned int i = 0; i < fMuPCClusterVector.size(); ++i)
00026 delete fMuPCClusterVector[i];
00027 fMuPCClusterVector.clear();
00028
00029 }
00030
00031 #ifdef ROOT_VERSION
00032 TGlobalData* TGlobalData::Instance()
00033 {
00034 return NULL;
00035 }
00036 #endif