#include "TGlobalData.h"
Go to the source code of this file.
Functions | |
ClassImp (TGlobalData) void TGlobalData |
ClassImp | ( | TGlobalData | ) |
Definition at line 3 of file TGlobalData.cpp.
00007 { 00008 // WARNING: this method is for offline (rootana) use only! It has 00009 // not been checked for online (alcapana, or below) use and may 00010 // result in double-frees if used there. 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 // The iterator is pointing to a pair<string, vector<TPulseIsland*> > 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 }