20 #include <dqm/analysis/modules/DQMHistAnalysis.h>
23 #include <RooWorkspace.h>
24 #include <RooDataHist.h>
26 #include <RooFitResult.h>
27 #include <RooAbsPdf.h>
52 void event(
void)
override final;
53 void endRun(
void)
override final;
58 RooWorkspace*
w =
nullptr;
60 RooRealVar*
x =
nullptr;
62 RooDataHist*
data =
nullptr;
66 RooFitResult*
r =
nullptr;
The base class for the histogram analysis module.
Class definition for the output module of Sequential ROOT I/O.
RooAbsPdf * model
The PDF for fitting.
void terminate(void) override final
This method is called at the end of the event processing.
void initialize(void) override final
Module functions to be called from main process.
RooDataHist * data
The data of histogram for fitting.
void endRun(void) override final
This method is called if the current run ends.
~DQMHistAnalysisRooFitExampleModule()
Destructor.
DQMHistAnalysisRooFitExampleModule()
Constructor.
RooFitResult * r
The fitting result.
RooRealVar * x
The fitting variable.
TCanvas * m_c0
The drawing canvas for plotting the fitting result.
RooPlot * plot
The plot of the fitting result.
RooWorkspace * w
The RooFit work space.
void beginRun(void) override final
Module functions to be called from event process.
void event(void) override final
This method is the core of the module.
Abstract base class for different kinds of events.