00001 #ifndef FOURMOMUTILS_THRUST_H
00002 #define FOURMOMUTILS_THRUST_H
00003
00004
00005 #ifndef XAOD_ANALYSIS
00006
00007 #include "EventKernel/INavigable4Momentum.h"
00008 #include "NavFourMom/INavigable4MomentumCollection.h"
00009
00010 namespace FourMomUtils
00011 {
00012
00013 typedef INavigable4MomentumCollection::const_iterator I4MomIter_t;
00014
00015 CLHEP::Hep3Vector thrust( const I4MomIter_t iBeg, const I4MomIter_t iEnd,
00016 double& thrust_major, double& thrust_minor,
00017 bool useThreeD=false );
00018
00019 inline
00020 CLHEP::Hep3Vector thrust( const INavigable4MomentumCollection* theParticles,
00021 double& thrust_major, double& thrust_minor,
00022 bool useThreeD=false ) {
00023 return thrust( theParticles->begin(), theParticles->end(),
00024 thrust_major, thrust_minor,
00025 useThreeD );
00026 }
00027 }
00028
00029 #endif
00030
00031 #endif // FOURMOMUTILS_THRUST_H