Rivet: /Users/chrisg/software/rivet/include/Rivet/Projections/DISDiffHadron.hh Source File

| Rivet 3.1.9

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
22 DISDiffHadron() {
23 setName("DISDiffHadron");
24 declare(Beam(), "Beam");
25 declare(FinalState(), "FS");
26 }
27
29 DEFAULT_RIVET_PROJ_CLONE(DISDiffHadron);
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
Rivet::Beam
Project out the incoming beams.
Definition Beam.hh:129
Rivet::DISDiffHadron
Get the incoming and outgoing hadron in a diffractive ep event.
Definition DISDiffHadron.hh:15
Rivet::DISDiffHadron::in
const Particle & in() const
The incoming lepton.
Definition DISDiffHadron.hh:49
Rivet::DISDiffHadron::project
virtual void project(const Event &e)
Perform the projection operation on the supplied event.
Rivet::DISDiffHadron::compare
virtual CmpState compare(const Projection &p) const
Compare with other projections.
Rivet::DISDiffHadron::out
const Particle & out() const
The outgoing lepton.
Definition DISDiffHadron.hh:52
Rivet::DISDiffHadron::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(DISDiffHadron)
Clone on the heap.
Rivet::DISDiffHadron::DISDiffHadron
DISDiffHadron()
Default constructor.
Definition DISDiffHadron.hh:22
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Rivet::FinalState
Project out all final-state particles in an event. Probably the most important projection in Rivet!
Definition FinalState.hh:12
Rivet::Particle
Particle representation, either from a HepMC::GenEvent or reconstructed.
Definition Particle.hh:53
Rivet::ProjectionApplier::declare
const PROJ & declare(const PROJ &proj, const std::string &name)
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:170
Rivet::Projection
Base class for all Rivet projections.
Definition Projection.hh:29
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:142
Rivet::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet
Definition MC_Cent_pPb.hh:10