ATLAS Offline Software
KtSplittingScale.cxx
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 #include "fastjet/ClusterSequence.hh"
7 #include "fastjet/JetDefinition.hh"
8 
9 using namespace std;
10 using namespace JetSubStructureUtils;
11 
12 double KtSplittingScale::result(const fastjet::PseudoJet &jet) const
13 {
14  if(jet.constituents().empty()) return -1;
15 
16  fastjet::JetDefinition jet_def = fastjet::JetDefinition(fastjet::kt_algorithm, 1.5,
17  fastjet::E_scheme, fastjet::Best);
18  fastjet::ClusterSequence kt_clust_seq(jet.constituents(), jet_def);
19  fastjet::PseudoJet kt_jet = fastjet::sorted_by_pt(kt_clust_seq.inclusive_jets()).front();
20  double split = 1.5*sqrt(kt_clust_seq.exclusive_subdmerge(kt_jet, m_nSubJets));
21  return split;
22 }
KtSplittingScale.h
get_generator_info.result
result
Definition: get_generator_info.py:21
xAOD::JetAlgorithmType::kt_algorithm
@ kt_algorithm
Definition: JetContainerInfo.h:31
JetSubStructureUtils
Definition: Angularity.h:10
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::ClusterSequence
fastjet::ClusterSequence ClusterSequence
Definition: ClusterSequence.h:21
Trk::split
@ split
Definition: LayerMaterialProperties.h:38