MARLEY (Model of Argon Reaction Low Energy Yields)  v1.0.0
A Monte Carlo event generator for tens-of-MeV neutrino-nucleus interactions in liquid argon
 All Classes Functions Variables Enumerations Pages
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
marley::RotationMatrix Class Reference

Simple rotation matrix implementation used to reorient Particle objects based on the incident neutrino direction. More...

#include <RotationMatrix.hh>

Public Member Functions

 RotationMatrix ()
 Creates a 3×3 identity matrix.
 
 RotationMatrix (const ThreeVector &from_vec, const ThreeVector &to_vec)
 Create a 3×3 rotation matrix that rotates the 3-vector from_vec into the 3-vector to_vec.
 
ThreeVector rotate_copy (const ThreeVector &v)
 Create a rotated copy of the 3-vector v.
 
void rotate_inplace (ThreeVector &v)
 Rotate a 3-vector v in place.
 
void rotate_particle_inplace (marley::Particle &p)
 Rotate the 3-momentum of a marley::Particle in place.
 

Static Public Member Functions

static ThreeVector normalize (const ThreeVector &v)
 Returns a copy of the 3-vector v normalized to have unit magnitude.
 

Protected Attributes

ThreeThreeMatrix matrix_
 3×3 rotation matrix
 

Detailed Description

Simple rotation matrix implementation used to reorient Particle objects based on the incident neutrino direction.


The documentation for this class was generated from the following files: