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

| Rivet 3.1.9

CentralEtHCM.hh
1// -*- C++ -*-
2#ifndef RIVET_CentralEtHCM_HH
3#define RIVET_CentralEtHCM_HH
4
5#include "Rivet/Particle.hh"
6#include "Rivet/Event.hh"
7#include "Rivet/Projections/DISFinalState.hh"
8
9namespace Rivet {
10
11
16 class CentralEtHCM : public Projection {
17 public:
18
21 CentralEtHCM(const DISFinalState& fs)
22 {
23 setName("CentralEtHCM");
24 declare(fs, "FS");
25 }
26
28 DEFAULT_RIVET_PROJ_CLONE(CentralEtHCM);
29
31 using Projection::operator =;
32
33
34 protected:
35
37 void project(const Event& e);
38
40 CmpState compare(const Projection& p) const {
41 return mkNamedPCmp(p, "FS");
42 }
43
44
45 public:
46
48 double sumEt() const { return _sumet; }
49
50
51 protected:
52
54 double _sumet;
55
56 };
57
58}
59
60
61#endif
Rivet::CentralEtHCM
Summed of central particles in HCM system.
Definition CentralEtHCM.hh:16
Rivet::CentralEtHCM::project
void project(const Event &e)
Apply the projection on to the Event.
Rivet::CentralEtHCM::DEFAULT_RIVET_PROJ_CLONE
DEFAULT_RIVET_PROJ_CLONE(CentralEtHCM)
Clone on the heap.
Rivet::CentralEtHCM::CentralEtHCM
CentralEtHCM(const DISFinalState &fs)
Definition CentralEtHCM.hh:21
Rivet::CentralEtHCM::sumEt
double sumEt() const
The sum of the Et in the central rapidity bin.
Definition CentralEtHCM.hh:48
Rivet::CentralEtHCM::compare
CmpState compare(const Projection &p) const
Compare with other projections.
Definition CentralEtHCM.hh:40
Rivet::DISFinalState
Final state particles boosted to the hadronic center of mass system.
Definition DISFinalState.hh:14
Rivet::Event
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
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