2 #ifndef RIVET_IMPACTPARAMETERPROJECTION_HH 3 #define RIVET_IMPACTPARAMETERPROJECTION_HH 5 #include "Rivet/Projections/SingleValueProjection.hh" 15 setName(
"ImpactParameterProjection");
25 const HepMC::HeavyIon * hi = e.
genEvent()->heavy_ion();
26 if ( hi && hi->impact_parameter() >= 0.0 )
27 set(hi->impact_parameter());
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
int compare(const Projection &p) const
Definition: ImpactParameterProjection.hh:30
DEFAULT_RIVET_PROJ_CLONE(ImpactParameterProjection)
Clone on the heap.
Base class for projections returning a single floating point value.
Definition: SingleValueProjection.hh:18
const GenEvent * genEvent() const
The generated event obtained from an external event generator.
Definition: Event.hh:51
void project(const Event &e)
Definition: ImpactParameterProjection.hh:23
Base class for all Rivet projections.
Definition: Projection.hh:29
Definition: ImpactParameterProjection.hh:10
void clear()
Unset the value.
Definition: SingleValueProjection.hh:47