group 4-vector comparison functions (for sorting)

4-vector comparison functions (for sorting)

Module: Functions for 4-momenta

Modules

Name
MT calculation
4-vector string representations

Types

Name
typedef std::vector< FourVector >FourVectors
typedef std::vector< FourMomentum >FourMomenta

Functions

Name
boolcmpMomByPt(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing pT.
boolcmpMomByAscPt(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing pT.
boolcmpMomByP(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing 3-momentum magnitude
boolcmpMomByAscP(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing 3-momentum magnitude
boolcmpMomByEt(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing transverse energy.
boolcmpMomByAscEt(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing transverse energy.
boolcmpMomByE(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing energy.
boolcmpMomByAscE(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing energy.
boolcmpMomByMass(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing mass.
boolcmpMomByAscMass(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing mass.
boolcmpMomByEta(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing eta (pseudorapidity)
boolcmpMomByDescEta(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing eta (pseudorapidity)
boolcmpMomByAbsEta(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing absolute eta (pseudorapidity)
boolcmpMomByDescAbsEta(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing absolute eta (pseudorapidity)
boolcmpMomByRap(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing rapidity.
boolcmpMomByDescRap(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing rapidity.
boolcmpMomByAbsRap(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by increasing absolute rapidity.
boolcmpMomByDescAbsRap(const FourMomentum & a, const FourMomentum & b)
Comparison to give a sorting by decreasing absolute rapidity.
template <typename MOMS ,typename CMP >
MOMS &
isortBy(MOMS & pbs, const CMP & cmp)
Sort a container of momenta by cmp and return by reference for non-const inputs.
template <typename MOMS ,typename CMP >
MOMS
sortBy(const MOMS & pbs, const CMP & cmp)
Sort a container of momenta by cmp and return by value for const inputs.
template <typename MOMS >
MOMS &
isortByPt(MOMS & pbs)
Sort a container of momenta by pT (decreasing) and return by reference for non-const inputs.
template <typename MOMS >
MOMS
sortByPt(const MOMS & pbs)
Sort a container of momenta by pT (decreasing) and return by value for const inputs.
template <typename MOMS >
MOMS &
isortByE(MOMS & pbs)
Sort a container of momenta by E (decreasing) and return by reference for non-const inputs.
template <typename MOMS >
MOMS
sortByE(const MOMS & pbs)
Sort a container of momenta by E (decreasing) and return by value for const inputs.
template <typename MOMS >
MOMS &
isortByEt(MOMS & pbs)
Sort a container of momenta by Et (decreasing) and return by reference for non-const inputs.
template <typename MOMS >
MOMS
sortByEt(const MOMS & pbs)
Sort a container of momenta by Et (decreasing) and return by value for const inputs.

Types Documentation

typedef FourVectors

typedef std::vector<FourVector> Rivet::FourVectors;

Typedefs for lists of vector types

typedef FourMomenta

typedef std::vector<FourMomentum> Rivet::FourMomenta;

Functions Documentation

function cmpMomByPt

inline bool cmpMomByPt(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing pT.

function cmpMomByAscPt

inline bool cmpMomByAscPt(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing pT.

function cmpMomByP

inline bool cmpMomByP(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing 3-momentum magnitude |p|.

function cmpMomByAscP

inline bool cmpMomByAscP(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing 3-momentum magnitude |p|.

function cmpMomByEt

inline bool cmpMomByEt(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing transverse energy.

function cmpMomByAscEt

inline bool cmpMomByAscEt(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing transverse energy.

function cmpMomByE

inline bool cmpMomByE(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing energy.

function cmpMomByAscE

inline bool cmpMomByAscE(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing energy.

function cmpMomByMass

inline bool cmpMomByMass(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing mass.

function cmpMomByAscMass

inline bool cmpMomByAscMass(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing mass.

function cmpMomByEta

inline bool cmpMomByEta(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing eta (pseudorapidity)

function cmpMomByDescEta

inline bool cmpMomByDescEta(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing eta (pseudorapidity)

function cmpMomByAbsEta

inline bool cmpMomByAbsEta(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

function cmpMomByDescAbsEta

inline bool cmpMomByDescAbsEta(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing absolute eta (pseudorapidity)

function cmpMomByRap

inline bool cmpMomByRap(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing rapidity.

function cmpMomByDescRap

inline bool cmpMomByDescRap(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing rapidity.

function cmpMomByAbsRap

inline bool cmpMomByAbsRap(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by increasing absolute rapidity.

function cmpMomByDescAbsRap

inline bool cmpMomByDescAbsRap(
    const FourMomentum & a,
    const FourMomentum & b
)

Comparison to give a sorting by decreasing absolute rapidity.

function isortBy

template <typename MOMS ,
typename CMP >
inline MOMS & isortBy(
    MOMS & pbs,
    const CMP & cmp
)

Sort a container of momenta by cmp and return by reference for non-const inputs.

Todo: Add sorting by phi [0..2PI]

function sortBy

template <typename MOMS ,
typename CMP >
inline MOMS sortBy(
    const MOMS & pbs,
    const CMP & cmp
)

Sort a container of momenta by cmp and return by value for const inputs.

function isortByPt

template <typename MOMS >
inline MOMS & isortByPt(
    MOMS & pbs
)

Sort a container of momenta by pT (decreasing) and return by reference for non-const inputs.

function sortByPt

template <typename MOMS >
inline MOMS sortByPt(
    const MOMS & pbs
)

Sort a container of momenta by pT (decreasing) and return by value for const inputs.

function isortByE

template <typename MOMS >
inline MOMS & isortByE(
    MOMS & pbs
)

Sort a container of momenta by E (decreasing) and return by reference for non-const inputs.

function sortByE

template <typename MOMS >
inline MOMS sortByE(
    const MOMS & pbs
)

Sort a container of momenta by E (decreasing) and return by value for const inputs.

function isortByEt

template <typename MOMS >
inline MOMS & isortByEt(
    MOMS & pbs
)

Sort a container of momenta by Et (decreasing) and return by reference for non-const inputs.

function sortByEt

template <typename MOMS >
inline MOMS sortByEt(
    const MOMS & pbs
)

Sort a container of momenta by Et (decreasing) and return by value for const inputs.


Updated on 2022-08-07 at 20:17:18 +0100