PhysicsTools
Documentation for PhysicsTools.
PhysicsTools.Types.Cascade
PhysicsTools.Types.PEPlus
PhysicsTools.Types.Particle
PhysicsTools.Types.Track
PhysicsTools.Types.is_neutrino
PhysicsTools.Types.particle_shape
PhysicsTools.Types.pdg_code
PhysicsTools.Types.ptype_for_code
PhysicsTools.Types.shift_particle
PhysicsTools.Types.Cascade
— TypeSubtype of ParticleShape, used to classify signatures in detector. PEPlus, PEMinus, PGamma and PHadronShower have the shape Cascade; while PMuMinus, PMuPlus and PLightSabre have the shape Track. particle_shape() can be used to return shape of particle signature.
PhysicsTools.Types.PEPlus
— TypeSubtype of ParticleType, used to classify particles. pdg_code() can be used to find the corresponding particle PDF code.
PhysicsTools.Types.Particle
— TypeParticle{T,PType<:ParticleType}
Struct containing information of a single particle
Fields
position::SVector{3,T}
: Particle position given as a three dimensional static vector in detector coordinatesdirection::SVector{3,T}
: Particle direction of motion given as a three dimensional static vector in detector coordinatestime::T
: Time of the event this particle corresponds to, given in unites of nsenergy::T
: Total energy of the particle given in unites of GeVlength::T
: Length of particle track given in unites of mtype::Type{PType}
: Particle type, chosen from any ParticleType subtype (PEPlus, PEMinus, PGamma, PMuPlus, PMuMinus, PNuE, PNuMu, PNuTau, PNuEBar, PNuMuBar, PNuTauBar, PHadronShower, PLightSabre, PUnknown)
PhysicsTools.Types.Track
— TypeSubtype of ParticleShape, used to classify signatures in detector. PEPlus, PEMinus, PGamma and PHadronShower have the shape Cascade; while PMuMinus, PMuPlus and PLightSabre have the shape Track. particle_shape() can be used to return shape of particle signature.
PhysicsTools.Types.is_neutrino
— Methodis_neutrino(particle)
Return true if particle is of any neutrino subtype (PNuE, PNuEBar, PNuMu, PNuMuBar, PNuTau, PNuTauBar), otherwise return false.
Arguments
particle::Type
: Particle to check wheather is a neutrino.
PhysicsTools.Types.particle_shape
— Methodparticle_shape(partricle)
Return struct corresponding to shape of argument-particle's signature
Arguments
particle::Type
: Particle to check shape of.
PhysicsTools.Types.pdg_code
— Methodpdg_code(particle)
Return integer corresponding to the PDG code of a givern particle. ptypeforcode() can be used to find the struct of the corresponding particle.
Arguments
particle::Type
: Particle to return PDG code of.
PhysicsTools.Types.ptype_for_code
— Methodptype_for_code(code::Integer)
Return particle struct corresponding to a given PDG code. pdg_code() can be used to find the PDG code of a corresponding particle.
Arguments
code::Integer
: PDG code to get particle struct of.
PhysicsTools.Types.shift_particle
— Methodshift_particle(particle::Particle, dist_along)
Shifts the given particle along its direction by the specified distance.
Arguments
particle::Particle
: The particle to be shifted.dist_along
: The distance to shift the particle along its direction.
Returns
A new Particle
object with the shifted position.