DISFinalState.hh
// -*- C++ -*-
#ifndef RIVET_DISFinalState_HH
#define RIVET_DISFinalState_HH
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Projections/DISKinematics.hh"
namespace Rivet {
class DISFinalState: public FinalState {
public:
enum BoostType { HCM, BREIT };
DISFinalState(const DISKinematics& kinematicsp, BoostType boosttype)
: _boosttype(boosttype)
{
setName("DISFinalState");
addProjection(kinematicsp, "Kinematics");
}
virtual const Projection* clone() const {
return new DISFinalState(*this);
}
protected:
void project(const Event& e);
int compare(const Projection& p) const {
const DISFinalState& other = dynamic_cast<const DISFinalState&>(p);
return mkNamedPCmp(p, "Kinematics") || cmp(_boosttype, other._boosttype);
}
private:
BoostType _boosttype;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet::DISKinematics
Get the DIS kinematic variables and relevant boosts for an event.
Definition: DISKinematics.hh:15
Rivet::DISFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Definition: DISFinalState.cc:8
Rivet::DISFinalState
Final state particles boosted to the hadronic center of mass system.
Definition: DISFinalState.hh:14
Rivet::Event
Definition: Event.hh:22
Rivet::DISFinalState::compare
int compare(const Projection &p) const
Compare projections.
Definition: DISFinalState.hh:46
Rivet::DISFinalState::BoostType
BoostType
Type of DIS boost to apply.
Definition: DISFinalState.hh:18
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::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::DISFinalState::DISFinalState
DISFinalState(const DISKinematics &kinematicsp, BoostType boosttype)
Constructor.
Definition: DISFinalState.hh:25
Rivet::DISFinalState::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: DISFinalState.hh:33
Rivet::cmp
Cmp< T > cmp(const T &t1, const T &t2)
Global helper function for easy creation of Cmp objects.
Definition: Cmp.hh:285