|
DAS
3.0
Das Analysis System
|
#include <ZPtY.h>
◆ ZPtYFiller()
Constructor.
66 ,
rEv(reader,
"recEvent")
◆ fillMC()
See Filler::fillMC
Reimplemented from Filler.
87 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
89 auto rEvW =
rEv->Weight(v),
90 gEvW = (*gEv)->Weight(v);
95 const double genMuW = genBin > 0 ? getWeight(*
genMuons, v) : 0;
96 const double recMuW = recBin > 0 ? getWeight(
recMuons, v) : 0;
98 if (genBin > 0) v.
gen->Fill(genBin, gEvW * genMuW);
100 if (genBin > 0 && recBin > 0) {
102 v.
RM ->Fill(genBin, recBin, gEvW * genMuW * rEvW * recMuW);
103 v.
missOut->Fill(genBin, gEvW * genMuW * (1 - rEvW * recMuW));
104 }
else if (genBin > 0 && recBin <= 0)
106 v.
missOut->Fill(genBin, gEvW * genMuW );
107 else if (genBin <= 0 && recBin >= 0)
109 v.
fakeOut->Fill( recBin, gEvW * rEvW * recMuW);
◆ fillRec()
See Filler::fillRec
Reimplemented from Filler.
71 double evW =
rEv->Weight(v);
72 if (
obs.
isMC) evW *= (*gEv)->Weight(v);
75 if (bin <= 0)
return {};
77 const double muW = getWeight(
recMuons, v);
78 v.
tmp->Fill(bin, evW * muW);
79 v.
rec->Fill(bin, evW * muW);
◆ match()
Matching is not needed.
Reimplemented from Filler.
◆ genMuons
std::optional<TTreeReaderArray<GenMuon> > genMuons |
◆ gEv
std::optional<TTreeReaderValue<GenEvent> > gEv |
◆ obs
Backreference to the observable.
◆ recMuons
◆ rEv
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/ZPtY.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/ZPtY.cc
double getBinNumber(const Di< Jet, Jet > &MNjets, const Uncertainties::Variation &v, TUnfoldBinning *bng)
Definition: MNjets.cc:47
TTreeReaderArray< RecMuon > recMuons
Definition: ZPtY.h:61
std::unique_ptr< TH1 > rec
reconstructed-level distribution
Definition: DistVariation.h:32
TTreeReaderValue< RecEvent > rEv
Definition: ZPtY.h:63
TUnfoldBinning * genBinning
particle-level binning
Definition: Observable.h:150
ZPtY obs
Backreference to the observable.
Definition: ZPtY.h:58
std::optional< TTreeReaderValue< GenEvent > > gEv
Definition: ZPtY.h:62
std::optional< TTreeReaderArray< GenMuon > > genMuons
Definition: ZPtY.h:60
static bool isMC
Definition: Observable.h:144
auto initOptionalBranch(TTreeReader &reader, const char *name)
Definition: Observable.h:39
std::unique_ptr< TH1 > gen
generated-level distribution
Definition: DistVariation.h:34
std::unique_ptr< TH1 > tmp
temporary histogram help fill the covariance matrix
Definition: DistVariation.h:33
std::unique_ptr< TH2 > RM
response matrix
Definition: DistVariation.h:42
std::unique_ptr< TH1 > missOut
losses (migration out of phase space)
Definition: DistVariation.h:36
TUnfoldBinning * recBinning
detector-level binning
Definition: Observable.h:149
std::unique_ptr< TH1 > fakeOut
background (migration out of phase space)
Definition: DistVariation.h:38