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 
00012 namespace Rivet {
00013 
00014   /// Unscoped awareness of FastJet's PseudoJet
00015   using fastjet::PseudoJet;
00016 
00017   /// Typedef for a collection of PseudoJet objects.
00018   typedef std::vector<PseudoJet> PseudoJets;
00019 
00020 
00021   /// Make a 3-momentum vector from a FastJet pseudojet
00022   inline Vector3 momentum3(const fastjet::PseudoJet& pj) {
00023     return Vector3(pj.px(), pj.py(), pj.pz());
00024   }
00025 
00026   /// Make a 4-momentum vector from a FastJet pseudojet
00027   inline FourMomentum momentum(const fastjet::PseudoJet& pj) {
00028     return FourMomentum(pj.E(), pj.px(), pj.py(), pj.pz());
00029   }
00030 
00031 }
00032 
00033 #endif