This file is indexed.

/usr/include/Rivet/Projections/PVertex.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
// -*- C++ -*-
#ifndef RIVET_PVertex_HH
#define RIVET_PVertex_HH

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

namespace Rivet {


  /// @brief Get the position of the primary vertex of an event.
  ///
  /// HepMC doesn't reliably return the signal process vertex, so
  /// we have to use the "decay vertex" of the beam particles.
  /// This gives the right position, within experimental resolution,
  /// but ISR effects can mean that the actual vertex is not right.
  /// Hence, we don't expose the HepMC GenVertex directly - if it were
  /// available, people might try to e.g. look at the \f$ p_T \f$
  /// of the vertex children, which would be extremely unreliable.
  ///
  /// @deprecated This should hardly ever be required for MC studies, and is not necessarily reliable!
  class PVertex : public Projection {
  public:

    /// @name Standard constructors and destructors.
    //@{

    /// The default constructor.
    PVertex()
      : _thePVertex(0)
    {
      setName("PVertex");
    }

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


    /// Get the primary vertex position.
    const Vector3 position() const {
      if (_thePVertex != 0) return Vector3(_thePVertex->position());
      return Vector3(0,0,0);
    }


  protected:

    /// Do the projection.
    void project(const Event& e);


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


  private:

    /// The Primary Vertex in the current collision.
    GenVertex* _thePVertex;

  };

}

#endif