ATLAS Offline Software
Loading...
Searching...
No Matches
VolatilityTool.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
8VolatilityTool::VolatilityTool(const std::string& name) :
10{
11 declareProperty("NumberOfIterations", m_num_iterations = 100);
12 declareProperty("ZCut", m_zcut = 0.01);
13 declareProperty("DCut", m_dcut_fctr = 0.5);
14 declareProperty("ExpMin", m_exp_min = 0.0);
15 declareProperty("ExpMax", m_exp_max = 0.0);
16 declareProperty("Rigidity", m_rigidity = 0.1);
17 declareProperty("TruncationFactor", m_truncation_fctr = 0.0);
18}
19
21 if(!checkForConstituents(jet)) return 1;
22
25 double val = volatility.result(jet);
26 ATH_MSG_VERBOSE("Adding jet volatility: " << val);
27 jet.setAttribute("Volatility", val);
28 return 0;
29}
#define ATH_MSG_VERBOSE(x)
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
JetSubStructureMomentToolsBase(const std::string &name)
bool checkForConstituents(const xAOD::Jet &jet) const
virtual double result(const fastjet::PseudoJet &jet) const
VolatilityTool(const std::string &name)
unsigned int m_num_iterations
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
double m_truncation_fctr
Jet_v1 Jet
Definition of the current "jet version".