NAGASH 0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
Plot2D.h
Go to the documentation of this file.
1//***************************************************************************************
4//***************************************************************************************
5
6#pragma once
7
8#include "NAGASH/NGHist.h"
9
10namespace NAGASH
11{
15
25 template <>
26 template <>
27 inline NGHist<TH2D>::NGHist(std::shared_ptr<MSGTool> MSG, std::shared_ptr<ConfigTool> c, const TString &name, const TString &filename, const int &binnumx, const double &startx, const double &endx, const std::vector<double> &bindivy)
28 : HistBase(MSG, c, name, filename)
29 {
30 Nominal = new TH2D(GetResultName(), GetResultName(), binnumx, startx, endx, (int)bindivy.size() - 1, bindivy.data());
31 Nominal->Sumw2();
32 Nominal->SetDirectory(0);
34 }
35
45 template <>
46 template <>
47 inline NGHist<TH2D>::NGHist(std::shared_ptr<MSGTool> MSG, std::shared_ptr<ConfigTool> c, const TString &name, const TString &filename, const std::vector<double> &bindivx, const int &binnumy, const double &starty, const double &endy)
48 : HistBase(MSG, c, name, filename)
49 {
50 Nominal = new TH2D(GetResultName(), GetResultName(), (int)bindivx.size() - 1, bindivx.data(), binnumy, starty, endy);
51 Nominal->Sumw2();
52 Nominal->SetDirectory(0);
54 }
55
63 template <>
64 template <>
65 inline NGHist<TH2D>::NGHist(std::shared_ptr<MSGTool> MSG, std::shared_ptr<ConfigTool> c, const TString &name, const TString &filename, const std::vector<double> &bindivx, const std::vector<double> &bindivy)
66 : HistBase(MSG, c, name, filename)
67 {
68 Nominal = new TH2D(GetResultName(), GetResultName(), (int)bindivx.size() - 1, bindivx.data(), (int)bindivy.size() - 1, bindivy.data());
69 Nominal->Sumw2();
70 Nominal->SetDirectory(0);
72 }
73
74}
Virtual base class for histograms.
Definition HistBase.h:27
NAGASH interface for using ROOT histograms.
Definition NGHist.h:18
HistType * Nominal
Definition NGHist.h:23
HistType * FillHist
Definition NGHist.h:22
NGHist(std::shared_ptr< MSGTool > MSG, std::shared_ptr< ConfigTool > c, const TString &name, const TString &filename, const Args &...args)
Constructor.
Definition NGHist.h:355
const TString & GetResultName()
Definition Result.h:70