5 #include "Rivet/Rivet.hh" 6 #include "Rivet/Projection.hh" 29 Event(
const GenEvent& ge);
59 template <
typename PROJ>
62 std::set<const Projection*>::const_iterator old = _projections.find(cpp);
63 if (old != _projections.end()) {
65 return pcast<PROJ>(pRef);
71 _projections.insert(pp);
76 template <
typename PROJ>
78 if (!pp)
throw Error(
"Event::applyProjection(PROJ*): Projection pointer is null.");
84 void _geNormAlignment();
89 GenEvent
const& _genEvent;
91 GenEvent* _modGenEvent;
94 mutable std::set<ConstProjectionPtr> _projections;
Definition: MC_JetAnalysis.hh:9
~Event()
The destructor.
Definition: Event.cc:99
Event(const GenEvent &ge)
The default constructor.
Definition: Event.cc:66
const GenEvent & genEvent() const
Return the generated event obtained from an external event generator.
Definition: Event.cc:103
virtual void project(const Event &e)=0
const PROJ & applyProjection(PROJ &p) const
Definition: Event.hh:60
Base class for all Rivet projections.
Definition: Projection.hh:28
Generic runtime Rivet error.
Definition: Exceptions.hh:12
double weight() const
The weight associated with the event.
Definition: Event.hh:46