1 //--------------------------------------------------------------------------
4 // This software is part of the EvtGen package developed jointly
5 // for the BaBar and CLEO collaborations. If you use all or part
6 // of it, please give an appropriate acknowledgement.
8 // Copyright Information: See EvtGen/COPYRIGHT
9 // Copyright (C) 1998 Caltech, UCSB
11 // Module: EvtGen/EvtSpinDensity.hh
13 // Description: This class holds a spin density matrix, it is
14 // a complex nxn matrix.
16 // Modification history:
18 // RYD May 29, 1997 Module created
20 //------------------------------------------------------------------------
22 #ifndef EVTSPINDENSITY_HH
23 #define EVTSPINDENSITY_HH
24 #include "EvtGenBase/EvtComplex.hh"
27 class EvtSpinDensity {
31 EvtSpinDensity(const EvtSpinDensity& density);
32 EvtSpinDensity& operator=(const EvtSpinDensity& density);
33 virtual ~EvtSpinDensity();
38 void set(int i,int j,const EvtComplex& rhoij);
39 const EvtComplex& get(int i,int j) const;
40 double normalizedProb(const EvtSpinDensity& d);
41 friend std::ostream& operator<<(std::ostream& s,const EvtSpinDensity& d);