SVertex.hh
// -*- C++ -*-
#ifndef RIVET_SVertex_HH
#define RIVET_SVertex_HH
#include "Rivet/Rivet.hh"
#include "Rivet/Projection.hh"
#include "Rivet/Projections/PVertex.hh"
#include "Rivet/Projections/ChargedFinalState.hh"
#include "Rivet/Event.hh"
namespace Rivet {
class SVertex : public Projection {
public:
SVertex(const ChargedFinalState& chfs,
const vector<FourMomentum>& jetaxes, double deltaR,
double detEta, double IPres, double DLS, double DLSres=0.0)
: _jetaxes(jetaxes), _deltaR(deltaR),
_detEta(detEta), _IPres(IPres), _DLS(DLS),
_DLSres(DLSres)
{
setName("SVertex");
addProjection(PVertex(), "PV");
addProjection(chfs, "FS");
if (_DLSres == 0.0) {
_DLSres = _IPres;
}
}
virtual const Projection* clone() const {
return new SVertex(*this);
}
public:
const vector<FourMomentum>& getTaggedJets() const {
return _taggedjets;
}
protected:
void project(const Event& e);
int compare(const Projection& p) const;
private:
const vector<FourMomentum>& _jetaxes;
double _deltaR;
//bool (*_applyVtxTrackCuts) (const ParticleVector&, const Vector3&, FourMomentum);
bool _applyVtxTrackCuts(const ParticleVector&, const Vector3&, FourMomentum);
double _detEta;
double _IPres;
double _DLS;
double _DLSres;
vector<FourMomentum> _taggedjets;
};
}
#endif
Rivet::Projection::setName
void setName(const std::string &name)
Used by derived classes to set their name.
Definition: Projection.hh:120
Rivet
Definition: MC_JetAnalysis.hh:9
Rivet::SVertex::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: SVertex.hh:63
Rivet::SVertex::SVertex
SVertex(const ChargedFinalState &chfs, const vector< FourMomentum > &jetaxes, double deltaR, double detEta, double IPres, double DLS, double DLSres=0.0)
Definition: SVertex.hh:47
Rivet::Event
Definition: Event.hh:22
Rivet::PVertex
Get the position of the primary vertex of an event.
Definition: PVertex.hh:23
Rivet::SVertex::getTaggedJets
const vector< FourMomentum > & getTaggedJets() const
Return vector of tagged jets (FourMomentum's)
Definition: SVertex.hh:71
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::SVertex::compare
int compare(const Projection &p) const
Compare projections.
Definition: SVertex.cc:66
Rivet::ChargedFinalState
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
Rivet::SVertex
Determine secondary vertices.
Definition: SVertex.hh:40
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28
Rivet::Vector3
Three-dimensional specialisation of Vector.
Definition: Vector3.hh:26
Rivet::FourMomentum
Specialized version of the FourVector with momentum/energy functionality.
Definition: Vector4.hh:324
Rivet::SVertex::project
void project(const Event &e)
Apply the projection to the event.
Definition: SVertex.cc:79