2 #ifndef RIVET_GENERATEDPERCENTILEPROJECTION_HH 3 #define RIVET_GENERATEDPERCENTILEPROJECTION_HH 5 #include "Rivet/Projections/SingleValueProjection.hh" 15 setName(
"GeneratedPercentileProjection");
25 #if HEPMC_VERSION_CODE >= 3000000 26 const HepMC::HeavyIon * hi = e.
genEvent()->heavy_ion();
27 if ( hi && hi->centrality >= 0.0 )
28 set(hi->centrality*100.0);
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:133
Definition: ALICE_2010_I880049.cc:13
Definition: GeneratedPercentileProjection.hh:10
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
DEFAULT_RIVET_PROJ_CLONE(GeneratedPercentileProjection)
Clone on the heap.
void project(const Event &e)
Definition: GeneratedPercentileProjection.hh:23
int compare(const Projection &p) const
Definition: GeneratedPercentileProjection.hh:32
Base class for all Rivet projections.
Definition: Projection.hh:29
void clear()
Unset the value.
Definition: SingleValueProjection.hh:47