rivet is hosted by Hepforge, IPPP Durham
RivetFastJet.hh
Go to the documentation of this file.
00001 #ifndef RIVET_RIVETFASTJET_HH
00002 #define RIVET_RIVETFASTJET_HH
00003 
00004 #include "Rivet/Config/RivetCommon.hh"
00005 
00006 #include "fastjet/JetDefinition.hh"
00007 #include "fastjet/AreaDefinition.hh"
00008 #include "fastjet/ClusterSequence.hh"
00009 #include "fastjet/ClusterSequenceArea.hh"
00010 #include "fastjet/PseudoJet.hh"
00011 #include "fastjet/tools/Filter.hh"
00012 
00013 namespace Rivet {
00014 
00015 
00016   /// Unscoped awareness of FastJet's PseudoJet
00017   using fastjet::PseudoJet;
00018 
00019   /// Typedef for a collection of PseudoJet objects.
00020   typedef std::vector<PseudoJet> PseudoJets;
00021 
00022 
00023   /// Make a 3-momentum vector from a FastJet pseudojet
00024   inline Vector3 momentum3(const fastjet::PseudoJet& pj) {
00025     return Vector3(pj.px(), pj.py(), pj.pz());
00026   }
00027 
00028   /// Make a 4-momentum vector from a FastJet pseudojet
00029   inline FourMomentum momentum(const fastjet::PseudoJet& pj) {
00030     return FourMomentum(pj.E(), pj.px(), pj.py(), pj.pz());
00031   }
00032 
00033 
00034 }
00035 
00036 #endif