Rivet API documentation

Rivet 4.1.3
MergedFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_MergedFinalState_HH
3#define RIVET_MergedFinalState_HH
4
5#include "Rivet/Tools/Logging.hh"
6#include "Rivet/Config/RivetCommon.hh"
7#include "Rivet/Particle.hh"
8#include "Rivet/Event.hh"
9#include "Rivet/Projection.hh"
10#include "Rivet/Projections/FinalState.hh"
11
12namespace Rivet {
13
14
18 class MergedFinalState : public FinalState {
19 public:
20
23 MergedFinalState(const FinalState& fspa, const FinalState& fspb) {
24 setName("MergedFinalState");
25 declare(fspa, "FSA");
26 declare(fspb, "FSB");
27 }
28
30 RIVET_DEFAULT_PROJ_CLONE(MergedFinalState);
31
33
35 using Projection::operator =;
36
37
38 protected:
39
41 void project(const Event& e);
42
44 CmpState compare(const Projection& p) const;
45 };
46
47
48}
49
50
51#endif
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
FinalState(const Cut &c=Cuts::OPEN)
Construction using Cuts object.
CmpState compare(const Projection &p) const
Compare projections.
RIVET_DEFAULT_PROJ_CLONE(MergedFinalState)
Clone on the heap.
void project(const Event &e)
Apply the projection on the supplied event.
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version).
Definition ProjectionApplier.hh:184
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
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:653
Definition MC_CENT_PPB_Projections.hh:10