File indexing completed on 2025-05-12 09:05:01
0001
0002 #ifndef RIVET_Beam_HH
0003 #define RIVET_Beam_HH
0004
0005 #include "Rivet/Projection.hh"
0006 #include "Rivet/Event.hh"
0007 #include "Rivet/Particle.hh"
0008 #include "Rivet/Tools/Beams.hh"
0009 #include "Rivet/Math/LorentzTrans.hh"
0010
0011 namespace Rivet {
0012
0013
0014
0015 class Beam : public Projection {
0016 public:
0017
0018
0019 using Projection::operator=;
0020
0021
0022 Beam() { setName("Beam"); }
0023
0024
0025 RIVET_DEFAULT_PROJ_CLONE(Beam);
0026
0027
0028
0029
0030
0031
0032 const ParticlePair& beams() const { return _theBeams; }
0033
0034
0035 double sqrtS() const { return Rivet::sqrtS(beams()); }
0036
0037
0038 FourMomentum cmsBoostVec() const { return Rivet::cmsBoostVec(beams()); }
0039
0040
0041 LorentzTransform cmsTransform() const { return Rivet::cmsTransform(beams()); }
0042
0043
0044 Vector3 cmsBetaVec() const { return Rivet::cmsBetaVec(beams()); }
0045
0046
0047 Vector3 cmsGammaVec() const { return Rivet::cmsGammaVec(beams()); }
0048
0049
0050
0051
0052
0053
0054
0055
0056 double asqrtS() const { return Rivet::asqrtS(beams()); }
0057
0058
0059 Vector3 acmsBetaVec() const { return Rivet::acmsBetaVec(beams()); }
0060
0061
0062 Vector3 acmsGammaVec() const { return Rivet::acmsGammaVec(beams()); }
0063
0064
0065 LorentzTransform acmsTransform() const { return Rivet::acmsTransform(beams()); }
0066
0067
0068
0069
0070
0071 FourVector pv() const;
0072
0073
0074
0075 virtual void project(const Event& e);
0076
0077
0078 protected:
0079
0080
0081 ParticlePair _theBeams;
0082
0083
0084 protected:
0085
0086
0087 virtual CmpState compare(const Projection&) const { return CmpState::EQ; }
0088
0089 };
0090
0091
0092 }
0093
0094 #endif