|
DAS
3.0
Das Analysis System
|
#include <ZPtY.h>
◆ ZPtYFiller()
◆ fillMC()
See Filler::fillMC
Reimplemented from Filler.
87 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
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.
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
◆ 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
std::vector< RecMuon > * recMuons
Definition: ZPtY.h:60
std::unique_ptr< TH1 > rec
reconstructed-level distribution
Definition: DistVariation.h:32
GenEvent * gEv
Definition: ZPtY.h:61
std::vector< GenMuon > * genMuons
Definition: ZPtY.h:59
TUnfoldBinning * genBinning
particle-level binning
Definition: Observable.h:125
ZPtY obs
Backreference to the observable.
Definition: ZPtY.h:57
static bool isMC
Definition: Observable.h:119
double Weight(const Uncertainties::Variation &v) const
< weight
Definition: Event.h:25
std::unique_ptr< TH1 > gen
generated-level distribution
Definition: DistVariation.h:34
RecEvent * rEv
Definition: ZPtY.h:62
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:124
std::unique_ptr< TH1 > fakeOut
Definition: DistVariation.h:38