rivet is hosted by Hepforge, IPPP Durham
Rivet 4.0.0
InitialQuarks.hh
1// -*- C++ -*-
2#ifndef RIVET_InitialQuarks_HH
3#define RIVET_InitialQuarks_HH
4
5#ifndef I_KNOW_THE_INITIAL_QUARKS_PROJECTION_IS_DODGY_BUT_NEED_TO_USE_IT
6#warning "This is a dangerous projection for a few specific old analyses. Not for general use!"
7#endif
8
9#include "Rivet/Projection.hh"
10#include "Rivet/Particle.hh"
11#include "Rivet/Event.hh"
12
13namespace Rivet {
14
15
21 class InitialQuarks : public Projection {
22 public:
23
29 setName("InitialQuarks");
30 }
31
34
36
38 using Projection::operator =;
39
40
42 virtual const Particles& particles() const { return _theParticles; }
43
45 virtual bool empty() const { return _theParticles.empty(); }
46
47
48 protected:
49
51 virtual void project(const Event& e);
52
54 virtual CmpState compare(const Projection&) const {
55 return CmpState::EQ;
56 }
57
58
59 protected:
60
62 Particles _theParticles;
63
64 };
65
66
67}
68
69#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
Project out quarks from the hard process in events.
Definition InitialQuarks.hh:21
RIVET_DEFAULT_PROJ_CLONE(InitialQuarks)
Clone on the heap.
virtual void project(const Event &e)
Apply the projection to the event.
virtual const Particles & particles() const
Access the projected final-state particles.
Definition InitialQuarks.hh:42
virtual bool empty() const
Is this final state empty?
Definition InitialQuarks.hh:45
virtual CmpState compare(const Projection &) const
Compare projections.
Definition InitialQuarks.hh:54
Specialised vector of Particle objects.
Definition Particle.hh:21
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