+ pd->Run(filename, title, rebin, others, flags, sys, sNN, trg, eff,
+ centMin, centMax, vzMin, vzMax, base, outflg);
+}
+
+/**
+ * Display usage information
+ *
+ */
+void
+UsageS()
+{
+ std::ostream& o = std::cout;
+ o << "Usage: DrawdNdeta(FILE,TITLE,OTHERS,OPTIONS,FORMATS,REBIN,EFF,"
+ << "CMIN,CMAX,IPZMIN,IPZMAX,BASE)\n"
+ << " const char* FILE File name to open (\"forward_dndeta.root\")\n"
+ << " const char* TITLE Title to put on plot (\"\")\n"
+ << " const char* OTHERS Other data to draw - more below (\"all\")\n"
+ << " const char* FLAGS Visualisation flags - more below (\"default\")\n"
+ << " const char* FMT (optional) Output formats (\"all\")\n"
+ << " UShort_t REBIN (optional) Rebinning factor (5)\n"
+ << " Float_t EFF (optional) Trigger efficiency\n"
+ << " Float_t IPZMIN (optional) Least z coordinate of IP\n"
+ << " Float_t IPZMAX (optional) Largest z coordinate of IP\n"
+ << " UShort_t CMIN (optional) Least centrality\n"
+ << " UShort_t CMAX (optional) Largest centrality\n"
+ << " const char* BASE (optional) base name of output files\n"
+ << "\n";
+ o << " OTHERS space separated list of\n"
+ << " UA5 Show UA5 data (INEL,NSD, ppbar, 900GeV)\n"
+ << " CMS Show CMS data (NSD, pp)\n"
+ << " ALICE Show published ALICE data (INEL,INEL>0,NSD, pp)\n"
+ << " WIP Show event genertor data/work-in-progress\n"
+ << "\n";
+ o << " FMT space separated list of \n"
+ << " PNG Make PNG output\n"
+ << " PDF Make PDF output\n"
+ << " ROOT Make ROOT file output\n"
+ << " C Make ROOT script output\n"
+ << "\n";
+ o << " FLAGS is a bit mask of\n"
+ << " ratio Show ratios of data to other data and possibly MC\n"
+ << " asymmetry Show left-right asymmetry\n"
+ << " syserror Show systematic error band\n"
+ << " rings Show individual ring results (INEL only)\n"
+ << " noedges Cut edges when rebinning\n"
+ << " noouters Remove FMDxO points\n"
+ << " finalmc Apply `final MC' correction\n"
+ << " empirical[=URL] Apply `Emperical' correction\n"
+ << " mb Force use of MB\n"
+ << " mirror Mirror data\n"
+ << " export Export results to script\n"
+ << " exec Add code to do combined zooms on eta axis\n"
+ << " old Assume old-style input\n"
+ << " verbose Be verbose\n"
+ << " hires Hi-res batch output\n"
+ << " extrawhite Add aditional white-space above results\n"
+ << " logo Add ALICE logo\n"
+ << " nocentral Do not plot cluster data\n"
+ << " nolabels No labels on y-axis\n"
+ << "\n";
+ o << "finalmc requires the file forward_dndetamc.root\n"
+ << "empirical requires the histogram at URL \n"
+ << std::endl;
+
+}
+
+void
+Draw(const char* filename,
+ const char* title="",
+ const char* others="ALL",
+ const char* options="DEFAULT",
+ const char* outFlg="ALL",
+ UShort_t rebin=5,
+ Float_t eff=0,
+ UShort_t centMin=0,
+ UShort_t centMax=0,
+ Float_t vzMin=+999,
+ Float_t vzMax=-999,
+ const char* base="")
+{
+ TString fname(filename);
+ fname.ToLower();
+ if (fname.CompareTo("help") == 0 ||
+ fname.CompareTo("--help") == 0) {
+ UsageS();
+ return;
+ }
+
+ dNdetaDrawer* pd = new dNdetaDrawer;
+ pd->SetEmpirical("file://../empirical.root#default");
+
+ pd->Run(filename, title, others, options, outFlg, rebin, eff,
+ centMin, centMax, vzMin, vzMax, base);