ThePEG::Helicity::RhoDMatrix Class Reference

The RhoDMatrix class is designed to implement the storage of the rho and D matrices which are required for the spin correlation algorithm. More...

#include <RhoDMatrix.h>

List of all members.

Public Member Functions

Standard constructors and destructors.
 RhoDMatrix ()
 Default constructor with undefined spin.
 RhoDMatrix (PDT::Spin inspin, bool average=true)
 Standard constructor giving the spin as 2s+1.
Access matrix elements.
Complex operator() (size_t ix, size_t iy) const
 Return an element of the matrix.
Complexoperator() (size_t ix, size_t iy)
 Set an element of the matrix.
void normalize ()
 renormalise the matrix so it has unit trace
Access the spin.
PDT::Spin iSpin () const
 Get the spin.

Private Types

enum  { MAXSPIN = 5 }
 Spin matrix size.

Private Attributes

PDT::Spin _spin
 2s+1 for the particle.
size_t _ispin
 Storage of 2s+1 for speed.
Complex _matrix [MAXSPIN][MAXSPIN]
 Storage for the matrix allowing up to spin 2 particles.

Friends

ostream & operator<< (ostream &os, const RhoDMatrix &rd)
 Output the spin density matrix for debugging purposes.


Detailed Description

The RhoDMatrix class is designed to implement the storage of the rho and D matrices which are required for the spin correlation algorithm.

The matrix stores the spin as 2s+1.

Author:
Peter Richardson

Definition at line 28 of file RhoDMatrix.h.


Constructor & Destructor Documentation

ThePEG::Helicity::RhoDMatrix::RhoDMatrix ( PDT::Spin  inspin,
bool  average = true 
) [inline]

Standard constructor giving the spin as 2s+1.

The matrix starts out averaged, unless the second argument is false, when it is zeroed.

Definition at line 43 of file RhoDMatrix.h.

References _ispin, and _matrix.


Member Function Documentation

PDT::Spin ThePEG::Helicity::RhoDMatrix::iSpin (  )  const [inline]

Get the spin.

The spin is returned as 2J+1 in units of hbar/2.

Definition at line 100 of file RhoDMatrix.h.

References _spin.


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

Generated on Thu Apr 29 12:43:26 2010 for ThePEG by  doxygen 1.5.5