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