ATLAS Offline Software
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 
8 VolatilityTool::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 }
VolatilityTool::VolatilityTool
VolatilityTool(const std::string &name)
Definition: VolatilityTool.cxx:8
VolatilityTool::m_exp_min
double m_exp_min
Definition: VolatilityTool.h:22
VolatilityTool::m_exp_max
double m_exp_max
Definition: VolatilityTool.h:22
AthCommonDataStore< AthCommonMsg< AlgTool > >::declareProperty
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
Definition: AthCommonDataStore.h:145
Volatility.h
VolatilityTool::m_truncation_fctr
double m_truncation_fctr
Definition: VolatilityTool.h:22
VolatilityTool.h
ATH_MSG_VERBOSE
#define ATH_MSG_VERBOSE(x)
Definition: AthMsgStreamMacros.h:28
VolatilityTool::m_rigidity
double m_rigidity
Definition: VolatilityTool.h:22
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetSubStructureUtils::Volatility::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: Volatility.cxx:11
VolatilityTool::modifyJet
int modifyJet(xAOD::Jet &jet) const
Modify a single jet. This is obsolete and set to be removed.
Definition: VolatilityTool.cxx:20
JetSubStructureMomentToolsBase::checkForConstituents
bool checkForConstituents(const xAOD::Jet &jet) const
Definition: JetSubStructureMomentToolsBase.h:33
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
Pythia8_RapidityOrderMPI.val
val
Definition: Pythia8_RapidityOrderMPI.py:14
VolatilityTool::m_num_iterations
unsigned int m_num_iterations
Definition: VolatilityTool.h:21
VolatilityTool::m_dcut_fctr
double m_dcut_fctr
Definition: VolatilityTool.h:22
JetSubStructureMomentToolsBase
Definition: JetSubStructureMomentToolsBase.h:18
JetSubStructureUtils::Volatility
Definition: Volatility.h:12
VolatilityTool::m_zcut
double m_zcut
Definition: VolatilityTool.h:22