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