ATLAS Offline Software
Loading...
Searching...
No Matches
Jet.h File Reference

Go to the source code of this file.

Classes

class  Jet

Namespaces

namespace  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.

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 631 of file Jet.cxx.

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