NAGASH 0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
Plot1D.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
22 template <>
23 template <>
24 inline NGHist<TH1D>::NGHist(std::shared_ptr<MSGTool> MSG, std::shared_ptr<ConfigTool> c, const TString &name, const TString &filename, const std::vector<double> &bindiv)
25 : HistBase(MSG, c, name, filename)
26 {
27 Nominal = new TH1D(GetResultName(), GetResultName(), (int)bindiv.size() - 1, bindiv.data());
28 Nominal->SetDirectory(0);
29 Nominal->Sumw2();
31 }
32
33}
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