|
BmnRoot
|
Base class for simulation reports. More...
#include <BmnSimulationReport.h>
Public Member Functions | |
| BmnSimulationReport () | |
| Constructor. | |
| virtual | ~BmnSimulationReport () |
| Destructor. | |
| void | Create (BmnHistManager *histManager, const string &outputDir) |
| Main function which creates report data. | |
| void | Create (const string &outputDir) |
| void | Create () |
| Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type. | |
| void | Create (const string &fileName, const string &outputDir) |
| Main function which creates report data. | |
| void | SetHM (BmnHistManager *hm) |
| BmnHistManager * | HM () const |
| Return pointer to Histogram manager. | |
| void | DrawH1ByPattern (const string &histNamePattern) |
| Select by pattern TH1 histograms and draw each histogram on separate canvas. | |
| void | DrawH1ByPattern (const string &histNamePattern, string(*labelFormatter)(const string &, const BmnHistManager *)) |
| Select by pattern TH1 histograms and draw all histograms on the same canvas. | |
| void | DrawH2ByPattern (const string &histNamePattern, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const string &drawOpt="") |
| Select by pattern TH2 histograms and draw each histogram on separate canvas. | |
| void | SetOnlyPrimes (const Bool_t prime) |
| Bool_t | GetOnlyPrimes () const |
| void | AddStationSet (DetectorId id, void *ss) |
| void | DrawHits2D () |
| BmnSimulationReport () | |
| Constructor. | |
| virtual | ~BmnSimulationReport () |
| Destructor. | |
| void | Create (BmnHistManager *histManager, const string &outputDir) |
| Main function which creates report data. | |
| void | Create (const string &outputDir) |
| void | Create () |
| Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type. | |
| void | Create (const string &fileName, const string &outputDir) |
| Main function which creates report data. | |
| void | SetHM (BmnHistManager *hm) |
| BmnHistManager * | HM () const |
| Return pointer to Histogram manager. | |
| void | DrawH1ByPattern (const string &histNamePattern) |
| Select by pattern TH1 histograms and draw each histogram on separate canvas. | |
| void | DrawH1ByPattern (const string &histNamePattern, string(*labelFormatter)(const string &, const BmnHistManager *)) |
| Select by pattern TH1 histograms and draw all histograms on the same canvas. | |
| void | DrawH2ByPattern (const string &histNamePattern, HistScale logx=kLinear, HistScale logy=kLinear, HistScale logz=kLinear, const string &drawOpt="") |
| Select by pattern TH2 histograms and draw each histogram on separate canvas. | |
| void | SetOnlyPrimes (const Bool_t prime) |
| Bool_t | GetOnlyPrimes () const |
| void | AddStationSet (DetectorId id, void *ss) |
| void | DrawHits2D () |
Public Member Functions inherited from BmnReport | |
| BmnReport () | |
| Constructor. | |
| virtual | ~BmnReport () |
| Destructor. | |
| const BmnReportElement * | R () const |
| Accessor to BmnReportElement object. User has to write the report using available tags from BmnReportElement class. | |
| ostream & | Out () const |
| All text output goes to this stream. | |
| void | Register (string path) |
| void | CallDraw () |
| void | SetReportName (TString name) |
| void | SetReportTitle (const string &title) |
| void | SetOutputDir (const string &outputDir) |
| void | SetMonitorMode (const Bool_t mm) |
| void | SetObjServer (THttpServer *s) |
| const string & | GetReportName () const |
| const string & | GetReportTitle () const |
| const string & | GetOutputDir () const |
| Bool_t | GetMonitorMode () const |
| THttpServer * | GetObjServer () const |
| BmnReport () | |
| Constructor. | |
| virtual | ~BmnReport () |
| Destructor. | |
| const BmnReportElement * | R () const |
| Accessor to BmnReportElement object. User has to write the report using available tags from BmnReportElement class. | |
| ostream & | Out () const |
| All text output goes to this stream. | |
| void | Register (string path) |
| void | CallDraw () |
| void | SetReportName (TString name) |
| void | SetReportTitle (const string &title) |
| void | SetOutputDir (const string &outputDir) |
| void | SetMonitorMode (const Bool_t mm) |
| void | SetObjServer (THttpServer *s) |
| const string & | GetReportName () const |
| const string & | GetReportTitle () const |
| const string & | GetOutputDir () const |
| Bool_t | GetMonitorMode () const |
| THttpServer * | GetObjServer () const |
Static Public Member Functions | |
| static TClass * | GetStationSetClass (DetectorId det) |
| static char * | HistNameHits (string detName, Short_t iSt) |
| static char * | HistNameHits (TString &detName, Short_t iSt) |
| static char * | HistNameStripDigit (TString &detName, Short_t iSt, Short_t iMod, Short_t iLayer) |
| static TClass * | GetStationSetClass (DetectorId det) |
| static char * | HistNameHits (string detName, Short_t iSt) |
| static char * | HistNameHits (TString &detName, Short_t iSt) |
| static char * | HistNameStripDigit (TString &detName, Short_t iSt, Short_t iMod, Short_t iLayer) |
Protected Member Functions | |
| void | DrawMuSigma (TVirtualPad *pad, TH1 *h) |
| void | DrawOneH1 (const TString canvasName, const TString name1, const TString drawOpt, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawOneH1Log (const TString canvasName, const TString name1, const TString drawOpt, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawTwoH1 (const TString canvasName, const TString name1, const TString name2, const TString drawOpt, Bool_t doFit=kFALSE, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawOneH2 (const TString canvasName, const TString name1, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawTwoH2 (const TString canvasName, const TString name1, const TString name2, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawThreeH1 (const TString canvasName, const TString name1, const TString name2, const TString name3, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawThreeH2 (const TString canvasName, const TString name1, const TString name2, const TString name3, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawFourH2 (const TString canvasName, const TString name1, const TString name2, const TString name3, const TString name4, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawNH2 (const string canvasName, const vector< string > &names, Int_t histW=baseW, Int_t histH=baseH, Int_t ncols=2) |
| void | DrawMuSigma (TVirtualPad *pad, TH1 *h) |
| void | DrawOneH1 (const TString canvasName, const TString name1, const TString drawOpt, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawOneH1Log (const TString canvasName, const TString name1, const TString drawOpt, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawTwoH1 (const TString canvasName, const TString name1, const TString name2, const TString drawOpt, Bool_t doFit=kFALSE, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawOneH2 (const TString canvasName, const TString name1, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawTwoH2 (const TString canvasName, const TString name1, const TString name2, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawThreeH1 (const TString canvasName, const TString name1, const TString name2, const TString name3, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawThreeH2 (const TString canvasName, const TString name1, const TString name2, const TString name3, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawFourH2 (const TString canvasName, const TString name1, const TString name2, const TString name3, const TString name4, Int_t histW=baseW, Int_t histH=baseH) |
| void | DrawNH2 (const string canvasName, const vector< string > &names, Int_t histW=baseW, Int_t histH=baseH, Int_t ncols=2) |
Protected Member Functions inherited from BmnReport | |
| virtual void | Draw ()=0 |
| Pure abstract function which is called from public Create() function. This function has to draw all necessary histograms and graphs. It is called only once before report creation. | |
| void | CreateReports () |
| Create all available report types. | |
| TCanvas * | CreateCanvas (const char *name, const char *title, Int_t ww, Int_t wh) |
| Create canvas and put it to vector of TCanvases. Canvases created with this function will be automatically saved to image and printed in the report. | |
| void | SaveCanvasesAsImages () const |
| Save all canvases to images. | |
| void | WriteCanvases () const |
| Write canvases to file. | |
| void | PrintCanvases () const |
| Print images created from canvases in the report. | |
| virtual void | Draw ()=0 |
| Pure abstract function which is called from public Create() function. This function has to draw all necessary histograms and graphs. It is called only once before report creation. | |
| void | CreateReports () |
| Create all available report types. | |
| TCanvas * | CreateCanvas (const char *name, const char *title, Int_t ww, Int_t wh) |
| Create canvas and put it to vector of TCanvases. Canvases created with this function will be automatically saved to image and printed in the report. | |
| void | SaveCanvasesAsImages () const |
| Save all canvases to images. | |
| void | WriteCanvases () const |
| Write canvases to file. | |
| void | PrintCanvases () const |
| Print images created from canvases in the report. | |
Protected Attributes | |
| const Int_t | MinNEntries4Fit = 10 |
Protected Attributes inherited from BmnReport | |
| THttpServer * | fServer |
| Bool_t | fMonitorMode |
| Bool_t | fInitCanvasesDone |
| BmnSimulationReport::BmnSimulationReport | ( | ) |
Constructor.
Definition at line 27 of file BmnSimulationReport.cxx.
|
virtual |
Destructor.
Definition at line 33 of file BmnSimulationReport.cxx.
| BmnSimulationReport::BmnSimulationReport | ( | ) |
Constructor.
|
virtual |
Destructor.
|
inline |
Definition at line 108 of file BmnSimulationReport.h.
|
inline |
Definition at line 108 of file BmnSimulationReport.h.
|
virtual |
Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type.
Implements BmnReport.
Reimplemented in BmnTrackingQaReport, and BmnTrackingQaReport.
Definition at line 61 of file BmnSimulationReport.cxx.
References BmnReportElement::DocumentBegin(), BmnReportElement::DocumentEnd(), BmnReport::Out(), BmnReport::PrintCanvases(), BmnReport::R(), and BmnReportElement::Title().
Referenced by Create().
|
virtual |
Pure abstract function which is called from public Create() function. This function has to write report using Out() for output stream and R() for report elements. This function is called for each report type.
Implements BmnReport.
Reimplemented in BmnTrackingQaReport, and BmnTrackingQaReport.
| void BmnSimulationReport::Create | ( | BmnHistManager * | histManager, |
| const string & | outputDir | ||
| ) |
Main function which creates report data.
Non virtual interface pattern is used here. User always creates simulation report using this public non virtual method. In order to configure concrete report generation class user has to implement protected Create() method.
| [in] | histManager | Pointer to histogram manager for which report is created. |
| [in] | outputDir | Path to directory for output results. |
Definition at line 35 of file BmnSimulationReport.cxx.
References Create().
Referenced by BmnClusteringQa::Finish(), BmnLambdaQa::Finish(), BmnPidQa::Finish(), BmnProfQa::Finish(), BmnQaBase::Finish(), BmnTrackingQa::Finish(), and BmnTrackingQaExp::Finish().
| void BmnSimulationReport::Create | ( | BmnHistManager * | histManager, |
| const string & | outputDir | ||
| ) |
Main function which creates report data.
Non virtual interface pattern is used here. User always creates simulation report using this public non virtual method. In order to configure concrete report generation class user has to implement protected Create() method.
| [in] | histManager | Pointer to histogram manager for which report is created. |
| [in] | outputDir | Path to directory for output results. |
| void BmnSimulationReport::Create | ( | const string & | fileName, |
| const string & | outputDir | ||
| ) |
Main function which creates report data.
Same pattern is used here.
| [in] | fileName | Name of the file with histograms. |
| [in] | outputDir | Path to directory for output results. |
Definition at line 49 of file BmnSimulationReport.cxx.
References BmnReport::CreateReports(), BmnHistManager::ReadFromFile(), and BmnReport::SetOutputDir().
| void BmnSimulationReport::Create | ( | const string & | fileName, |
| const string & | outputDir | ||
| ) |
Main function which creates report data.
Same pattern is used here.
| [in] | fileName | Name of the file with histograms. |
| [in] | outputDir | Path to directory for output results. |
| void BmnSimulationReport::Create | ( | const string & | outputDir | ) |
Definition at line 41 of file BmnSimulationReport.cxx.
References BmnReport::CreateReports(), and BmnReport::SetOutputDir().
| void BmnSimulationReport::Create | ( | const string & | outputDir | ) |
|
protected |
Definition at line 246 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH2(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
|
protected |
| void BmnSimulationReport::DrawH1ByPattern | ( | const string & | histNamePattern | ) |
Select by pattern TH1 histograms and draw each histogram on separate canvas.
| [in] | histNamePattern | Name pattern for histogram. |
Definition at line 70 of file BmnSimulationReport.cxx.
| void BmnSimulationReport::DrawH1ByPattern | ( | const string & | histNamePattern | ) |
Select by pattern TH1 histograms and draw each histogram on separate canvas.
| [in] | histNamePattern | Name pattern for histogram. |
| void BmnSimulationReport::DrawH1ByPattern | ( | const string & | histNamePattern, |
| string(*)(const string &, const BmnHistManager *) | labelFormatter | ||
| ) |
Select by pattern TH1 histograms and draw all histograms on the same canvas.
| [in] | histNamePattern | Name pattern for histogram. |
Definition at line 83 of file BmnSimulationReport.cxx.
| void BmnSimulationReport::DrawH1ByPattern | ( | const string & | histNamePattern, |
| string(*)(const string &, const BmnHistManager *) | labelFormatter | ||
| ) |
Select by pattern TH1 histograms and draw all histograms on the same canvas.
| [in] | histNamePattern | Name pattern for histogram. |
| void BmnSimulationReport::DrawH2ByPattern | ( | const string & | histNamePattern, |
| HistScale | logx = kLinear, |
||
| HistScale | logy = kLinear, |
||
| HistScale | logz = kLinear, |
||
| const string & | drawOpt = "" |
||
| ) |
Select by pattern TH2 histograms and draw each histogram on separate canvas.
| [in] | histNamePattern | Name pattern for histogram. |
| [in] | logx | Specify logarithmic or linear scale for X axis. |
| [in] | logy | Specify logarithmic or linear scale for Y axis. |
| [in] | logz | Specify logarithmic or linear scale for Z axis. |
| [in] | drawOpt | Other drawing options (see ROOT documentation for details). |
Definition at line 101 of file BmnSimulationReport.cxx.
| void BmnSimulationReport::DrawH2ByPattern | ( | const string & | histNamePattern, |
| HistScale | logx = kLinear, |
||
| HistScale | logy = kLinear, |
||
| HistScale | logz = kLinear, |
||
| const string & | drawOpt = "" |
||
| ) |
Select by pattern TH2 histograms and draw each histogram on separate canvas.
| [in] | histNamePattern | Name pattern for histogram. |
| [in] | logx | Specify logarithmic or linear scale for X axis. |
| [in] | logy | Specify logarithmic or linear scale for Y axis. |
| [in] | logz | Specify logarithmic or linear scale for Z axis. |
| [in] | drawOpt | Other drawing options (see ROOT documentation for details). |
| void BmnSimulationReport::DrawHits2D | ( | ) |
Definition at line 311 of file BmnSimulationReport.cxx.
References baseH, baseW, DrawNH2(), GetStationSetClass(), BmnDetectorList::GetSystemNameCaps(), and HistNameHits().
Referenced by BmnTrackingQaExpReport::Draw().
| void BmnSimulationReport::DrawHits2D | ( | ) |
|
protected |
Definition at line 118 of file BmnSimulationReport.cxx.
Referenced by DrawTwoH1().
|
protected |
|
protected |
Definition at line 271 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH2(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
Referenced by DrawHits2D().
|
protected |
|
protected |
Definition at line 134 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH1(), BmnReport::fInitCanvasesDone, HM(), kLinear, and kLog.
Referenced by BmnTrackingQaExpReport::Draw().
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 175 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH2(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
Referenced by BmnProfQaReport::Draw().
|
protected |
|
protected |
Definition at line 226 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH1(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
Referenced by BmnTrackingQaExpReport::Draw().
|
protected |
|
protected |
Definition at line 204 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH2(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
Referenced by BmnTrackingQaExpReport::Draw().
|
protected |
|
protected |
Definition at line 148 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH1(), DrawMuSigma(), BmnReport::fInitCanvasesDone, BmnHistManager::H1(), HM(), kLinear, and MinNEntries4Fit.
Referenced by BmnProfQaReport::Draw(), and BmnTrackingQaExpReport::Draw().
|
protected |
|
protected |
Definition at line 185 of file BmnSimulationReport.cxx.
References BmnReport::CreateCanvas(), DrawH2(), BmnReport::fInitCanvasesDone, HM(), and kLinear.
Referenced by BmnProfQaReport::Draw(), and BmnTrackingQaExpReport::Draw().
|
protected |
|
inline |
Definition at line 106 of file BmnSimulationReport.h.
Referenced by BmnTrackingQaReport::PrintEventInfo().
|
inline |
Definition at line 106 of file BmnSimulationReport.h.
|
static |
Definition at line 293 of file BmnSimulationReport.cxx.
References kCSC, kGEM, kSiBT, kSILICON, and kVSP.
Referenced by DrawHits2D().
|
static |
|
inlinestatic |
Definition at line 113 of file BmnSimulationReport.h.
Referenced by BmnQaBase::CreateStripHits(), DrawHits2D(), and BmnQaBase::FillStripHits().
|
inlinestatic |
Definition at line 113 of file BmnSimulationReport.h.
|
inlinestatic |
Definition at line 114 of file BmnSimulationReport.h.
|
inlinestatic |
Definition at line 114 of file BmnSimulationReport.h.
|
inlinestatic |
Definition at line 115 of file BmnSimulationReport.h.
Referenced by BmnQaBase::CreateStripDigiHists().
|
inlinestatic |
Definition at line 115 of file BmnSimulationReport.h.
|
inline |
Return pointer to Histogram manager.
Definition at line 76 of file BmnSimulationReport.h.
Referenced by BmnPidQaReport::Draw(), BmnTrackingQaReport::Draw(), BmnTrackingQaReport::DrawEffGem(), BmnTrackingQaReport::DrawEventsInfo(), DrawFourH2(), BmnTrackingQaReport::DrawMomResGem(), DrawNH2(), BmnTrackingQaReport::DrawNhitsGem(), BmnPidQaReport::DrawOneH1(), BmnTrackingQaReport::DrawOneH1(), DrawOneH1(), BmnPidQaReport::DrawOneH2(), BmnTrackingQaReport::DrawOneH2(), DrawOneH2(), BmnTrackingQaReport::DrawPar(), BmnTrackingQaReport::DrawResAndPull(), BmnPidQaReport::DrawThreeH1(), BmnTrackingQaReport::DrawThreeH1(), DrawThreeH1(), BmnPidQaReport::DrawThreeH2(), BmnTrackingQaReport::DrawThreeH2(), DrawThreeH2(), BmnPidQaReport::DrawTwoBananas(), BmnPidQaReport::DrawTwoH1(), BmnTrackingQaReport::DrawTwoH1(), DrawTwoH1(), BmnPidQaReport::DrawTwoH2(), DrawTwoH2(), BmnTrackingQaReport::DrawTwoH2(), BmnTrackingQaReport::DrawVertResGem(), BmnTrackingQaReport::FillAndFitSlice(), and BmnTrackingQaReport::PrintEventInfo().
|
inline |
Return pointer to Histogram manager.
Definition at line 76 of file BmnSimulationReport.h.
|
inline |
Definition at line 71 of file BmnSimulationReport.h.
Referenced by BmnProfQa::Init(), BmnQaBase::Init(), and BmnTrackingQaExp::Init().
|
inline |
Definition at line 71 of file BmnSimulationReport.h.
|
inline |
Definition at line 104 of file BmnSimulationReport.h.
Referenced by BmnPidQa::Finish(), and BmnTrackingQa::Finish().
|
inline |
Definition at line 104 of file BmnSimulationReport.h.
|
protected |
Definition at line 169 of file BmnSimulationReport.h.
Referenced by DrawTwoH1().