NAGASH
0.9.8
Next Generation Analysis System
Loading...
Searching...
No Matches
include
NAGASH
Plot2D.h
Go to the documentation of this file.
1
//***************************************************************************************
4
//***************************************************************************************
5
6
#pragma once
7
8
#include "
NAGASH/NGHist.h
"
9
10
namespace
NAGASH
11
{
14
using
Plot2D
=
NGHist<TH2D>
;
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);
33
FillHist
=
Nominal
;
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);
53
FillHist
=
Nominal
;
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);
71
FillHist
=
Nominal
;
72
}
73
74
}
NGHist.h
NAGASH::HistBase
Virtual base class for histograms.
Definition
HistBase.h:27
NAGASH::NGHist
NAGASH interface for using ROOT histograms.
Definition
NGHist.h:18
NAGASH::NGHist::Nominal
HistType * Nominal
Definition
NGHist.h:23
NAGASH::NGHist::FillHist
HistType * FillHist
Definition
NGHist.h:22
NAGASH::NGHist::NGHist
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
NAGASH::Result::GetResultName
const TString & GetResultName()
Definition
Result.h:70
NAGASH
Definition
Analysis.h:232
Generated on Mon Sep 2 2024 14:24:32 for NAGASH by
1.9.8