file /home/anarendran/Documents/temp/rivet/include/Rivet/Projections/ImpactParameterProjection.hh
/home/anarendran/Documents/temp/rivet/include/Rivet/Projections/ImpactParameterProjection.hh #
Namespaces ##
Classes ##
Source code ##
// -*- C++ -*-
#ifndef RIVET_IMPACTPARAMETERPROJECTION_HH
#define RIVET_IMPACTPARAMETERPROJECTION_HH
#include "Rivet/Projections/SingleValueProjection.hh"
#include "Rivet/Projections/HepMCHeavyIon.hh"
namespace Rivet {
class ImpactParameterProjection: public SingleValueProjection {
public:
ImpactParameterProjection() {
setName("ImpactParameterProjection");
declare(HepMCHeavyIon(), "HepMC");
}
DEFAULT_RIVET_PROJ_CLONE(ImpactParameterProjection);
protected:
void project(const Event& e) {
clear();
set(apply<HepMCHeavyIon>(e, "HepMC").impact_parameter());
}
CmpState compare(const Projection& p) const {
return CmpState::EQ;
}
};
}
#endif
Updated on 2022-08-07 at 20:17:18 +0100