rivet is hosted by Hepforge, IPPP Durham
Rivet 3.1.6
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
19
20
23 setName("DISDiffHadron");
24 declare(Beam(), "Beam");
25 declare(FinalState(), "FS");
26 }
27
30
32
33
34 protected:
35
37 virtual void project(const Event& e);
38
40 virtual CmpState compare(const Projection& p) const;
41
42
43 public:
44
46 const Particle& in() const { return _incoming; }
47
49 const Particle& out() const { return _outgoing; }
50
51 private:
52
54 Particle _incoming;
55
57 Particle _outgoing;
58
59 };
60
61}
62
63
64#endif
Project out the incoming beams.
Definition: Beam.hh:129
Get the incoming and outgoing hadron in a diffractive ep event.
Definition: DISDiffHadron.hh:15
const Particle & in() const
The incoming lepton.
Definition: DISDiffHadron.hh:46
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:49
DEFAULT_RIVET_PROJ_CLONE(DISDiffHadron)
Clone on the heap.
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:53
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
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:142
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10