TriggerCDFRun2.hh
// -*- C++ -*-
#ifndef RIVET_TriggerCDFRun2_HH
#define RIVET_TriggerCDFRun2_HH
#include "Rivet/Projection.hh"
#include "Rivet/Event.hh"
#include "Rivet/Particle.hh"
#include "Rivet/Projections/Beam.hh"
namespace Rivet {
class TriggerCDFRun2 : public Projection {
public:
TriggerCDFRun2() {
setName("TriggerCDFRun2");
addProjection(ChargedFinalState(-4.7, 4.7), "CFS");
}
virtual const Projection* clone() const {
return new TriggerCDFRun2(*this);
}
public:
bool minBiasDecision() const {
return _decision_mb;
}
void project(const Event& evt);
protected:
virtual int compare(const Projection& UNUSED(p)) const {
return EQUIVALENT;
}
private:
bool _decision_mb;
};
}
#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::TriggerCDFRun2::project
void project(const Event &evt)
Project on to the Event.
Definition: TriggerCDFRun2.cc:11
Rivet::TriggerCDFRun2
Access to the min bias triggers used by CDF in Run 0 and Run 1.
Definition: TriggerCDFRun2.hh:14
Rivet::Event
Definition: Event.hh:22
Rivet::TriggerCDFRun2::minBiasDecision
bool minBiasDecision() const
The trigger result.
Definition: TriggerCDFRun2.hh:33
Rivet::ProjectionApplier::addProjection
const PROJ & addProjection(const PROJ &proj, const std::string &name)
Definition: ProjectionApplier.hh:113
Rivet::TriggerCDFRun2::clone
virtual const Projection * clone() const
Clone on the heap.
Definition: TriggerCDFRun2.hh:25
Rivet::TriggerCDFRun2::compare
virtual int compare(const Projection &UNUSED(p)) const
Compare with other projections.
Definition: TriggerCDFRun2.hh:44
Rivet::ChargedFinalState
Project only charged final state particles.
Definition: ChargedFinalState.hh:16
Rivet::TriggerCDFRun2::TriggerCDFRun2
TriggerCDFRun2()
Default constructor.
Definition: TriggerCDFRun2.hh:18
Rivet::Projection
Base class for all Rivet projections.
Definition: Projection.hh:28