Skip to content

Commit

Permalink
Merge pull request #7591 from deguio/fixLeakBeamMonitor
Browse files Browse the repository at this point in the history
fix mem leak in BeamMonitor
  • Loading branch information
davidlange6 committed Feb 6, 2015
2 parents b6baa57 + 7d2a31d commit c333503
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DQM/BeamMonitor/plugins/BeamMonitor.cc
Expand Up @@ -575,6 +575,7 @@ void BeamMonitor::analyze(const Event& iEvent,
for(int n=0; n < tmphisto->GetNbinsX(); n++)
cutFlowTable->setBinLabel(n+1,tmphisto->GetXaxis()->GetBinLabel(n+1),1);
cutFlowTable = dbe_->book1D(cutFlowTableName, tmphisto);
delete tmphisto;

//----Reco tracks -------------------------------------
Handle<reco::TrackCollection> TrackCollection;
Expand Down Expand Up @@ -952,6 +953,7 @@ void BeamMonitor::FitAndFill(const LuminosityBlock& lumiSeg,int &lastlumi,int &n
h_PVz[1]->update();
h_PVz[1] = dbe_->book1D(tmpfile,h_PVz[0]->getTH1F());
h_PVz[1]->getTH1()->Fit(fgaus.get(),"QLM");
delete tmphisto;

}//check if found min Vertices
}//do PVfit
Expand Down

0 comments on commit c333503

Please sign in to comment.