ATLAS Offline Software
Loading...
Searching...
No Matches
DipolarityTool.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
8DipolarityTool::DipolarityTool(const std::string& name) :
10{
11 declareProperty("SubJetRadius", m_SubJetRadius = 0.3);
12}
13
15{
16
17 fastjet::PseudoJet jet;
18 bool decorate = SetupDecoration(jet,injet);
19
20 float Dip12_value = -999, Dip13_value = -999,
21 Dip23_value = -999, DipExcl12_value = -999;
22
23 if (decorate) {
24
29
30 Dip12_value = dip12.result(jet);
31 Dip13_value = dip13.result(jet);
32 Dip23_value = dip23.result(jet);
33 DipExcl12_value = dipexcl12.result(jet);
34
35 }
36
37 injet.setAttribute(m_prefix+"Dip12", Dip12_value);
38 injet.setAttribute(m_prefix+"Dip13", Dip13_value);
39 injet.setAttribute(m_prefix+"Dip23", Dip23_value);
40 injet.setAttribute(m_prefix+"DipExcl12", DipExcl12_value);
41
42 return 0;
43}
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
int modifyJet(xAOD::Jet &injet) const
Modify a single jet. This is obsolete and set to be removed.
DipolarityTool(const std::string &name)
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
void setAttribute(const std::string &name, const T &v)
Jet_v1 Jet
Definition of the current "jet version".