/usr/include/Rivet/Projections/DISLepton.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 | // -*- C++ -*-
#ifndef RIVET_DISLepton_HH
#define RIVET_DISLepton_HH
#include "Rivet/Projections/Beam.hh"
#include "Rivet/Projections/FinalState.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Event.hh"
namespace Rivet {
/// @brief Get the incoming and outgoing leptons in a DIS event.
class DISLepton : public Projection {
public:
/// @name Constructors.
//@{
DISLepton(){
setName("DISLepton");
addProjection(Beam(), "Beam");
addProjection(FinalState(), "FS");
}
/// Clone on the heap.
virtual const Projection* clone() const {
return new DISLepton(*this);
}
//@}
protected:
/// Perform the projection operation on the supplied event.
virtual void project(const Event& e);
/// Compare with other projections.
virtual int compare(const Projection& p) const;
public:
/// The incoming lepton.
const Particle& in() const { return _incoming; }
/// The outgoing lepton.
const Particle& out() const { return _outgoing; }
const double &pzSign() const { return _sign; }
private:
/// The incoming lepton.
Particle _incoming;
/// The outgoing lepton.
Particle _outgoing;
/// The sign of the PZ of the incoming lepton
double _sign;
};
}
#endif
|