ClusteredPhotons.hh
// -*- C++ -*-
#ifndef RIVET_ClusteredPhotons_HH
#define RIVET_ClusteredPhotons_HH
#include "Rivet/Tools/Logging.hh"
#include "Rivet/Rivet.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/IdentifiedFinalState.hh"
namespace Rivet {
class ClusteredPhotons : public FinalState {
public:
ClusteredPhotons(const FinalState& fs, const FinalState& signal, double dRmax)
: _dRmax(dRmax)
{
setName("ClusteredPhotons");
IdentifiedFinalState photonfs(fs);
photonfs.acceptId(PHOTON);
addProjection(photonfs, "Photons");
addProjection(signal, "Signal");
}
virtual const Projection* clone() const {
return new ClusteredPhotons(*this);
}
public:
protected:
void project(const Event& e);
int compare(const Projection& p) const;
private:
double _dRmax;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet::IdentifiedFinalState::acceptId
IdentifiedFinalState & acceptId(PdgId pid)
Add an accepted particle ID.
Definition: IdentifiedFinalState.hh:50
Rivet::IdentifiedFinalState
Produce a final state which only contains specified particle IDs.
Definition: IdentifiedFinalState.hh:16
Rivet::ClusteredPhotons::ClusteredPhotons
ClusteredPhotons(const FinalState &fs, const FinalState &signal, double dRmax)
Definition: ClusteredPhotons.hh:24
Rivet::Event
Definition: Event.hh:22
Rivet::ClusteredPhotons
Find final state photons which in a cone around any particle in the &quot;signal&quot; final state...
Definition: ClusteredPhotons.hh:17
Rivet::ClusteredPhotons::project
void project(const Event &e)
Apply the projection on the supplied event.
Definition: ClusteredPhotons.cc:23
Rivet::ClusteredPhotons::compare
int compare(const Projection &p) const
Compare projections.
Definition: ClusteredPhotons.cc:10
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet! ...
Definition: FinalState.hh:14
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::ClusteredPhotons::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: ClusteredPhotons.hh:36