2#ifndef RIVET_ATLAS_COMMON_HH
3#define RIVET_ATLAS_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"
17 Cuts::absrap < 0.1 && Cuts::pT > 0.2 * GeV),
18 "STAR_BES_Centrality");
31 apply<FinalState>(e,
"STAR_BES_Centrality").particles().size();
63 set(apply<ChargedFinalState>
64 (e,
"ChargedFinalState").particles().size());
BRAHMS Centrality projection.
Definition: RHICCommon.hh:43
virtual void project(const Event &e)
Definition: RHICCommon.hh:61
virtual CmpState compare(const Projection &p) const
Definition: RHICCommon.hh:68
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)
Register a contained projection (user-facing version)
Definition: ProjectionApplier.hh:170
Base class for all Rivet projections.
Definition: Projection.hh:29
Cmp< Projection > mkNamedPCmp(const Projection &otherparent, const std::string &pname) const
Common projections for RHIC experiments' trigger conditions and centrality.
Definition: RHICCommon.hh:13
DEFAULT_RIVET_PROJ_CLONE(STAR_BES_Centrality)
Clone on the heap.
virtual CmpState compare(const Projection &p) const
Compare projections.
Definition: RHICCommon.hh:36
void project(const Event &e)
Definition: RHICCommon.hh:28
Base class for projections returning a single floating point value.
Definition: SingleValueProjection.hh:17
void set(double v)
Definition: SingleValueProjection.hh:51
SingleValueProjection()
The default constructor.
Definition: SingleValueProjection.hh:21
void clear()
Unset the value.
Definition: SingleValueProjection.hh:54
double p(const ParticleBase &p)
Unbound function access to p.
Definition: ParticleBaseUtils.hh:653
Definition: MC_Cent_pPb.hh:10