rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.2
DISDiffHadron.hh
1// -*- C++ -*-
2#ifndef RIVET_DISDiffHadron_HH
3#define RIVET_DISDiffHadron_HH
4
5#include "Rivet/Projections/Beam.hh"
6#include "Rivet/Projections/HadronicFinalState.hh"
7#include "Rivet/Particle.hh"
8#include "Rivet/Event.hh"
9
10namespace Rivet {
11
12
15 class DISDiffHadron : public Projection {
16 public:
17
20
23 setName("DISDiffHadron");
24 declare(Beam(), "Beam");
25 declare(FinalState(), "FS");
26 }
27
30
32
34 using Projection::operator =;
35
36
37 protected:
38
40 virtual void project(const Event& e);
41
43 virtual CmpState compare(const Projection& p) const;
44
45
46 public:
47
49 const Particle& in() const { return _incoming; }
50
52 const Particle& out() const { return _outgoing; }
53
54
55 protected:
56
58 Particle _incoming;
59
61 Particle _outgoing;
62
63 };
64
65}
66
67
68#endif
Project out the incoming beams.
Definition Beam.hh:15
Get the incoming and outgoing hadron in a diffractive ep event.
Definition DISDiffHadron.hh:15
RIVET_DEFAULT_PROJ_CLONE(DISDiffHadron)
Clone on the heap.
const Particle & in() const
The incoming lepton.
Definition DISDiffHadron.hh:49
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
virtual CmpState compare(const Projection &p) const
Compare with other projections.
const Particle & out() const
The outgoing lepton.
Definition DISDiffHadron.hh:52
DISDiffHadron()
Default constructor.
Definition DISDiffHadron.hh:22
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition Particle.hh:45
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
Base class for all Rivet projections.
Definition Projection.hh:29
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:148
Definition MC_CENT_PPB_Projections.hh:10