ATLAS Offline Software
Loading...
Searching...
No Matches
MultiplcitiesTool.cxx
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3*/
4
7
12
14 fastjet::PseudoJet jet;
15 bool decorate = SetupDecoration(jet,injet);
16
17 // multiplicities
18 int nCA_value = -1;
19 int nISD_value = -1;
20 int nOSD_value = -1;
21 int LHM_value = -1;
22
23 float beta_optimal = -1.0;
24
25 float lambdaNP = 5.0;
26 float zcut_optimal = lambdaNP / (injet.pt()*1.e-3*injet.getSizeParameter());
27
28 if (decorate) {
29 JetSubStructureUtils::Multiplicities nCAGetter (0, 0, 0); // number of entries in primary Lund jet plane
30 JetSubStructureUtils::Multiplicities nISDGetter(-1, 0.007, 0); // https://arxiv.org/pdf/1704.06266.pdf eq. 2.7
31 JetSubStructureUtils::Multiplicities nOSDGetter(beta_optimal, zcut_optimal, 0); // "optimal" configuration, eq. 3.20 above
32 JetSubStructureUtils::Multiplicities LHMGetter (0, 0, 5.0); // cut on kt_emission > 5 GeV ('Les Houches' Mult.), not necessarily meant to be ==lambdaNP!
33
34 nCA_value = nCAGetter.result(jet);
35 nISD_value = nISDGetter.result(jet);
36 nOSD_value = nOSDGetter.result(jet);
37 LHM_value = LHMGetter.result(jet);
38 }
39
40 // jet multiplicity moments
41 injet.setAttribute(m_prefix+"nCA", nCA_value);
42 injet.setAttribute(m_prefix+"nISD", nISD_value);
43 injet.setAttribute(m_prefix+"nOSD", nOSD_value);
44 injet.setAttribute(m_prefix+"LHM", LHM_value);
45
46 return 0;
47}
JetSubStructureMomentToolsBase(const std::string &name)
bool SetupDecoration(fastjet::PseudoJet &pseudojet, const xAOD::Jet &jet, bool requireJetStructure=false) const
virtual double result(const fastjet::PseudoJet &jet) const override
virtual int modifyJet(xAOD::Jet &injet) const override
Modify a single jet. This is obsolete and set to be removed.
MultiplicitiesTool(const std::string &name)
void setAttribute(const std::string &name, const T &v)
virtual double pt() const
The transverse momentum ( ) of the particle.
Definition Jet_v1.cxx:44
float getSizeParameter() const
Definition Jet_v1.cxx:245
Jet_v1 Jet
Definition of the current "jet version".