Go to the documentation of this file.
9 #include <boost/assign/list_of.hpp>
11 using boost::assign::list_of;
13 using std::stringstream;
39 Int_t nofStudies =
HM().size();
41 "lmvm_study_report_bg_minv_ptcut",
44 vector<TH1*> histos1(nofStudies);
45 vector<string> legendNames;
46 for (Int_t iStudy = 0; iStudy < nofStudies; iStudy++) {
47 histos1[iStudy] =
HM()[iStudy]->H1(
"fh_bg_minv_ptcut");
48 histos1[iStudy]->Rebin(20);
50 histos1[iStudy]->Scale(1. / 20.);
51 histos1[iStudy]->GetXaxis()->SetRangeUser(0, 2.);
58 Int_t nofStudies =
HM().size();
60 "lmvm_study_report_sbg_vs_minv_ptcut",
63 vector<TH1*> histos1(nofStudies);
64 vector<string> legendNames;
65 for (Int_t iStudy = 0; iStudy < nofStudies; iStudy++) {
66 histos1[iStudy] =
HM()[iStudy]->H1(
"fh_sbg_vs_minv_ptcut");
69 histos1[iStudy]->GetXaxis()->SetRangeUser(0, 2.);
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 automati...
Base class for study reports.
virtual std::string DocumentBegin() const =0
Return string with open tags for document.
virtual std::string DocumentEnd() const =0
Return string with close tags of the document.
const CbmReportElement * R() const
Accessor to CbmReportElement object. User has to write the report using available tags from CbmReport...
virtual ~CbmAnaDielectronStudyReportAll()
Destructor.
void DrawBgMinv()
Draw Invariant mass of combinatorial BG.
Helper functions for drawing 1D and 2D histograms and graphs.
Abstract class for basic report elements (headers, tables, images etc.).
void SetReportName(const std::string &name)
void DrawH1(TH1 *hist, HistScale logx, HistScale logy, const string &drawOpt, Int_t color, Int_t lineWidth, Int_t lineStyle, Int_t markerSize, Int_t markerStyle)
void PrintCanvases() const
Print images created from canvases in the report.
const std::vector< CbmHistManager * > & HM() const
void Draw()
Inherited from CbmLitStudyReport.
const std::vector< std::string > & GetStudyNames() const
std::ostream & Out() const
All text output goes to this stream.
void SetDefaultDrawStyle()
CbmAnaDielectronStudyReportAll()
Constructor.
void Create()
Inherited from CbmLitStudyReport.
virtual std::string Title(int size, const std::string &title) const =0
Return string with title.
void DrawSBgMinv()
Draw S/Bg ratio vs invariant mass.
void SetReportTitle(const std::string &title)