DISLepton.hh
// -*- C++ -*-
#ifndef RIVET_DISLepton_HH
#define RIVET_DISLepton_HH
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class DISLepton : public Projection {
public:
DISLepton(){
setName("DISLepton");
addProjection(Beam(), "Beam");
addProjection(FinalState(), "FS");
}
virtual const Projection* clone() const {
return new DISLepton(*this);
}
protected:
virtual void project(const Event& e);
virtual int compare(const Projection& p) const;
public:
const Particle& in() const { return _incoming; }
const Particle& out() const { return _outgoing; }
const double &pzSign() const { return _sign; }
private:
Particle _incoming;
Particle _outgoing;
double _sign;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::DISLepton::in
const Particle & in() const
The incoming lepton.
Definition: DISLepton.hh:45
Rivet::Particle
Representation of particles from a HepMC::GenEvent.
Definition: Particle.hh:16
Rivet::Event
Definition: Event.hh:22
Rivet::DISLepton::project
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
Definition: DISLepton.cc:17
Rivet::DISLepton::compare
virtual int compare(const Projection &p) const
Compare with other projections.
Definition: DISLepton.cc:9
Rivet::DISLepton::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: DISLepton.hh:28
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::Beam
Project out the incoming beams.
Definition: Beam.hh:39
Rivet::DISLepton::out
const Particle & out() const
The outgoing lepton.
Definition: DISLepton.hh:48
Rivet::DISLepton
Get the incoming and outgoing leptons in a DIS event.
Definition: DISLepton.hh:14
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28