Auxiliary class to manage set of histograms.
More...
#include <JHistogramToolkit.hh>
|
void | insert (const JKey &key, const Int_t nx, const Double_t xmin, const Double_t xmax, const double logx=false) |
| Insert set of histograms. More...
|
|
void | Fill (const JFit &fA, const JFit &fB, const bool option) |
| Fill histograms. More...
|
|
void | Scale () |
| Scale histograms. More...
|
|
void | Write (TFile &out) |
| Write histograms to file. More...
|
|
void | Write (const char *file_name) |
| Write histograms to file. More...
|
|
Auxiliary class to manage set of histograms.
Definition at line 160 of file JHistogramToolkit.hh.
◆ insert()
void JManager::insert |
( |
const JKey & |
key, |
|
|
const Int_t |
nx, |
|
|
const Double_t |
xmin, |
|
|
const Double_t |
xmax, |
|
|
const double |
logx = false |
|
) |
| |
|
inline |
Insert set of histograms.
- Parameters
-
key | key |
nx | number of bins |
xmin | minimal abscissa value |
xmax | maximal abscissa value |
logx | log10(x) |
Definition at line 172 of file JHistogramToolkit.hh.
180 TH1D* hA =
new TH1D((
"[A " + key.
name +
"]").c_str(), NULL, nx, xmin, xmax);
181 TH1D* hB =
new TH1D((
"[B " + key.
name +
"]").c_str(), NULL, nx, xmin, xmax);
182 TH1D* hC =
new TH1D((
"[C " + key.
name +
"]").c_str(), NULL, nx, -xmax, xmax);
183 TH1D* hD =
new TH1D((
"[D " + key.
name +
"]").c_str(), NULL, nx, -xmax, xmax);
◆ Fill()
void JManager::Fill |
( |
const JFit & |
fA, |
|
|
const JFit & |
fB, |
|
|
const bool |
option |
|
) |
| |
|
inline |
Fill histograms.
- Parameters
-
fA | first fit result |
fB | second fit result |
option | option |
Definition at line 196 of file JHistogramToolkit.hh.
198 for (
iterator i = begin(); i != end(); ++i) {
200 const int index = i->first.index;
203 i->second.Fill(fA.
getQ(), fB.
getQ(), option);
204 }
else if (fA.
hasW(index) && fB.
hasW(index)) {
205 i->second.Fill(fA.
getW(index), fB.
getW(index), option);
◆ Scale()
◆ Write() [1/2]
void JManager::Write |
( |
TFile & |
out | ) |
|
|
inline |
Write histograms to file.
- Parameters
-
Definition at line 227 of file JHistogramToolkit.hh.
229 for (
iterator i = this->begin(); i != this->end(); ++i) {
230 i->second.Write(out);
◆ Write() [2/2]
void JManager::Write |
( |
const char * |
file_name | ) |
|
|
inline |
Write histograms to file.
- Parameters
-
Definition at line 240 of file JHistogramToolkit.hh.
242 TFile out(file_name,
"RECREATE");
The documentation for this struct was generated from the following file: