|
[Rivet-svn] r2034 - in trunk: include/Rivet/Projections src/Projectionsblackhole at projects.hepforge.org blackhole at projects.hepforge.orgSat Nov 7 00:56:50 GMT 2009
Author: buckley Date: Sat Nov 7 00:56:50 2009 New Revision: 2034 Log: Moving constructors into .cc files Modified: trunk/include/Rivet/Projections/ChargedFinalState.hh trunk/src/Projections/ChargedFinalState.cc Modified: trunk/include/Rivet/Projections/ChargedFinalState.hh ============================================================================== --- trunk/include/Rivet/Projections/ChargedFinalState.hh Sat Nov 7 00:55:51 2009 (r2033) +++ trunk/include/Rivet/Projections/ChargedFinalState.hh Sat Nov 7 00:56:50 2009 (r2034) @@ -19,18 +19,11 @@ /// @name Constructors //@{ - ChargedFinalState(const FinalState& fsp) { - setName("ChargedFinalState"); - addProjection(fsp, "FS"); - } + ChargedFinalState(const FinalState& fsp); ChargedFinalState(double mineta = -MAXRAPIDITY, double maxeta = MAXRAPIDITY, - double minpt = 0.0*GeV) - { - setName("ChargedFinalState"); - addProjection(FinalState(mineta, maxeta, minpt), "FS"); - } + double minpt = 0.0*GeV); /// Clone on the heap. virtual const Projection* clone() const { Modified: trunk/src/Projections/ChargedFinalState.cc ============================================================================== --- trunk/src/Projections/ChargedFinalState.cc Sat Nov 7 00:55:51 2009 (r2033) +++ trunk/src/Projections/ChargedFinalState.cc Sat Nov 7 00:56:50 2009 (r2034) @@ -8,6 +8,18 @@ namespace Rivet { + ChargedFinalState::ChargedFinalState(const FinalState& fsp) { + setName("ChargedFinalState"); + addProjection(fsp, "FS"); + } + + + ChargedFinalState::ChargedFinalState(double mineta, double maxeta, double minpt) { + setName("ChargedFinalState"); + addProjection(FinalState(mineta, maxeta, minpt), "FS"); + } + + int ChargedFinalState::compare(const Projection& p) const { return mkNamedPCmp(p, "FS"); }
More information about the Rivet-svn mailing list |