This file is indexed.

/usr/include/Rivet/Projections/Beam.hh is in librivet-dev 1.8.3-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
// -*- C++ -*-
#ifndef RIVET_Beam_HH
#define RIVET_Beam_HH

#include "Rivet/Projection.hh"
#include "Rivet/Event.hh"
#include "Rivet/Particle.hh"

namespace Rivet {


  /// @name Stand-alone functions
  //@{

  /// Function to get beam particles from an event
  ParticlePair beams(const Event& e);

  /// Function to get beam particle IDs from an event
  PdgIdPair beamIds(const Event& e);

  /// Function to get beam particle IDs from a pair of particles
  PdgIdPair beamIds(const ParticlePair& beams);

  /// Function to get beam centre of mass energy from an event
  double sqrtS(const Event& e);

  /// Function to get beam centre of mass energy from a pair of particles
  double sqrtS(const ParticlePair& beams);

  /// Function to get beam centre of mass energy from a pair of beam momenta
  double sqrtS(const FourMomentum& pa, const FourMomentum& pb);

  //@}




  /// @brief Project out the incoming beams
  class Beam : public Projection {
  public:

    /// The default constructor.
    Beam() {
      setName("Beam");
    }

    /// Clone on the heap.
    virtual const Projection* clone() const {
      return new Beam(*this);
    }


  public:

    /// The pair of beam particles in the current collision.
    const ParticlePair& beams() const {
      return _theBeams;
    }

    /// The pair of beam particle PDG codes in the current collision.
    const PdgIdPair beamIds() const {
      return Rivet::beamIds(beams());
    }

    /// Get centre of mass energy, \f$ \sqrt{s} \f$.
    double sqrtS() const;


  public:

    /// Project on to the Event
    virtual void project(const Event& e);


  protected:

    /// Compare with other projections.
    virtual int compare(const Projection& UNUSED(p)) const {
      return EQUIVALENT;
    }


  private:

    /// The beam particles in the current collision
    ParticlePair _theBeams;

  };


}

#endif