DAS  3.0
Das Analysis System
Dist

Description

Functor to extract a 1D distribution with a physical axis from a ND distribution with bin IDs.

Intended to be used together with axisLoop and nodeLoop.

Public Member Functions

void operator() (TDirectory *dOut, TString name, TUnfoldBinning *node, vector< double > x, TString title)
 

Public Attributes

TH1 * hIn
 

Member Function Documentation

◆ operator()()

void operator() ( TDirectory *  dOut,
TString  name,
TUnfoldBinning *  node,
vector< double >  x,
TString  title 
)
inline
Parameters
dOutoutput directory
namehist name in output directory
nodelocal node
xphysical values
titlesimplistic title, based on bin edges
64  {
65  const TVectorD * edges = node->GetDistributionBinning(0);
66  int nbins = edges->GetNrows()-1;
67  TH1F hOut(name, title, nbins, edges->GetMatrixArray());
68  for (int ibin = 1; ibin <= nbins; ++ibin) {
69  x.front() = hOut.GetBinLowEdge(ibin);
70  int Ibin = node->GetGlobalBinNumber(x.data());
71  auto content = hIn->GetBinContent(Ibin);
72  hOut.SetBinContent(ibin, content);
73  }
74  hOut.SetDirectory(dOut);
75  hOut.SetMinimum(hIn->GetMinimum());
76  hOut.SetMaximum(hIn->GetMaximum());
77  hOut.Write();
78  }

Member Data Documentation

◆ hIn

TH1* hIn

input histogram with bin IDs


The documentation for this struct was generated from the following file:
DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.name
name
Definition: DYToLL_M-50_13TeV_pythia8_cff_GEN_SIM_RECOBEFMIX_DIGI_L1_DIGI2RAW_L1Reco_RECO.py:48
DAS::Unfolding::ExtractHistogram::Dist::hIn
TH1 * hIn
input histogram with bin IDs
Definition: getUnfPhysDist.cc:57