Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix mem leak in BeamMonitor #7591

Merged
merged 1 commit into from Feb 6, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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