2#ifndef RIVET_RHIC_COMMON_HH
3#define RIVET_RHIC_COMMON_HH
5#include "Rivet/Projections/FinalState.hh"
6#include "Rivet/Projections/ChargedFinalState.hh"
7#include "Rivet/Projections/SingleValueProjection.hh"
8#include "Rivet/Projections/TriggerProjection.hh"
19 Cuts::absrap < 0.1 && Cuts::pT > 0.2 * GeV),
20 "STAR_BES_Centrality");
30 using Projection::operator =;
37 apply<FinalState>(e,
"STAR_BES_Centrality").particles().size();
68 using Projection::operator =;
76 setValue(apply<ChargedFinalState>(e,
"ChargedFinalState").particles().size());
BRAHMS Centrality projection.
Definition RHICCommon.hh:50
virtual void project(const Event &e)
Definition RHICCommon.hh:74
virtual CmpState compare(const Projection &p) const
Definition RHICCommon.hh:80
Project only charged final state particles.
Definition ChargedFinalState.hh:11
Representation of a HepMC event, and enabler of Projection caching.
Definition Event.hh:22
const PROJ & declare(const PROJ &proj, const std::string &name) const
Register a contained projection (user-facing version)
Definition ProjectionApplier.hh:175
Base class for all Rivet projections.
Definition Projection.hh:29
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Definition RHICCommon.hh:14
virtual CmpState compare(const Projection &p) const
Compare projections.
Definition RHICCommon.hh:42
RIVET_DEFAULT_PROJ_CLONE(STAR_BES_Centrality)
Clone on the heap.
void project(const Event &e)
Definition RHICCommon.hh:34
Base class for projections returning a single floating point value.
Definition SingleValueProjection.hh:17
void setValue(double v)
Set the value.
Definition SingleValueProjection.hh:48
SingleValueProjection()
The default constructor.
Definition SingleValueProjection.hh:21
void clear()
Unset the value.
Definition SingleValueProjection.hh:54
Definition MC_CENT_PPB_Projections.hh:10