CentralEtHCM.hh
// -*- C++ -*-
#ifndef RIVET_CentralEtHCM_HH
#define RIVET_CentralEtHCM_HH
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
#include "Rivet/Projections/DISFinalState.hh"
namespace Rivet {
class CentralEtHCM : public Projection {
public:
CentralEtHCM(const DISFinalState& fs)
{
setName("CentralEtHCM");
addProjection(fs, "FS");
}
virtual const Projection* clone() const {
return new CentralEtHCM(*this);
}
protected:
void project(const Event& e);
int compare(const Projection& p) const {
return mkNamedPCmp(p, "FS");
}
public:
double sumEt() const { return _sumet; }
private:
double _sumet;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet::CentralEtHCM::CentralEtHCM
CentralEtHCM(const DISFinalState &fs)
Definition: CentralEtHCM.hh:21
Rivet::CentralEtHCM::compare
int compare(const Projection &p) const
Compare with other projections.
Definition: CentralEtHCM.hh:39
Rivet::DISFinalState
Final state particles boosted to the hadronic center of mass system.
Definition: DISFinalState.hh:14
Rivet::Event
Definition: Event.hh:22
Rivet::CentralEtHCM
Summed of central particles in HCM system.
Definition: CentralEtHCM.hh:16
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::CentralEtHCM::project
void project(const Event &e)
Apply the projection on to the Event.
Definition: CentralEtHCM.cc:9
Rivet::Projection::mkNamedPCmp
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition: Projection.cc:51
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::CentralEtHCM::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: CentralEtHCM.hh:28
Rivet::CentralEtHCM::sumEt
double sumEt() const
The sum of the Et in the central rapidity bin.
Definition: CentralEtHCM.hh:47