Rivet 3.1.9
METFinder.hh
1// -*- C++ -*-
2#ifndef RIVET_METFinder_HH
3#define RIVET_METFinder_HH
4
5#include "Rivet/Projection.hh"
6
7namespace Rivet {
8
9
11 class METFinder : public Projection {
12 public:
13
15 using Projection::operator =;
16
17
22
27 virtual const Vector3& vectorPt() const = 0;
28
30 const Vector3 vectorMissingPt() const { return -vectorPt(); }
31 // Alias
32 const Vector3 vectorMPT() const { return vectorMissingPt(); }
33
35 double missingPt() const { return vectorPt().mod(); }
36
38
39
44
48 virtual const Vector3& vectorEt() const = 0;
49
51 const Vector3 vectorMissingEt() const { return -vectorEt(); }
52 // Alias
53 const Vector3 vectorMET() const { return vectorMissingEt(); }
54
56 double missingEt() const { return vectorEt().mod(); }
58 double met() const { return missingEt(); }
59
61
62
64 virtual void reset() { }
65
66 };
67
68
69}
70
71#endif
Interface for projections that find missing transverse energy/momentum.
Definition METFinder.hh:11
double missingPt() const
The vector-summed missing transverse momentum in the event.
Definition METFinder.hh:35
double missingEt() const
The vector-summed missing transverse energy in the event.
Definition METFinder.hh:56
const Vector3 vectorMissingPt() const
Convenience vector MPT function.
Definition METFinder.hh:30
virtual const Vector3 & vectorPt() const =0
const Vector3 vectorMissingEt() const
Convenience vector MET function.
Definition METFinder.hh:51
virtual void reset()
Reset the projection. Smearing functions will be unchanged.
Definition METFinder.hh:64
virtual const Vector3 & vectorEt() const =0
double met() const
Alias for missingEt.
Definition METFinder.hh:58
Base class for all Rivet projections.
Definition Projection.hh:29
Three-dimensional specialisation of Vector.
Definition Vector3.hh:40
double mod() const
Calculate the modulus of a vector. .
Definition VectorN.hh:95
Definition MC_Cent_pPb.hh:10