SHiP Data Model
Event data model for the SHiP experiment: C++ data classes with ROOT dictionary support.
Loading...
Searching...
No Matches
Functions
ship::view Namespace Reference

Quantity views over the persisted data classes. More...

Functions

Vec3< Lengthvertex (SHiP::MCParticle const &p)
 
Vec3< Momentummomentum (SHiP::MCParticle const &p)
 
Energy energy (SHiP::MCParticle const &p)
 Total energy.
 
Time time (SHiP::MCParticle const &p)
 
void setVertex (SHiP::MCParticle &p, Vec3< Length > const &v)
 
void setMomentum (SHiP::MCParticle &p, Vec3< Momentum > const &v)
 
void setEnergy (SHiP::MCParticle &p, Energy e)
 
void setTime (SHiP::MCParticle &p, Time t)
 
Vec3< Lengthposition (SHiP::SimHit const &h)
 
Vec3< Momentummomentum (SHiP::SimHit const &h)
 
Energy energyDeposit (SHiP::SimHit const &h)
 
Time time (SHiP::SimHit const &h)
 
Length pathLength (SHiP::SimHit const &h)
 
void setPosition (SHiP::SimHit &h, Vec3< Length > const &v)
 
void setMomentum (SHiP::SimHit &h, Vec3< Momentum > const &v)
 
void setEnergyDeposit (SHiP::SimHit &h, Energy e)
 
void setTime (SHiP::SimHit &h, Time t)
 
void setPathLength (SHiP::SimHit &h, Length l)
 
Vec3< Lengthvertex (SHiP::SimParticle const &p)
 
Vec3< Lengthendpoint (SHiP::SimParticle const &p)
 
Vec3< Momentummomentum (SHiP::SimParticle const &p)
 
Energy energy (SHiP::SimParticle const &p)
 Initial kinetic energy.
 
Time time (SHiP::SimParticle const &p)
 
void setVertex (SHiP::SimParticle &p, Vec3< Length > const &v)
 
void setEndpoint (SHiP::SimParticle &p, Vec3< Length > const &v)
 
void setMomentum (SHiP::SimParticle &p, Vec3< Momentum > const &v)
 
void setEnergy (SHiP::SimParticle &p, Energy e)
 
void setTime (SHiP::SimParticle &p, Time t)
 
Vec3< Lengthvertex (SHiP::RecParticle const &p)
 
Vec3< Lengthendpoint (SHiP::RecParticle const &p)
 
Vec3< Momentummomentum (SHiP::RecParticle const &p)
 
Energy energy (SHiP::RecParticle const &p)
 Initial kinetic energy.
 
Time time (SHiP::RecParticle const &p)
 
Length ipPV (SHiP::RecParticle const &p)
 Impact parameter wrt the primary vertex.
 
void setVertex (SHiP::RecParticle &p, Vec3< Length > const &v)
 
void setEndpoint (SHiP::RecParticle &p, Vec3< Length > const &v)
 
void setMomentum (SHiP::RecParticle &p, Vec3< Momentum > const &v)
 
void setEnergy (SHiP::RecParticle &p, Energy e)
 
void setTime (SHiP::RecParticle &p, Time t)
 
void setIpPV (SHiP::RecParticle &p, Length l)
 

Detailed Description

Quantity views over the persisted data classes.

The data classes stay plain-double PODs (ROOT streaming cannot handle mp-units members); these free functions convert to and from the canonical quantity types so computation code never touches an implicit unit. All conversions are bitwise (the storage unit is the quantity's unit).

Function Documentation

◆ endpoint() [1/2]

Vec3< Length > ship::view::endpoint ( SHiP::RecParticle const p)
inline

◆ endpoint() [2/2]

Vec3< Length > ship::view::endpoint ( SHiP::SimParticle const p)
inline

◆ energy() [1/3]

Energy ship::view::energy ( SHiP::MCParticle const p)
inline

Total energy.

◆ energy() [2/3]

Energy ship::view::energy ( SHiP::RecParticle const p)
inline

Initial kinetic energy.

◆ energy() [3/3]

Energy ship::view::energy ( SHiP::SimParticle const p)
inline

Initial kinetic energy.

◆ energyDeposit()

Energy ship::view::energyDeposit ( SHiP::SimHit const h)
inline

◆ ipPV()

Length ship::view::ipPV ( SHiP::RecParticle const p)
inline

Impact parameter wrt the primary vertex.

◆ momentum() [1/4]

Vec3< Momentum > ship::view::momentum ( SHiP::MCParticle const p)
inline

◆ momentum() [2/4]

Vec3< Momentum > ship::view::momentum ( SHiP::RecParticle const p)
inline

◆ momentum() [3/4]

Vec3< Momentum > ship::view::momentum ( SHiP::SimHit const h)
inline

◆ momentum() [4/4]

Vec3< Momentum > ship::view::momentum ( SHiP::SimParticle const p)
inline

◆ pathLength()

Length ship::view::pathLength ( SHiP::SimHit const h)
inline

◆ position()

Vec3< Length > ship::view::position ( SHiP::SimHit const h)
inline

◆ setEndpoint() [1/2]

void ship::view::setEndpoint ( SHiP::RecParticle p,
Vec3< Length > const v 
)
inline

◆ setEndpoint() [2/2]

void ship::view::setEndpoint ( SHiP::SimParticle p,
Vec3< Length > const v 
)
inline

◆ setEnergy() [1/3]

void ship::view::setEnergy ( SHiP::MCParticle p,
Energy  e 
)
inline

◆ setEnergy() [2/3]

void ship::view::setEnergy ( SHiP::RecParticle p,
Energy  e 
)
inline

◆ setEnergy() [3/3]

void ship::view::setEnergy ( SHiP::SimParticle p,
Energy  e 
)
inline

◆ setEnergyDeposit()

void ship::view::setEnergyDeposit ( SHiP::SimHit h,
Energy  e 
)
inline

◆ setIpPV()

void ship::view::setIpPV ( SHiP::RecParticle p,
Length  l 
)
inline

◆ setMomentum() [1/4]

void ship::view::setMomentum ( SHiP::MCParticle p,
Vec3< Momentum > const v 
)
inline

◆ setMomentum() [2/4]

void ship::view::setMomentum ( SHiP::RecParticle p,
Vec3< Momentum > const v 
)
inline

◆ setMomentum() [3/4]

void ship::view::setMomentum ( SHiP::SimHit h,
Vec3< Momentum > const v 
)
inline

◆ setMomentum() [4/4]

void ship::view::setMomentum ( SHiP::SimParticle p,
Vec3< Momentum > const v 
)
inline

◆ setPathLength()

void ship::view::setPathLength ( SHiP::SimHit h,
Length  l 
)
inline

◆ setPosition()

void ship::view::setPosition ( SHiP::SimHit h,
Vec3< Length > const v 
)
inline

◆ setTime() [1/4]

void ship::view::setTime ( SHiP::MCParticle p,
Time  t 
)
inline

◆ setTime() [2/4]

void ship::view::setTime ( SHiP::RecParticle p,
Time  t 
)
inline

◆ setTime() [3/4]

void ship::view::setTime ( SHiP::SimHit h,
Time  t 
)
inline

◆ setTime() [4/4]

void ship::view::setTime ( SHiP::SimParticle p,
Time  t 
)
inline

◆ setVertex() [1/3]

void ship::view::setVertex ( SHiP::MCParticle p,
Vec3< Length > const v 
)
inline

◆ setVertex() [2/3]

void ship::view::setVertex ( SHiP::RecParticle p,
Vec3< Length > const v 
)
inline

◆ setVertex() [3/3]

void ship::view::setVertex ( SHiP::SimParticle p,
Vec3< Length > const v 
)
inline

◆ time() [1/4]

Time ship::view::time ( SHiP::MCParticle const p)
inline

◆ time() [2/4]

Time ship::view::time ( SHiP::RecParticle const p)
inline

◆ time() [3/4]

Time ship::view::time ( SHiP::SimHit const h)
inline

◆ time() [4/4]

Time ship::view::time ( SHiP::SimParticle const p)
inline

◆ vertex() [1/3]

Vec3< Length > ship::view::vertex ( SHiP::MCParticle const p)
inline

◆ vertex() [2/3]

Vec3< Length > ship::view::vertex ( SHiP::RecParticle const p)
inline

◆ vertex() [3/3]

Vec3< Length > ship::view::vertex ( SHiP::SimParticle const p)
inline