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

#include <SoftDropObservables.h>

Inheritance diagram for JetSubStructureUtils::SoftDropObservables:
Collaboration diagram for JetSubStructureUtils::SoftDropObservables:

Public Member Functions

 SoftDropObservables (const std::string &observableName)
 
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

std::string m_observableName
 

Detailed Description

Definition at line 13 of file SoftDropObservables.h.

Constructor & Destructor Documentation

◆ SoftDropObservables()

JetSubStructureUtils::SoftDropObservables::SoftDropObservables ( const std::string &  observableName)
inline

Definition at line 15 of file SoftDropObservables.h.

16  : m_observableName (observableName)
17  {
18  };

Member Function Documentation

◆ result() [1/3]

virtual double JetSubStructureUtils::SoftDropObservables::result ( const fastjet::PseudoJet &  jet) const
inlinevirtual

Definition at line 21 of file SoftDropObservables.h.

21  {
22  // Set zcut to zero so that this doesn't groom the jet, just gives it the structure
23  fastjet::contrib::SoftDrop sd(0., 0.); //beta, zcut
24  // Apply the fake grooming to the jet
25  fastjet::PseudoJet sdJet = sd(jet);
26 
27  double zg=sdJet.structure_of<fastjet::contrib::SoftDrop>().symmetry();
28  double rg=sdJet.structure_of<fastjet::contrib::SoftDrop>().delta_R();
29  if( strcmp(m_observableName.c_str(), "zg") == 0){
30  return zg;
31  }
32  return rg;
33  };

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

std::string JetSubStructureUtils::SoftDropObservables::m_observableName
private

Definition at line 35 of file SoftDropObservables.h.


The documentation for this class was generated from the following file:
eFEXNTuple.delta_R
def delta_R(eta1, phi1, eta2, phi2)
Definition: eFEXNTuple.py:21
python.selector.AtlRunQuerySelectorLhcOlc.sd
sd
Definition: AtlRunQuerySelectorLhcOlc.py:612
JetSubStructureUtils::SubstructureCalculator< double >::result
virtual double result(const xAOD::Jet &jet) const
Definition: SubstructureCalculator.h:25
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
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::SoftDropObservables::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: SoftDropObservables.h:21
python.compressB64.c
def c
Definition: compressB64.py:93
JetSubStructureUtils::SoftDropObservables::m_observableName
std::string m_observableName
Definition: SoftDropObservables.h:33