ATLAS Offline Software
SoftDropObservables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2023 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef jetsubstructureutils_softdropobservables_header
6 #define jetsubstructureutils_softdropobservables_header
7 
9 #include "fastjet/contrib/SoftDrop.hh"
10 
11 namespace JetSubStructureUtils {
12 
14  public:
15  SoftDropObservables(const std::string& observableName)
16  : m_observableName (observableName)
17  {
18  };
19 
21  virtual double result(const fastjet::PseudoJet &jet) const {
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  };
34  private:
35  std::string m_observableName; // Currently, able to return zg and rg
36 
37  };
38 }
39 
40 #endif
eFEXNTuple.delta_R
def delta_R(eta1, phi1, eta2, phi2)
Definition: eFEXNTuple.py:21
JetSubStructureUtils
Definition: RCJet.h:49
python.selector.AtlRunQuerySelectorLhcOlc.sd
sd
Definition: AtlRunQuerySelectorLhcOlc.py:612
JetSubStructureUtils::SubstructureCalculator::result
virtual TOut result(const xAOD::Jet &jet) const
Definition: SubstructureCalculator.h:25
SubstructureCalculator.h
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetSubStructureUtils::SoftDropObservables::SoftDropObservables
SoftDropObservables(const std::string &observableName)
Definition: SoftDropObservables.h:15
JetSubStructureUtils::SoftDropObservables::result
virtual double result(const fastjet::PseudoJet &jet) const
Definition: SoftDropObservables.h:21
JetSubStructureUtils::SoftDropObservables
Definition: SoftDropObservables.h:13
JetSubStructureUtils::SoftDropObservables::m_observableName
std::string m_observableName
Definition: SoftDropObservables.h:33
JetSubStructureUtils::SubstructureCalculator
Definition: SubstructureCalculator.h:21