ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
JetSubStructureUtils::KtSplittingScale Class Reference

#include <KtSplittingScale.h>

Inheritance diagram for JetSubStructureUtils::KtSplittingScale:
Collaboration diagram for JetSubStructureUtils::KtSplittingScale:

Public Member Functions

 KtSplittingScale (unsigned int nSubJets)
 
virtual double result (const fastjet::PseudoJet &jet) const
 
virtual TOut result (const xAOD::Jet &jet) const
 
virtual double result (const xAOD::Jet &jet) const
 

Private Attributes

unsigned int m_nSubJets
 

Detailed Description

Definition at line 11 of file KtSplittingScale.h.

Constructor & Destructor Documentation

◆ KtSplittingScale()

JetSubStructureUtils::KtSplittingScale::KtSplittingScale ( unsigned int  nSubJets)
inline

Definition at line 13 of file KtSplittingScale.h.

13 : m_nSubJets(nSubJets) {};

Member Function Documentation

◆ result() [1/3]

double KtSplittingScale::result ( const fastjet::PseudoJet &  jet) const
virtual

Definition at line 12 of file KtSplittingScale.cxx.

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 }

◆ result() [2/3]

virtual TOut JetSubStructureUtils::SubstructureCalculator< TOut >::result
inline

Definition at line 25 of file SubstructureCalculator.h.

25  {
26  // PS 4/18 master developent
27  // std::vector<fastjet::PseudoJet> constit_pseudojets =
28  // jet::JetConstituentFiller::constituentPseudoJets(jet);
29 
30  std::vector<fastjet::PseudoJet> constit_pseudojets;
31  std::transform(jet.getConstituents().begin(),
32  jet.getConstituents().end(),
33  std::back_inserter(constit_pseudojets),
34  [](const auto& c){
35  const xAOD::IParticle* ip = c->rawConstituent();
36  return
37  // fastjet::PseudoJet((c->rawConstituent())->p4());
38  fastjet::PseudoJet(ip->p4());
39  });
40 
41  fastjet::PseudoJet pjet = fastjet::join(constit_pseudojets);
42 
43  return result(pjet);
44  }

◆ result() [3/3]

virtual double JetSubStructureUtils::SubstructureCalculator< double >::result ( const xAOD::Jet jet) const
inlinevirtualinherited

Definition at line 25 of file SubstructureCalculator.h.

25  {
26  // PS 4/18 master developent
27  // std::vector<fastjet::PseudoJet> constit_pseudojets =
28  // jet::JetConstituentFiller::constituentPseudoJets(jet);
29 
30  std::vector<fastjet::PseudoJet> constit_pseudojets;
31  std::transform(jet.getConstituents().begin(),
32  jet.getConstituents().end(),
33  std::back_inserter(constit_pseudojets),
34  [](const auto& c){
35  const xAOD::IParticle* ip = c->rawConstituent();
36  return
37  // fastjet::PseudoJet((c->rawConstituent())->p4());
38  fastjet::PseudoJet(ip->p4());
39  });
40 
41  fastjet::PseudoJet pjet = fastjet::join(constit_pseudojets);
42 
43  return result(pjet);
44  }

Member Data Documentation

◆ m_nSubJets

unsigned int JetSubStructureUtils::KtSplittingScale::m_nSubJets
private

Definition at line 19 of file KtSplittingScale.h.


The documentation for this class was generated from the following files:
xAOD::JetAlgorithmType::kt_algorithm
@ kt_algorithm
Definition: JetContainerInfo.h:31
JetSubStructureUtils::KtSplittingScale::m_nSubJets
unsigned int m_nSubJets
Definition: KtSplittingScale.h:19
JetSubStructureUtils::SubstructureCalculator< double >::result
virtual double result(const xAOD::Jet &jet) const
Definition: SubstructureCalculator.h:25
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
jet::ClusterSequence
fastjet::ClusterSequence ClusterSequence
Definition: ClusterSequence.h:21
Amg::transform
Amg::Vector3D transform(Amg::Vector3D &v, Amg::Transform3D &tr)
Transform a point from a Trasformation3D.
Definition: GeoPrimitivesHelpers.h:156
TCS::join
std::string join(const std::vector< std::string > &v, const char c=',')
Definition: Trigger/TrigT1/L1Topo/L1TopoCommon/Root/StringUtils.cxx:10
python.compressB64.c
def c
Definition: compressB64.py:93
JetSubStructureUtils::KtSplittingScale::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: KtSplittingScale.cxx:12
Trk::split
@ split
Definition: LayerMaterialProperties.h:38