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

#include <KtDeltaR.h>

Inheritance diagram for JetSubStructureUtils::KtDeltaR:
Collaboration diagram for JetSubStructureUtils::KtDeltaR:

Public Member Functions

 KtDeltaR (double jetrad)
 
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

double m_jetrad
 

Detailed Description

Definition at line 11 of file KtDeltaR.h.

Constructor & Destructor Documentation

◆ KtDeltaR()

JetSubStructureUtils::KtDeltaR::KtDeltaR ( double  jetrad)
inline

Definition at line 13 of file KtDeltaR.h.

13 : m_jetrad(jetrad) {};

Member Function Documentation

◆ result() [1/3]

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

Definition at line 14 of file KtDeltaR.cxx.

15 {
16  vector<fastjet::PseudoJet> constit_pseudojets = jet.constituents();
17  if ( constit_pseudojets.size() < 2 ) {
18  //Jet has fewer than 2 constituents.
19  return 0.0;
20  }
21 
22  fastjet::JetDefinition jetdef = fastjet::JetDefinition(fastjet::kt_algorithm, m_jetrad);
23  fastjet::ClusterSequence cs(constit_pseudojets, jetdef);
24  std::vector<fastjet::PseudoJet> outjets = cs.exclusive_jets(2);
25  if ( outjets.size() < 2 ) {
26  //"Fewer than two subjets found.
27  return 0.0;
28  }
29 
30  return xAOD::P4Helpers::deltaR(outjets[0].eta(), outjets[0].phi(),
31  outjets[1].eta(), outjets[1].phi());
32 }

◆ 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_jetrad

double JetSubStructureUtils::KtDeltaR::m_jetrad
private

Definition at line 19 of file KtDeltaR.h.


The documentation for this class was generated from the following files:
test_pyathena.eta
eta
Definition: test_pyathena.py:10
xAOD::JetAlgorithmType::kt_algorithm
@ kt_algorithm
Definition: JetContainerInfo.h:31
xAOD::phi
setEt phi
Definition: TrigEMCluster_v1.cxx:29
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
xAOD::P4Helpers::deltaR
double deltaR(double rapidity1, double phi1, double rapidity2, double phi2)
from bare bare rapidity,phi
Definition: xAODP4Helpers.h:150
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
JetSubStructureUtils::KtDeltaR::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: KtDeltaR.cxx:14
JetSubStructureUtils::KtDeltaR::m_jetrad
double m_jetrad
Definition: KtDeltaR.h:19
python.compressB64.c
def c
Definition: compressB64.py:93