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
55  :
56  name(Name), iJEC(IJEC),
57  iGenJetWgt(IGenJetWgt), iRecJetWgt(IRecJetWgt),
58  iGenEvtWgt(IGenEvtWgt), iRecEvtWgt(IRecEvtWgt),
59  rec(nullptr), tmp(nullptr), gen(nullptr),
60  missNoMatch(nullptr), missOut(nullptr),
61  fakeNoMatch(nullptr), fakeOut(nullptr),
62  cov(nullptr), RM(nullptr)
63  {
64  rec = new TH1D(Name + "rec", "detector level", nRecBins, recBins.data()),
65  tmp = new TH1D(Name + "tmp", "", nRecBins, recBins.data());
66  cov = new TH2D(Name + "cov", "covariance matrix of detector level", nRecBins, recBins.data(), nRecBins, recBins.data());
67  if (!isMC) return;
68  gen = new TH1D(Name + "gen" , "hadron level", nGenBins, genBins.data()),
69  missNoMatch = new TH1D(Name + "missNoMatch", "real inefficiency" , nGenBins, genBins.data()),
70  missOut = new TH1D(Name + "missOut" , "good gen jets matched to jets reconstructed out of the phase space", nGenBins, genBins.data()),
71  fakeNoMatch = new TH1D(Name + "fakeNoMatch", "real background" , nRecBins, recBins.data()),
72  fakeOut = new TH1D(Name + "fakeOut" , "good rec jets matched to jets generated out of the phase space", nRecBins, recBins.data()),
73  RM = new TH2D(Name + "RM", "migrations of jets in phase space at both levels", nGenBins, genBins.data(), nRecBins, recBins.data());
75  }

Member Function Documentation

◆ Write()

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

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:49
DAS::Unfolding::InclusiveJet1D::PtVariation::tmp
TH1 * tmp
Definition: getUnfHistPt.cc:48
DAS::Unfolding::InclusiveJet1D::PtVariation::iRecEvtWgt
const size_t iRecEvtWgt
Definition: getUnfHistPt.cc:47
DAS::Unfolding::InclusiveJet1D::PtVariation::missNoMatch
TH1 * missNoMatch
Definition: getUnfHistPt.cc:49
DAS::Unfolding::InclusiveJet1D::PtVariation::name
const TString name
Definition: getUnfHistPt.cc:44
Ntupliser_cfg.p
p
Definition: Ntupliser_cfg.py:358
DAS::Unfolding::InclusiveJet1D::PtVariation::RM
TH2 * RM
Definition: getUnfHistPt.cc:51
DAS::Unfolding::InclusiveJet1D::PtVariation::iRecJetWgt
const size_t iRecJetWgt
Definition: getUnfHistPt.cc:46
DAS::Unfolding::InclusiveJet1D::PtVariation::iJEC
const size_t iJEC
Definition: getUnfHistPt.cc:46
PAIR
#define PAIR(name)
DAS::Unfolding::InclusiveJet1D::nGenBins
static const int nGenBins
Definition: getUnfHistPt.cc:37
DAS::Unfolding::InclusiveJet1D::PtVariation::rec
TH1 * rec
Definition: getUnfHistPt.cc:48
DAS::Unfolding::InclusiveJet1D::PtVariation::cov
TH2 * cov
Definition: getUnfHistPt.cc:51
DAS::Unfolding::InclusiveJet1D::PtVariation::fakeNoMatch
TH1 * fakeNoMatch
Definition: getUnfHistPt.cc:50
DAS::Unfolding::InclusiveJet1D::PtVariation::iGenJetWgt
const size_t iGenJetWgt
Definition: getUnfHistPt.cc:46
DAS::Unfolding::InclusiveJet1D::PtVariation::iGenEvtWgt
const size_t iGenEvtWgt
Definition: getUnfHistPt.cc:47
DAS::Unfolding::InclusiveJet1D::nRecBins
static const int nRecBins
Definition: getUnfHistPt.cc:36
DAS::Unfolding::InclusiveJet1D::genBins
static const std::vector< double > genBins
Definition: getUnfHistPt.cc:34
DAS::Unfolding::InclusiveJet1D::PtVariation::gen
TH1 * gen
Definition: getUnfHistPt.cc:48
DAS::Unfolding::InclusiveJet1D::PtVariation::isMC
static bool isMC
Definition: getUnfHistPt.cc:45
DAS::Unfolding::InclusiveJet1D::PtVariation::fakeOut
TH1 * fakeOut
Definition: getUnfHistPt.cc:50
DAS::Unfolding::InclusiveJet1D::recBins
static const std::vector< double > recBins
Definition: getUnfHistPt.cc:33