group Non-PID particle properties, via unbound functions

Non-PID particle properties, via unbound functions

Functions

Name
boolisFirstWith(const Particle & p, const ParticleSelector & f)
Determine whether a particle is the first in a decay chain to meet the function requirement.
boolisFirstWithout(const Particle & p, const ParticleSelector & f)
Determine whether a particle is the first in a decay chain not to meet the function requirement.
boolisLastWith(const Particle & p, const ParticleSelector & f)
Determine whether a particle is the last in a decay chain to meet the function requirement.
boolisLastWithout(const Particle & p, const ParticleSelector & f)
Determine whether a particle is the last in a decay chain not to meet the function requirement.
boolhasAncestorWith(const Particle & p, const ParticleSelector & f, bool only_physical =true)
Determine whether a particle has an ancestor which meets the function requirement.
boolhasAncestorWithout(const Particle & p, const ParticleSelector & f, bool only_physical =true)
Determine whether a particle has an ancestor which doesn’t meet the function requirement.
boolhasParentWith(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a parent which meets the function requirement.
boolhasParentWithout(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a parent which doesn’t meet the function requirement.
boolhasChildWith(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a child which meets the function requirement.
boolhasChildWithout(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a child which doesn’t meet the function requirement.
boolhasDescendantWith(const Particle & p, const ParticleSelector & f, bool remove_duplicates =true)
Determine whether a particle has a descendant which meets the function requirement.
boolhasDescendantWithout(const Particle & p, const ParticleSelector & f, bool remove_duplicates =true)
Determine whether a particle has a descendant which doesn’t meet the function requirement.
boolhasStableDescendantWith(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a stable descendant which meets the function requirement.
boolhasStableDescendantWithout(const Particle & p, const ParticleSelector & f)
Determine whether a particle has a stable descendant which doesn’t meet the function requirement.
boolisVisible(const Particle & p)
Is this particle potentially visible in a detector?
boolisDirect(const Particle & p, bool allow_from_direct_tau =false, bool allow_from_direct_mu =false)
Decide if a given particle is direct, via Particle::isDirect()
boolisPrompt(const Particle & p, bool allow_from_prompt_tau =false, bool allow_from_prompt_mu =false)
Decide if a given particle is prompt, via Particle::isPrompt()
boolisStable(const Particle & p)
Decide if a given particle is stable, via Particle::isStable()
boolhasHadronicDecay(const Particle & p)
Decide if a given particle decays hadronically.
boolhasLeptonicDecay(const Particle & p)
Decide if a given particle decays leptonically (decays, and no hadrons)
boolhasAncestor(const Particle & p, PdgId pid)
boolfromBottom(const Particle & p)
Determine whether the particle is from a b-hadron decay.
boolfromCharm(const Particle & p)
Determine whether the particle is from a c-hadron decay.
boolfromHadron(const Particle & p)
Determine whether the particle is from a hadron decay.
boolfromTau(const Particle & p, bool prompt_taus_only =false)
Determine whether the particle is from a tau decay.
boolfromPromptTau(const Particle & p)
Determine whether the particle is from a prompt tau decay.

Functions Documentation

function isFirstWith

inline bool isFirstWith(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle is the first in a decay chain to meet the function requirement.

function isFirstWithout

inline bool isFirstWithout(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle is the first in a decay chain not to meet the function requirement.

function isLastWith

inline bool isLastWith(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle is the last in a decay chain to meet the function requirement.

function isLastWithout

inline bool isLastWithout(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle is the last in a decay chain not to meet the function requirement.

function hasAncestorWith

inline bool hasAncestorWith(
    const Particle & p,
    const ParticleSelector & f,
    bool only_physical =true
)

Determine whether a particle has an ancestor which meets the function requirement.

function hasAncestorWithout

inline bool hasAncestorWithout(
    const Particle & p,
    const ParticleSelector & f,
    bool only_physical =true
)

Determine whether a particle has an ancestor which doesn’t meet the function requirement.

function hasParentWith

inline bool hasParentWith(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a parent which meets the function requirement.

function hasParentWithout

inline bool hasParentWithout(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a parent which doesn’t meet the function requirement.

function hasChildWith

inline bool hasChildWith(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a child which meets the function requirement.

function hasChildWithout

inline bool hasChildWithout(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a child which doesn’t meet the function requirement.

function hasDescendantWith

inline bool hasDescendantWith(
    const Particle & p,
    const ParticleSelector & f,
    bool remove_duplicates =true
)

Determine whether a particle has a descendant which meets the function requirement.

function hasDescendantWithout

inline bool hasDescendantWithout(
    const Particle & p,
    const ParticleSelector & f,
    bool remove_duplicates =true
)

Determine whether a particle has a descendant which doesn’t meet the function requirement.

function hasStableDescendantWith

inline bool hasStableDescendantWith(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a stable descendant which meets the function requirement.

function hasStableDescendantWithout

inline bool hasStableDescendantWithout(
    const Particle & p,
    const ParticleSelector & f
)

Determine whether a particle has a stable descendant which doesn’t meet the function requirement.

function isVisible

inline bool isVisible(
    const Particle & p
)

Is this particle potentially visible in a detector?

function isDirect

inline bool isDirect(
    const Particle & p,
    bool allow_from_direct_tau =false,
    bool allow_from_direct_mu =false
)

Decide if a given particle is direct, via Particle::isDirect()

A “direct” particle is one directly connected to the hard process. It is a preferred alias for “prompt”, since it has no confusing implications about distinguishability by timing information.

The boolean arguments allow a decay lepton to be considered direct if its parent was a “real” direct lepton.

function isPrompt

inline bool isPrompt(
    const Particle & p,
    bool allow_from_prompt_tau =false,
    bool allow_from_prompt_mu =false
)

Decide if a given particle is prompt, via Particle::isPrompt()

The boolean arguments allow a decay lepton to be considered prompt if its parent was a “real” prompt lepton.

function isStable

inline bool isStable(
    const Particle & p
)

Decide if a given particle is stable, via Particle::isStable()

function hasHadronicDecay

inline bool hasHadronicDecay(
    const Particle & p
)

Decide if a given particle decays hadronically.

function hasLeptonicDecay

inline bool hasLeptonicDecay(
    const Particle & p
)

Decide if a given particle decays leptonically (decays, and no hadrons)

function hasAncestor

inline bool hasAncestor(
    const Particle & p,
    PdgId pid
)

Deprecated:

Prefer hasAncestorWith

Check whether a given PID is found in the particle’s ancestor list

function fromBottom

inline bool fromBottom(
    const Particle & p
)

Determine whether the particle is from a b-hadron decay.

function fromCharm

inline bool fromCharm(
    const Particle & p
)

Determine whether the particle is from a c-hadron decay.

function fromHadron

inline bool fromHadron(
    const Particle & p
)

Determine whether the particle is from a hadron decay.

function fromTau

inline bool fromTau(
    const Particle & p,
    bool prompt_taus_only =false
)

Determine whether the particle is from a tau decay.

function fromPromptTau

inline bool fromPromptTau(
    const Particle & p
)

Determine whether the particle is from a prompt tau decay.


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