Rivet API documentation

Rivet 4.1.3
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/Event.hh"
10#include "Rivet/Particle.hh"
11#include "Rivet/Projection.hh"
12
13namespace Rivet {
14
15
21 class InitialQuarks : public Projection {
22 public:
23
28 InitialQuarks() {
29 setName("InitialQuarks");
30 }
31
34
36
38 using Projection::operator=;
39
40
42 virtual const Particles& particles() const {
43 return _theParticles;
44 }
45
47 virtual bool empty() const {
48 return _theParticles.empty();
49 }
50
51
52 protected:
53
55 virtual void project(const Event& e);
56
58 virtual CmpState compare(const Projection&) const {
59 return CmpState::EQ;
60 }
61
62
63 protected:
64
66 Particles _theParticles;
67 };
68
69
70}
71
72#endif
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:47
virtual CmpState compare(const Projection &) const
Compare projections.
Definition InitialQuarks.hh:58
Specialised vector of Particle objects.
Definition Particle.hh:21
Projection()
The default constructor.
friend class Event
Event is a friend.
Definition Projection.hh:33
void setName(const std::string &name)
Used by derived classes to set their name.
Definition Projection.hh:146
Definition LHCbCommon.hh:9