file /home/anarendran/Documents/temp/rivet/include/Rivet/Particle.fhh

/home/anarendran/Documents/temp/rivet/include/Rivet/Particle.fhh

Source code

// -*- C++ -*-
#ifndef RIVET_Particle_FHH
#define RIVET_Particle_FHH

#include "Rivet/Tools/RivetSTL.hh"
// #include "Rivet/Tools/RivetFastJet.hh"
// #include "Rivet/Math/Vectors.hh"

namespace Rivet {


  /// @name Particle declarations
  //@{

  // Forward declarations
  class Particle;
  class Particles;


  /// @name Particle function/functor declarations
  //@{

  /// std::function instantiation for functors taking a Particle and returning a bool
  using ParticleSelector = function<bool(const Particle&)>;

  /// std::function instantiation for functors taking two Particles and returning a bool
  using ParticleSorter = function<bool(const Particle&, const Particle&)>;

  //@}


  /// @name PdgId declarations
  //@{

  /// Typedefs for a PDG ID code.
  typedef int PdgId;
  //typedef PdgId PID; //< can't do this, because it's also a (sub)namespace

  /// Typedef for a pair of particle names.
  typedef std::pair<PdgId, PdgId> PdgIdPair;

  //@}


}

#endif

Updated on 2022-08-07 at 20:17:18 +0100