#include <ZmmY.h>
◆ ZmmYFiller()
◆ computeObservableValue()
◆ computeObservableValue2D()
| virtual std::vector<double> computeObservableValue2D |
( |
const void * |
event, |
|
|
const Uncertainties::Variation & |
v, |
|
|
bool |
isGen |
|
) |
| const |
|
inlineprotectedvirtual |
◆ fillMC()
Fill RM, gen, miss, fake histograms for a given variation.
Reimplemented from Filler.
56 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
58 int genBin = 0, recBin = 0;
67 if (genBin > 0) v.gen->Fill(genBin, gInfo.weight);
69 if (genBin > 0 && recBin > 0) {
70 v.RM ->Fill(genBin, recBin,
rInfo.weight);
71 v.missOut->Fill(genBin, gInfo.weight -
rInfo.weight);
72 }
else if (genBin > 0 && recBin <= 0)
73 v.missOut->Fill(genBin, gInfo.weight );
74 else if (genBin <= 0 && recBin >= 0)
75 v.fakeOut->Fill( recBin,
rInfo.weight);
◆ fillRec()
For a given variation, fills the detector level distribution, as well as a temporary histogram (reset at each event) to calculate the covariance matrix later on. The bin IDs are returned to avoid looping over many empty bins.
Reimplemented from Filler.
47 if (bin <= 0)
return {};
48 v.tmp->Fill(bin,
rInfo.weight);
49 v.rec->Fill(bin,
rInfo.weight);
◆ GetBinNumber()
18 const double value =
computeObservableValue(
static_cast<const void*
>(&event), v, std::is_same<MUON, GenMuon>::value);
19 return binning->GetGlobalBinNumber(value);
◆ GetBinNumber2D()
24 const auto values =
computeObservableValue2D(
static_cast<const void*
>(&event), v, std::is_same<MUON, GenMuon>::value);
25 if (values.size() != 2)
return 0;
26 return binning->GetGlobalBinNumber(values[0], values[1]);
◆ getObs()
◆ getObsDimension()
| virtual int getObsDimension |
( |
| ) |
const |
|
inlinevirtual |
◆ match()
Implementation of matching algorithm.
Reimplemented from Filler.
◆ genMuons
◆ genPhotons
◆ gEv
◆ recMuons
◆ recPhotons
◆ rEv
◆ rInfo
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/ZmmY.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/ZmmY.cc