DAS  3.0
Das Analysis System
PtVariation

Description

Holds the histograms and indices corresponding to one variation.

Public Member Functions

 PtVariation (TString Name, size_t IJEC=0, size_t IGenJetWgt=0, size_t IRecJetWgt=0, size_t IGenEvtWgt=0, size_t IRecEvtWgt=0)
 
void Write (TFile *file)
 

Public Attributes

const TString name
 
const size_t iJEC
 
const size_t iGenJetWgt
 
const size_t iRecJetWgt
 
const size_t iGenEvtWgt
 
const size_t iRecEvtWgt
 
TH1 * rec
 
TH1 * tmp
 
TH1 * gen
 
TH1 * missNoMatch
 
TH1 * missOut
 
TH1 * fakeNoMatch
 
TH1 * fakeOut
 
TH2 * cov
 
TH2 * RM
 

Static Public Attributes

static bool isMC = false
 

Constructor & Destructor Documentation

◆ PtVariation()

PtVariation ( TString  Name,
size_t  IJEC = 0,
size_t  IGenJetWgt = 0,
size_t  IRecJetWgt = 0,
size_t  IGenEvtWgt = 0,
size_t  IRecEvtWgt = 0 
)
inline
Todo:
investigate the migrations out of the phase space with the underflow and overflow
57  :
58  name(Name), iJEC(IJEC),
59  iGenJetWgt(IGenJetWgt), iRecJetWgt(IRecJetWgt),
60  iGenEvtWgt(IGenEvtWgt), iRecEvtWgt(IRecEvtWgt),
61  rec(nullptr), tmp(nullptr), gen(nullptr),
62  missNoMatch(nullptr), missOut(nullptr),
63  fakeNoMatch(nullptr), fakeOut(nullptr),
64  cov(nullptr), RM(nullptr)
65  {
66  rec = new TH1D(Name + "rec", "detector level", nRecBins, recBins.data()),
67  tmp = new TH1D(Name + "tmp", "", nRecBins, recBins.data());
68  cov = new TH2D(Name + "cov", "covariance matrix of detector level", nRecBins, recBins.data(), nRecBins, recBins.data());
69  if (!isMC) return;
70  gen = new TH1D(Name + "gen" , "hadron level", nGenBins, genBins.data()),
71  missNoMatch = new TH1D(Name + "missNoMatch", "real inefficiency" , nGenBins, genBins.data()),
72  missOut = new TH1D(Name + "missOut" , "good gen jets matched to jets reconstructed out of the phase space", nGenBins, genBins.data()),
73  fakeNoMatch = new TH1D(Name + "fakeNoMatch", "real background" , nRecBins, recBins.data()),
74  fakeOut = new TH1D(Name + "fakeOut" , "good rec jets matched to jets generated out of the phase space", nRecBins, recBins.data()),
75  RM = new TH2D(Name + "RM", "migrations of jets in phase space at both levels", nGenBins, genBins.data(), nRecBins, recBins.data());
77  }

Member Function Documentation

◆ Write()

void Write ( TFile *  file)
inline
80  {
81  cout << "Writing " << name << endl;
82  file->cd();
83  TDirectory * dir = file->mkdir(name);
84  dir->cd();
85 #define PAIR(name) make_pair(dynamic_cast<TH1*>(name), #name)
86  for (auto p: { PAIR(gen), PAIR(missNoMatch), PAIR(missOut),
88  PAIR(cov), PAIR(RM) }) {
89 #undef PAIR
90  if (p.first == nullptr) continue;
91  p.first->SetDirectory(dir);
92  p.first->Write(p.second);
93  }
94  }

Member Data Documentation

◆ cov

TH2* cov

◆ fakeNoMatch

TH1 * fakeNoMatch

◆ fakeOut

TH1 * fakeOut

◆ gen

TH1 * gen

◆ iGenEvtWgt

const size_t iGenEvtWgt

◆ iGenJetWgt

const size_t iGenJetWgt

◆ iJEC

const size_t iJEC

◆ iRecEvtWgt

const size_t iRecEvtWgt

◆ iRecJetWgt

const size_t iRecJetWgt

◆ isMC

bool isMC = false
static

◆ missNoMatch

TH1 * missNoMatch

◆ missOut

TH1 * missOut

◆ name

const TString name

◆ rec

TH1* rec

◆ RM

TH2 * RM

◆ tmp

TH1 * tmp

The documentation for this struct was generated from the following file:
DAS::Unfolding::InclusiveJet1D::PtVariation::missOut
TH1 * missOut
Definition: getUnfHistPt.cc:51
DAS::Unfolding::InclusiveJet1D::PtVariation::tmp
TH1 * tmp
Definition: getUnfHistPt.cc:50
DAS::Unfolding::InclusiveJet1D::PtVariation::iRecEvtWgt
const size_t iRecEvtWgt
Definition: getUnfHistPt.cc:49
DAS::Unfolding::InclusiveJet1D::PtVariation::missNoMatch
TH1 * missNoMatch
Definition: getUnfHistPt.cc:51
DAS::Unfolding::InclusiveJet1D::PtVariation::name
const TString name
Definition: getUnfHistPt.cc:46
Ntupliser_cfg.p
p
Definition: Ntupliser_cfg.py:178
DAS::Unfolding::InclusiveJet1D::PtVariation::RM
TH2 * RM
Definition: getUnfHistPt.cc:53
DAS::Unfolding::InclusiveJet1D::PtVariation::iRecJetWgt
const size_t iRecJetWgt
Definition: getUnfHistPt.cc:48
DAS::Unfolding::InclusiveJet1D::PtVariation::iJEC
const size_t iJEC
Definition: getUnfHistPt.cc:48
PAIR
#define PAIR(name)
DAS::Unfolding::InclusiveJet1D::nGenBins
static const int nGenBins
Definition: getUnfHistPt.cc:39
DAS::Unfolding::InclusiveJet1D::PtVariation::rec
TH1 * rec
Definition: getUnfHistPt.cc:50
DAS::Unfolding::InclusiveJet1D::PtVariation::cov
TH2 * cov
Definition: getUnfHistPt.cc:53
DAS::Unfolding::InclusiveJet1D::PtVariation::fakeNoMatch
TH1 * fakeNoMatch
Definition: getUnfHistPt.cc:52
DAS::Unfolding::InclusiveJet1D::PtVariation::iGenJetWgt
const size_t iGenJetWgt
Definition: getUnfHistPt.cc:48
DAS::Unfolding::InclusiveJet1D::PtVariation::iGenEvtWgt
const size_t iGenEvtWgt
Definition: getUnfHistPt.cc:49
DAS::Unfolding::InclusiveJet1D::nRecBins
static const int nRecBins
Definition: getUnfHistPt.cc:38
DAS::Unfolding::InclusiveJet1D::genBins
static const std::vector< double > genBins
Definition: getUnfHistPt.cc:36
DAS::Unfolding::InclusiveJet1D::PtVariation::gen
TH1 * gen
Definition: getUnfHistPt.cc:50
DAS::Unfolding::InclusiveJet1D::PtVariation::isMC
static bool isMC
Definition: getUnfHistPt.cc:47
DAS::Unfolding::InclusiveJet1D::PtVariation::fakeOut
TH1 * fakeOut
Definition: getUnfHistPt.cc:52
DAS::Unfolding::InclusiveJet1D::recBins
static const std::vector< double > recBins
Definition: getUnfHistPt.cc:35