11#include <boost/format.hpp>
26#include <dqm/core/DQMHistAnalysis.h>
27#include <cdc/geometry/CDCGeometryParConstants.h>
65 void event()
override final;
70 void endRun()
override final;
131 void setHistPars(TH2D*& hist, TH1F*& hmean, TH1F*& hsigma,
int nbin);
157 void setPadStyle(
double l,
double r,
double t,
double b);
DQM analysis module grab canvases from DQM module and perform higher level operation like histogram f...
DQMHistAnalysisCDCDedxModule()
constructor
void drawDedxInjTime()
function to draw the dEdx vs injection time
void drawDedxCosPhi()
function to draw dEdx vs costh and phi
void initialize() override final
init function for default values
void drawBandPlot()
function to dedx bands P
TLine * l_line
line for dedx mean
void setTextStyle(TPaveText *obj)
function to add text style
void drawWireStatus()
function to draw ADC-based dead wire status of CDC
TH1F * m_hdEdxIRMean
histogram for dE/dx mean vs events per run
TCanvas * m_c_pr_dedx
dedx dist+fit
int m_nhadevt
hadron events
TPaveText * m_text_dedx_fit
add dE/dx fit information
void setHistStyle(TH1 *obj)
function to set the style of histogram
TPaveText * m_text_mean
add dE/dx mean information
TH1 * m_hdEdxIRInd
histogram to calculate dE/dx mean and sigma in bins
TLegend * m_legoI
legends for LER/HER for mean and sigma
std::string m_status
fit status
MonitoringObject * m_monObj
MonitoringObject for mirabelle.
TLegend * m_lego
legends for LER/HER
TH1F * m_hSigmaHer
histogram for dE/dx sigma vs injection time (HER)
void terminate() override final
terminating at the end of last run
void drawDedxInjTimeBin()
function to draw the mean/reso of dedx vs injection time
void event() override final
event by event function
Int_t m_pal
number of colors
TPaveText * m_text_sigma
add dE/dx sigma information
std::string m_iexprun
info of exp/run
unsigned m_last
substring last value
TCanvas * m_c_ir_dedx
intra-run dedx status
void setHistPars(TH2D *&hist, TH1F *&hmean, TH1F *&hsigma, int nbin)
function to set the mean and sigma histograms
static const Int_t m_NCont
Total number of colors in the table.
TPaveText * m_text_dedxWire
add Wire information
void endRun() override final
end of each run
TH1F * m_hSigmaLer
histogram for dE/dx sigma vs injection time (LER)
void setPadStyle(double l, double r, double t, double b)
function to reset pad margins
Int_t m_palarr[m_NCont]
array of colors
void getMetadata()
function to get metadata from histogram
void setBEvtInfo(TPaveText *pt)
function to set the bhabha event info
void fitHistogram(TH1 *&temphist, std::string &status)
function to fit gaussian dist.
double m_dbrg
previous run gain
unsigned m_first
substring start value
void beginRun() override final
begin each run
TPaveText * m_text_dedx_ir
add dE/dx intra run information
int m_nbhabhaevt
bhabha events
void drawDedxPR()
function to draw dEdx+Fit
TPaveText * m_text_bandplot
add hadron event information
void drawDedxIR()
function to draw dEdx+Fit for run variation
TPaveText * m_text_dedx
add dE/dx bhabha event information
TH1F * m_hdEdxIRSigma
histogram for dE/dx sigma vs events per run
static const Int_t m_NRGBs
Number of end point colors that will form the gradients.
TH1F * m_hMeanLer
histogram for dE/dx mean vs injection time (LER)
TH1F * m_hMeanHer
histogram for dE/dx mean vs injection time (HER)
std::string m_mode
monitoring mode all/basic
void setPlotStyle()
function to add plot style
The base class for the histogram analysis module.
MonitoringObject is a basic object to hold data for the run-dependency monitoring Run summary TCanvas...
Abstract base class for different kinds of events.