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

Go to the source code of this file.

Functions

bool DirectPhotonFilterCmpByPt (const HepMC::ConstGenParticlePtr &p1, const HepMC::ConstGenParticlePtr &p2)
 

Function Documentation

◆ DirectPhotonFilterCmpByPt()

bool DirectPhotonFilterCmpByPt ( const HepMC::ConstGenParticlePtr p1,
const HepMC::ConstGenParticlePtr p2 
)

Definition at line 53 of file DirectPhotonFilter.cxx.

53  {
54  return (p1->momentum().perp()>p2->momentum().perp());
55 }