~ubuntu-branches/ubuntu/saucy/rivet/saucy-proposed

« back to all changes in this revision

Viewing changes to include/Rivet/Projections/InvMassFinalState.hh

  • Committer: Package Import Robot
  • Author(s): Lifeng Sun
  • Date: 2013-05-07 09:24:27 UTC
  • mfrom: (1.2.1) (2.1.2 experimental)
  • Revision ID: package-import@ubuntu.com-20130507092427-rpfijl4mn3y87ek7
Tags: 1.8.3-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
    /// Operate on a given particle vector directly instead of through project (no caching)
59
59
    void calc(const ParticleVector& inparticles);
60
60
 
 
61
  private:
 
62
 
 
63
    /// Transverse Mass
 
64
    inline double massT( FourMomentum v1, FourMomentum v2) {
 
65
      return sqrt( (v1.Et() + v2.Et())*(v1.Et() + v2.Et()) -
 
66
                   (v1+v2).perp()*(v1+v2).perp() );
 
67
    }
61
68
 
62
69
  protected:
63
70