[Rivet-svn] r2278 - in trunk/include/Rivet: . Projections

blackhole at projects.hepforge.org blackhole at projects.hepforge.org
Mon Mar 1 15:32:37 GMT 2010


Author: fsiegert
Date: Mon Mar  1 15:32:37 2010
New Revision: 2278

Log:
Provide deprecated backwards compatibility stuff.

Modified:
   trunk/include/Rivet/Projections/FinalState.hh
   trunk/include/Rivet/Projections/InitialQuarks.hh
   trunk/include/Rivet/Projections/UnstableFinalState.hh
   trunk/include/Rivet/Rivet.hh

Modified: trunk/include/Rivet/Projections/FinalState.hh
==============================================================================
--- trunk/include/Rivet/Projections/FinalState.hh	Mon Mar  1 15:20:28 2010	(r2277)
+++ trunk/include/Rivet/Projections/FinalState.hh	Mon Mar  1 15:32:37 2010	(r2278)
@@ -66,6 +66,8 @@
 
     /// Is this final state empty?
     virtual const bool empty() const { return _theParticles.empty(); }
+    /// @deprecated Is this final state empty?
+    virtual const bool isEmpty() const { return _theParticles.empty(); }
 
 
   public:

Modified: trunk/include/Rivet/Projections/InitialQuarks.hh
==============================================================================
--- trunk/include/Rivet/Projections/InitialQuarks.hh	Mon Mar  1 15:20:28 2010	(r2277)
+++ trunk/include/Rivet/Projections/InitialQuarks.hh	Mon Mar  1 15:32:37 2010	(r2278)
@@ -36,6 +36,8 @@
 
     /// Is this final state empty?
     virtual const bool empty() const { return _theParticles.empty(); }
+    /// @deprecated Is this final state empty?
+    virtual const bool isEmpty() const { return _theParticles.empty(); }
 
   protected:
  

Modified: trunk/include/Rivet/Projections/UnstableFinalState.hh
==============================================================================
--- trunk/include/Rivet/Projections/UnstableFinalState.hh	Mon Mar  1 15:20:28 2010	(r2277)
+++ trunk/include/Rivet/Projections/UnstableFinalState.hh	Mon Mar  1 15:32:37 2010	(r2278)
@@ -41,6 +41,8 @@
 
     /// Is this final state empty?
     virtual const bool empty() const { return _theParticles.empty(); }
+    /// @deprecated Is this final state empty?
+    virtual const bool isEmpty() const { return _theParticles.empty(); }
 
   protected:
  

Modified: trunk/include/Rivet/Rivet.hh
==============================================================================
--- trunk/include/Rivet/Rivet.hh	Mon Mar  1 15:20:28 2010	(r2277)
+++ trunk/include/Rivet/Rivet.hh	Mon Mar  1 15:32:37 2010	(r2278)
@@ -48,6 +48,8 @@
 
   /// A sensible default maximum value of rapidity for Rivet analyses to use.
   static const double MAXRAPIDITY = 100000.0;
+  /// @deprecated
+  static const double MaxRapidity = 100000.0;
 
   /// A function to get the Rivet version string
   string version();


More information about the Rivet-svn mailing list