|
DAS
3.0
Das Analysis System
|
#include <MjjYbYs.h>
◆ MjjYbYsFiller()
Constructor.
23 ,
rEv(reader,
"recEvent")
◆ fillMC()
See Observable::fillMC
Reimplemented from Filler.
107 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
111 double recW =
rEv->Weight(v);
116 double genW = (*gEv)->Weight(v);
119 if (igen > 0) v.
gen->Fill(igen, genW);
122 if (irec > 0 && igen > 0) { v.
RM->Fill(igen, irec, genW * recW );
124 else if (irec == 0 && igen > 0) v.
missOut->Fill(igen, genW );
125 else if (irec > 0 && igen == 0) v.
fakeOut->Fill( irec, genW * recW );
129 if (irec > 0) v.
fakeNoMatch->Fill(irec, genW * recW);
◆ fillRec()
See Observable::fillRec
Reimplemented from Filler.
89 if (!dijet)
return {};
92 if (i == 0)
return {};
94 double w =
rEv->Weight(v);
95 if (
obs.
isMC)
w *= (*gEv)->Weight(v);
◆ match()
Match the two pairs of leading jets (if any) and set matched
member.
Reimplemented from Filler.
31 auto match = [
this](
size_t i,
size_t j) {
34 using ROOT::Math::VectorUtil::DeltaR;
35 auto DR = DeltaR(g, r);
◆ genJets
std::optional<TTreeReaderArray<GenJet> > genJets |
◆ gEv
std::optional<TTreeReaderValue<GenEvent> > gEv |
◆ matched
std::optional<bool> matched |
◆ obs
Backreference to the observable.
◆ recJets
TTreeReaderArray<RecJet> recJets |
◆ rEv
The documentation for this struct was generated from the following files:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/MjjYbYs.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/MjjYbYs.cc
double getBinNumber(const Di< Jet, Jet > &MNjets, const Uncertainties::Variation &v, TUnfoldBinning *bng)
Definition: MNjets.cc:47
MjjYbYs obs
Backreference to the observable.
Definition: MjjYbYs.h:53
Di< const Jet, const Jet > selection(const TTreeReaderArray< Jet > &jets, const Uncertainties::Variation &v=Uncertainties::nominal)
Mueller-Navelet jet selection.
Definition: MNjets.cc:24
double Weight(const Uncertainties::Variation &v=Uncertainties::nominal) const override
Definition: Di.h:73
std::optional< TTreeReaderValue< GenEvent > > gEv
Definition: MjjYbYs.h:57
std::unique_ptr< TH1 > rec
reconstructed-level distribution
Definition: DistVariation.h:32
std::optional< bool > matched
Definition: MjjYbYs.h:68
void match() override
Match the two pairs of leading jets (if any) and set matched member.
Definition: MjjYbYs.cc:27
static const float w
Definition: common.h:47
TUnfoldBinning * genBinning
particle-level binning
Definition: Observable.h:150
static bool isMC
Definition: Observable.h:144
auto initOptionalBranch(TTreeReader &reader, const char *name)
Definition: Observable.h:39
DAS::RecDijet recdijet
Definition: classes.h:34
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
TTreeReaderValue< RecEvent > rEv
Definition: MjjYbYs.h:58
std::optional< TTreeReaderArray< GenJet > > genJets
Definition: MjjYbYs.h:55
std::unique_ptr< TH1 > missNoMatch
losses (unmatched entries)
Definition: DistVariation.h:35
TTreeReaderArray< RecJet > recJets
Definition: MjjYbYs.h:56
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
std::unique_ptr< TH1 > fakeNoMatch
background (unmatched entries)
Definition: DistVariation.h:37
ROOT::Math::LorentzVector< ROOT::Math::PtEtaPhiM4D< float > > FourVector
Definition: PhysicsObject.h:15
TUnfoldBinning * recBinning
detector-level binning
Definition: Observable.h:149
std::unique_ptr< TH1 > fakeOut
background (migration out of phase space)
Definition: DistVariation.h:38
DAS::GenDijet gendijet
Definition: classes.h:31
static double maxDR
max Delta R
Definition: Observable.h:146