#include <BF.h>
◆ BFFiller()
Constructor.
27 ,
rEv(reader,
"recEvent")
◆ fillMC()
See Filler::fillMC
- Todo:
- no weight for gen photons?
Reimplemented from Filler.
111 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
116 optional<int> igenbin;
117 optional<double> genZW;
124 FourVector Z = v.getCorrP4(m0) + v.getCorrP4(m1);
127 genZW = v.getWeight(m0) * v.getWeight(m1);
129 if (goodMass(mass)) {
131 if (*igenbin == 0)
cerr <<
red << mass <<
'\n' <<
def;
133 else if (mass >= 40 &&
genPhotons->GetSize() > 0) {
137 if (!
p.zAncestor)
continue;
138 if (
p.p4.Pt() < 20)
continue;
139 if (abs(
p.p4.Eta()) >= 2.5)
continue;
144 if (found && goodMass(Z.M())) {
146 if (*igenbin == 0)
cerr <<
red << mass <<
'\n' <<
def;
152 if (igenbin) v.gen->Fill(*igenbin, gEvW * *genZW);
156 v.RM ->Fill(*igenbin, *
irecbin, gEvW * *genZW * rEvW * *
recZW);
157 v.missOut->Fill(*igenbin, gEvW * *genZW * (1 - rEvW * *
recZW));
158 }
else if (igenbin && !
irecbin)
160 v.missOut->Fill(*igenbin, gEvW * *genZW );
◆ fillRec()
See Filler::fillRec
- Todo:
- use corrected 4-vec
Reimplemented from Filler.
60 FourVector Z = v.getCorrP4(m0) + v.getCorrP4(m1);
63 recZW = v.getWeight(m0) * v.getWeight(m1);
80 if (
p.p4.Pt() < 20)
continue;
81 if (abs(
p.p4.Eta()) > 2.5)
continue;
83 bool tooClose =
false;
85 tooClose |= DeltaR(
p.p4,m.p4) < 0.1;
86 if (tooClose)
continue;
94 if (found && goodMass(mass)) {
◆ match()
◆ selection()
bool selection |
( |
const TTreeReaderArray< Muon > & |
muons, |
|
|
const DistVariation & |
v |
|
) |
| |
Makes selection on muons, but not on the dimuon system.
35 if (
muons.GetSize() < 2)
return false;
37 const auto& m0 =
muons.At(0),
40 return (m0.Q * m1.Q == -1)
41 && (v.getCorrP4(m0).Pt() >= 20)
42 && (v.getCorrP4(m1).Pt() >= 15)
43 && (abs(m0.p4.Eta()) < 2.4)
44 && (abs(m1.p4.Eta()) < 2.4);
◆ genMuons
std::optional<TTreeReaderArray<GenMuon> > genMuons |
◆ genPhotons
std::optional<TTreeReaderArray<GenPhoton> > genPhotons |
◆ gEv
std::optional<TTreeReaderValue<GenEvent> > gEv |
◆ irecbin
std::optional<int> irecbin |
|
private |
◆ obs
Backreference to the observable.
◆ recMuons
◆ recPhotons
◆ recZW
std::optional<float> recZW |
|
private |
◆ rEv
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/BF.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/BF.cc