|
DAS
3.0
Das Analysis System
|
#include <MjjYmax.h>
◆ MjjYmaxFiller()
Constructor.
23 ,
rEv(reader,
"recEvent")
◆ fillMC()
See Observable::fillMC
Reimplemented from Filler.
106 BOOST_THROW_EXCEPTION( runtime_error(__func__ +
" should only be called for MC"s) );
110 double recW =
rEv->Weight(v);
115 double genW = (*gEv)->Weight(v);
118 if (igen > 0) v.
gen->Fill(igen, genW);
121 if (irec > 0 && igen > 0) { v.
RM->Fill(igen, irec, genW * recW );
123 else if (irec == 0 && igen > 0) v.
missOut->Fill(igen, genW );
124 else if (irec > 0 && igen == 0) v.
fakeOut->Fill( irec, genW * recW );
128 if (irec > 0) v.
fakeNoMatch->Fill(irec, genW * recW);
◆ fillRec()
See Observable::fillRec
Reimplemented from Filler.
88 if (!dijet)
return {};
91 if (i == 0)
return {};
93 double w =
rEv->Weight(v);
94 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/MjjYmax.h
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/src/MjjYmax.cc
double getBinNumber(const Di< Jet, Jet > &MNjets, const Uncertainties::Variation &v, TUnfoldBinning *bng)
Definition: MNjets.cc:47
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::unique_ptr< TH1 > rec
reconstructed-level distribution
Definition: DistVariation.h:32
std::optional< bool > matched
Definition: MjjYmax.h:70
std::optional< TTreeReaderValue< GenEvent > > gEv
Definition: MjjYmax.h:59
static const float w
Definition: common.h:51
MjjYmax obs
Backreference to the observable.
Definition: MjjYmax.h:55
TUnfoldBinning * genBinning
particle-level binning
Definition: Observable.h:150
TTreeReaderArray< RecJet > recJets
Definition: MjjYmax.h:58
void match() override
Match the two pairs of leading jets (if any) and set matched member.
Definition: MjjYmax.cc:27
static bool isMC
Definition: Observable.h:144
TTreeReaderValue< RecEvent > rEv
Definition: MjjYmax.h:60
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
std::unique_ptr< TH1 > missNoMatch
losses (unmatched entries)
Definition: DistVariation.h:35
std::optional< TTreeReaderArray< GenJet > > genJets
Definition: MjjYmax.h:57
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