Skip to content
Snippets Groups Projects
Commit d09bf44b authored by Stephen A. Wood's avatar Stephen A. Wood
Browse files

Tweak recent THcScalerEvtHandler changes for gcc 4.4.7 compatibility

  Add #include <set>
  Don't use new method of looping over vector
parent aaccecd1
No related branches found
No related tags found
No related merge requests found
......@@ -86,7 +86,9 @@ Int_t THcScalerEvtHandler::End( THaRunBase* r)
// Process any delayed events in order received
cout << "THcScalerEvtHandler::End Analyzing " << fDelayedEvents.size() << " delayed scaler events" << endl;
for(UInt_t* rdata : fDelayedEvents) {
for(std::vector<UInt_t*>::iterator it = fDelayedEvents.begin();
it != fDelayedEvents.end(); ++it) {
UInt_t* rdata = *it;
AnalyzeBuffer(rdata);
}
fDelayedEvents.clear(); // Does this free the arrays?
......
......@@ -14,6 +14,7 @@
#include "Decoder.h"
#include <string>
#include <vector>
#include <set>
#include "TTree.h"
#include "TString.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment