ATLAS Offline Software
Functions
xAODDirectPhotonFilter.cxx File Reference
#include "GeneratorFilters/xAODDirectPhotonFilter.h"
#include <algorithm>
#include "TruthUtils/HepMCHelpers.h"
Include dependency graph for xAODDirectPhotonFilter.cxx:

Go to the source code of this file.

Functions

bool xAODDirectPhotonFilterCmpByPt (const xAOD::TruthParticle *p1, const xAOD::TruthParticle *p2)
 

Function Documentation

◆ xAODDirectPhotonFilterCmpByPt()

bool xAODDirectPhotonFilterCmpByPt ( const xAOD::TruthParticle p1,
const xAOD::TruthParticle p2 
)

Definition at line 53 of file xAODDirectPhotonFilter.cxx.

53  {
54  return (p1->pt()>p2->pt());
55 }
xAOD::TruthParticle_v1::pt
virtual double pt() const override final
The transverse momentum ( ) of the particle.
Definition: TruthParticle_v1.cxx:166