ATLAS Offline Software
Loading...
Searching...
No Matches
Event/FourMomUtils/FourMomUtils/Thrust.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef FOURMOMUTILS_THRUST_H
6#define FOURMOMUTILS_THRUST_H
7
8// AthAnalysisBase/ManaCore doesn't currently include the Trigger Service
9#ifndef XAOD_ANALYSIS
10
13
14namespace FourMomUtils
15{
16
18
19 CLHEP::Hep3Vector thrust( const I4MomIter_t& iBeg, const I4MomIter_t& iEnd,
20 double& thrust_major, double& thrust_minor,
21 bool useThreeD=false );
22
23 inline
24 CLHEP::Hep3Vector thrust( const INavigable4MomentumCollection* theParticles,
25 double& thrust_major, double& thrust_minor,
26 bool useThreeD=false ) {
27 return thrust( theParticles->begin(), theParticles->end(),
28 thrust_major, thrust_minor,
29 useThreeD );
30 }
31}
32
33#endif
34
35#endif // FOURMOMUTILS_THRUST_H
DataVector< INavigable4Momentum > INavigable4MomentumCollection
DataModel_detail::const_iterator< DataVector > const_iterator
Definition DataVector.h:838
const_iterator end() const noexcept
Return a const_iterator pointing past the end of the collection.
const_iterator begin() const noexcept
Return a const_iterator pointing at the beginning of the collection.
CLHEP::Hep3Vector thrust(const I4MomIter_t &iBeg, const I4MomIter_t &iEnd, double &thrust_major, double &thrust_minor, bool useThreeD=false)
INavigable4MomentumCollection::const_iterator I4MomIter_t
Definition ForwardTerm.h:16