ATLAS Offline Software
Classes | Namespaces | Functions
Reconstruction/Jet/JetEvent/JetEvent/Jet.h File Reference
#include "NavFourMom/INavigable4MomentumCollection.h"
#include "Navigation/Navigable.h"
#include "FourMom/Lib/P4ImplPxPyPzE.h"
#include "EventKernel/ISignalState.h"
#include "ParticleEvent/ParticleSigStateImpl.h"
#include "JetEvent/JetKeyDescriptor.h"
#include "JetEvent/JetAssociationBase.h"
#include "JetEvent/JetTagInfoBase.h"
#include "JetEvent/JetMoment.h"
#include <vector>
#include <any>
#include "JetEvent/Jet.icc"

Go to the source code of this file.

Classes

class  Jet
 Basic data class defines behavior for all Jet objects
The Jet class is the principal data class for all reconstructed jets,
independent of the signal course. It describes a navigable composite
reconstruction objects with with a four-momentum representation consistent
with all other reconstruction objects. Its constituents are referenced as
generic INavigable4Momentum types.
More...
 

Namespaces

 fastjet
 

Functions

void diff (const Jet &rJet1, const Jet &rJet2, std::map< std::string, double > varDiff)
 Difference between jets - Non-Class function required by trigger. More...
 

Function Documentation

◆ diff()

void diff ( const Jet rJet1,
const Jet rJet2,
std::map< std::string, double >  varDiff 
)

Difference between jets - Non-Class function required by trigger.

Definition at line 630 of file Jet.cxx.

631 {
632  // Since this isn't part of the Jet Class, we need to re-define it here
633  // not very elegant
634  double ignoreWeight = 1.0e-06;
635  // Compare sizes
636  if(rJet1.size() != rJet2.size())
637  varDiff["NConstituents"] = rJet1.size() - rJet2.size();
638 
639  // Compare 4 momenta
640  if(fabs(rJet1.e() - rJet2.e()) > ignoreWeight)
641  varDiff["e"] = rJet1.e() - rJet2.e();
642  if(fabs(rJet1.px() - rJet2.px()) > ignoreWeight)
643  varDiff["px"] = rJet1.px() - rJet2.px();
644  if(fabs(rJet1.py() - rJet2.py()) > ignoreWeight)
645  varDiff["py"] = rJet1.py() - rJet2.py();
646  if(fabs(rJet1.pz() - rJet2.pz()) > ignoreWeight)
647  varDiff["pz"] = rJet1.pz() - rJet2.pz();
648 }
ParticleSigStateImpl::py
virtual double py() const
y component of momentum
Definition: ParticleSigStateImpl.h:679
ParticleSigStateImpl::e
virtual double e() const
energy
Definition: ParticleSigStateImpl.h:751
ParticleSigStateImpl::px
virtual double px() const
We re-define here extra class routines that will allow direct access to signal state kinematics witho...
Definition: ParticleSigStateImpl.h:671
Jet::size
size_t size() const
Size of constituent store.
ParticleSigStateImpl::pz
virtual double pz() const
z component of momentum
Definition: ParticleSigStateImpl.h:687