|
DAS
3.0
Das Analysis System
|
Go to the documentation of this file.
11 #if !defined(__CLING__) || defined(__ROOTCLING__)
26 template<
class Muon,
class Photon>
76 const std::vector<Muon>&
muons,
77 const std::vector<Photon>&
photons,
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
120 auto p4 = photon.
CorrP4(v);
121 return photon.
Weight(v) != 0
130 auto p4 = photon.
CorrP4(v);
131 return photon.
Weight(v) != 0
137 template<
class Muon,
class Photon>
140 const std::vector<Muon>&
muons,
141 const std::vector<Photon>&
photons,
166 if (mMuMu < minMuMuMass || mMuMu >
minZMass)
173 [&] (
auto photon) { return IsGoodPhoton(photon, v); });
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
double Weight(const Uncertainties::Variation &v) const final
< weight
Definition: PhysicsObject.h:67
FourVector CorrP4(size_t i=0) const
corrected 4-vector
Definition: PhysicsObject.h:54
string muons
Definition: Ntupliser_cfg.py:43
bool IsGoodPhoton(const RecPhoton &photon, const Uncertainties::Variation &v) const
Definition: ZmmYCommon.h:117
float weight
Definition: ZmmYCommon.h:59
Definition: ZmmYCommon.h:28
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
class GenPhoton
Definition: Photon.h:13
constexpr static double minMuon0Pt
Scale factors start at 15 GeV.
Definition: ZmmYCommon.h:30
double Weight(const Uncertainties::Variation &v) const
< weight
Definition: Event.h:25
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
bool IsGoodPhoton(const GenPhoton &photon, const Uncertainties::Variation &v) const
Checks if a generated photon passes the selection criteria.
Definition: ZmmYCommon.h:127
@ MuMu
Dimuon candidates close to the Z peak.
EventInfo(const GenEvent *gEv, const RecEvent *rEv, const std::vector< Muon > &muons, const std::vector< Photon > &photons, const Uncertainties::Variation &v)
Main constructor.
Definition: ZmmYCommon.h:138
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 minMuMuMass
Trigger efficiency.
Definition: ZmmYCommon.h:37
bool zAncestor
Z boson among the particle mothers.
Definition: Photon.h:17
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
Definition: Variation.h:22
class RecPhoton
Definition: Photon.h:27
EventCategory
Event categories used in the analysis.
Definition: ZmmYCommon.h:14