 |
DAS
3.0
Das Analysis System
|
template<class Muon, class Photon>
struct DAS::Unfolding::ZmmY::EventInfo< Muon, Photon >
Implements the event selection and categorization common to all ZmmY observables, and saves some relevant intermediate calculations.
- Template Parameters
-
Muon | Only prepared to handle muons (gen or rec) |
Photon | Gen or rec photons |
#include <ZmmYCommon.h>
◆ EventInfo() [1/2]
Default constructor to enable use as a variable in fillers.
◆ EventInfo() [2/2]
Main constructor.
- Todo:
- We may need to reorder photons after the variation.
- Todo:
- We only consider the leading photon for now.
- Parameters
-
gEv | Null for data. |
rEv | Null for gen-level. |
146 if (rEv)
weight *= rEv->Weight(v);
147 if (gEv)
weight *= gEv->Weight(v);
166 if (mMuMu < minMuMuMass || mMuMu >
minZMass)
173 [&] (
auto photon) { return IsGoodPhoton(photon, v); });
◆ IsGoodPhoton() [1/2]
Checks if a generated photon passes the selection criteria.
130 auto p4 = photon.CorrP4(v);
131 return photon.Weight(v) != 0
◆ IsGoodPhoton() [2/2]
Checks if a reconstructed photon passes the selection criteria.
- Todo:
- Use a \( \Delta R \) cut w.r.t. muons?
120 auto p4 = photon.CorrP4(v);
121 return photon.Weight(v) != 0
◆ IsMassOnZPeak()
bool IsMassOnZPeak |
( |
float |
mass | ) |
const |
|
inlineprivate |
Checks if a mass should be considered close to the Z peak.
◆ SelectMuons()
Selects a pair of muons, if any. Returns a null Di if no suitable pair is found.
- Todo:
- The variation could change which muons are leading.
94 if (
muons.size() < 2)
return {};
97 const auto& m0 =
muons[0],
100 const auto p0 = m0.CorrP4(v),
103 if (m0.Q * m1.Q != -1
◆ category
The event category. This determines which other fields are valid.
◆ dimuon
Di<const Muon, const Muon> dimuon |
The dimuon system. Invalid for NotSelected events.
◆ maxMuonEta
constexpr static double maxMuonEta = 2.4 |
|
static |
◆ maxPhotonEta
constexpr static double maxPhotonEta = 2.4 |
|
static |
◆ maxZMass
constexpr static double maxZMass = 106 |
|
static |
◆ minMuMuMass
constexpr static double minMuMuMass = 40 |
|
static |
◆ minMuon0Pt
constexpr static double minMuon0Pt = 20 |
|
staticconstexpr |
Scale factors start at 15 GeV.
◆ minMuon1Pt
constexpr static double minMuon1Pt = 15 |
|
static |
◆ minPhotonPt
constexpr static double minPhotonPt = 20 |
|
static |
Scale factors start at 20 GeV.
◆ minZMass
constexpr static double minZMass = 76 |
|
static |
◆ mMuMu
The invariant mass of the dimuon system. Invalid for NotSelected events.
◆ mMuMuGamma
Mass of the dimuon + photon system. Only valid for MuMuGamma events.
◆ selectedPhotons
std::vector<Photon> selectedPhotons |
Considered photons. Only valid for MuMuGamma events.
◆ weight
Event weight. Always valid; for NotSelected events, this does not include the muons nor the photon weights.
- Todo:
- Correlation bit.
The documentation for this struct was generated from the following file:
- /builds/cms-analysis/general/DasAnalysisSystem/Core/Installer/Core/Unfolding/interface/ZmmYCommon.h
constexpr static double minZMass
mZ - 15 GeV
Definition: ZmmYCommon.h:35
double Weight(const Uncertainties::Variation &v=Uncertainties::nominal) const override
Definition: Di.h:73
EventCategory category
The event category. This determines which other fields are valid.
Definition: ZmmYCommon.h:38
string muons
Definition: Ntupliser_cfg.py:43
float weight
Definition: ZmmYCommon.h:59
float mMuMu
The invariant mass of the dimuon system. Invalid for NotSelected events.
Definition: ZmmYCommon.h:48
@ MuMuGamma
decay candidates.
constexpr static double maxMuonEta
Muon chamber acceptance.
Definition: ZmmYCommon.h:32
constexpr static double minMuon0Pt
Scale factors start at 15 GeV.
Definition: ZmmYCommon.h:30
float mMuMuGamma
Mass of the dimuon + photon system. Only valid for MuMuGamma events.
Definition: ZmmYCommon.h:54
EventInfo()
Default constructor to enable use as a variable in fillers.
Definition: ZmmYCommon.h:63
@ MuMu
Dimuon candidates close to the Z peak.
constexpr static double minMuon1Pt
Dimuon trigger.
Definition: ZmmYCommon.h:31
std::vector< Photon > selectedPhotons
Considered photons. Only valid for MuMuGamma events.
Definition: ZmmYCommon.h:51
DAS::Di< const Muon, const Muon > SelectMuons(const std::vector< Muon > &muons, const Uncertainties::Variation &v) const
Definition: ZmmYCommon.h:91
constexpr static double maxPhotonEta
Muon chamber acceptance.
Definition: ZmmYCommon.h:34
constexpr static double maxZMass
mZ + 15 GeV
Definition: ZmmYCommon.h:36
Di< const Muon, const Muon > dimuon
The dimuon system. Invalid for NotSelected events.
Definition: ZmmYCommon.h:45
string photons
Definition: Ntupliser_cfg.py:44
FourVector CorrP4(const Uncertainties::Variation &v=Uncertainties::nominal) const override
Definition: Di.h:46
@ NotSelected
The event fails some selection.
constexpr static double minPhotonPt
Scale factors start at 20 GeV.
Definition: ZmmYCommon.h:33
bool IsMassOnZPeak(float mass) const
Checks if a mass should be considered close to the Z peak.
Definition: ZmmYCommon.h:83