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

| Rivet 3.1.9

DISFinalState.hh
1// -*- C++ -*-
2#ifndef RIVET_DISFinalState_HH
3#define RIVET_DISFinalState_HH
4
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/DISKinematics.hh"
7
8namespace Rivet {
9
10
14 class DISFinalState: public FinalState {
15 public:
16
18 enum class BoostFrame { HCM, BREIT, LAB };
19
20
22
23
27 DISFinalState(const FinalState& fs, BoostFrame boosttype, const DISKinematics& kinematicsp=DISKinematics())
28 : _boosttype(boosttype)
29 {
30 setName("DISFinalState");
31 declare(fs, "FS");
32 declare(kinematicsp, "Kinematics");
33 }
34
35
39 DISFinalState(BoostFrame boosttype, const FinalState& fs=FinalState(), const DISKinematics& kinematicsp=DISKinematics())
40 : DISFinalState(fs, boosttype, kinematicsp)
41 { }
42
43
51 DISFinalState(const Cut& c, BoostFrame boosttype, const DISKinematics& kinematicsp=DISKinematics())
52 : DISFinalState(FinalState(c), boosttype, kinematicsp)
53 { }
54
55
63 DISFinalState(BoostFrame boosttype, const Cut& c, const DISKinematics& kinematicsp=DISKinematics())
64 : DISFinalState(FinalState(c), boosttype, kinematicsp)
65 { }
66
67
68 // /// @brief Constructor with default FinalState
69 // ///
70 // /// @note The DISKinematics has no parameters, hence explicitly passing it as an arg shouldn't be necessary.
71 // DISFinalState(BoostFrame boosttype, const DISKinematics& kinematicsp=DISKinematics())
72 // : DISFinalState(FinalState(), boosttype, kinematicsp)
73 // { }
74
78 DISFinalState(const DISKinematics& kinematicsp, BoostFrame boosttype)
79 : DISFinalState(FinalState(), boosttype, kinematicsp)
80 { }
81
82
84 DEFAULT_RIVET_PROJ_CLONE(DISFinalState);
85
87
88
90 using Projection::operator =;
91
92
94 const DISKinematics& kinematics() {
95 return getProjection<DISKinematics>("Kinematics");
96 }
97
98
99 protected:
100
102 void project(const Event& e);
103
105 CmpState compare(const Projection& p) const {
106 const DISFinalState& other = dynamic_cast<const DISFinalState&>(p);
107 return mkNamedPCmp(p, "Kinematics") || mkNamedPCmp(p, "FS") || cmp(_boosttype, other._boosttype);
108 }
109
110
111 protected:
112
113 BoostFrame _boosttype;
114
115 };
116
117
118}
119
120#endif
Rivet::DISFinalState
Final state particles boosted to the hadronic center of mass system.
Definition DISFinalState.hh:14
Rivet::DISFinalState::DISFinalState
DISFinalState(const Cut &c, BoostFrame boosttype, const DISKinematics &kinematicsp=DISKinematics())
Constructor with explicit cuts to define final-state particles.
Definition DISFinalState.hh:51
Rivet::DISFinalState::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(DISFinalState)
Clone on the heap.
Rivet::DISFinalState::project
void project(const Event &e)
Apply the projection on the supplied event.
Rivet::DISFinalState::DISFinalState
DISFinalState(BoostFrame boosttype, const FinalState &fs=FinalState(), const DISKinematics &kinematicsp=DISKinematics())
Constructor with optional FinalState.
Definition DISFinalState.hh:39
Rivet::DISFinalState::compare
CmpState compare(const Projection &p) const
Compare projections.
Definition DISFinalState.hh:105
Rivet::DISFinalState::DISFinalState
DISFinalState(const DISKinematics &kinematicsp, BoostFrame boosttype)
Backward-compatible constructor with default FinalState.
Definition DISFinalState.hh:78
Rivet::DISFinalState::BoostFrame
BoostFrame
Type of DIS boost to apply.
Definition DISFinalState.hh:18
Rivet::DISFinalState::DISFinalState
DISFinalState(const FinalState &fs, BoostFrame boosttype, const DISKinematics &kinematicsp=DISKinematics())
Constructor with explicit FinalState.
Definition DISFinalState.hh:27
Rivet::DISFinalState::kinematics
const DISKinematics & kinematics()
Get the associated DISKinematics (to avoid needing a separate projection)
Definition DISFinalState.hh:94
Rivet::DISFinalState::DISFinalState
DISFinalState(BoostFrame boosttype, const Cut &c, const DISKinematics &kinematicsp=DISKinematics())
Constructor with explicit cuts to define final-state particles.
Definition DISFinalState.hh:63
Rivet::DISKinematics
Get the DIS kinematic variables and relevant boosts for an event.
Definition DISKinematics.hh:15
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::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::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Rivet::Kin::p
double p(const ParticleBase &p)
Unbound function access to p.
Definition ParticleBaseUtils.hh:684
Rivet
Definition MC_Cent_pPb.hh:10
Rivet::cmp
Cmp< T > cmp(const T &t1, const T &t2)
Global helper function for easy creation of Cmp objects.
Definition Cmp.hh:255