BOSS 8.0.0
BESIII Offline Software System
Loading...
Searching...
No Matches
EvtSpinDensity.hh
Go to the documentation of this file.
1//--------------------------------------------------------------------------
2//
3// Environment:
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.
7//
8// Copyright Information: See EvtGen/COPYRIGHT
9// Copyright (C) 1998 Caltech, UCSB
10//
11// Module: EvtGen/EvtSpinDensity.hh
12//
13// Description: This class holds a spin density matrix, it is
14// a complex nxn matrix.
15//
16// Modification history:
17//
18// RYD May 29, 1997 Module created
19//
20//------------------------------------------------------------------------
21
22#ifndef EVTSPINDENSITY_HH
23#define EVTSPINDENSITY_HH
24#include "EvtComplex.hh"
25
27
28public:
29 EvtSpinDensity( const EvtSpinDensity& density );
30 EvtSpinDensity& operator=( const EvtSpinDensity& density );
31 virtual ~EvtSpinDensity();
32
34 void SetDim( int n );
35 int GetDim() const;
36 void Set( int i, int j, const EvtComplex& rhoij );
37 const EvtComplex& Get( int i, int j ) const;
38 double NormalizedProb( const EvtSpinDensity& d );
39 friend std::ostream& operator<<( std::ostream& s, const EvtSpinDensity& d );
40 void SetDiag( int n );
41
42 int Check();
43
44private:
46 int dim;
47};
48
49#endif
const Int_t n
EvtComplexPtr * EvtComplexPtrPtr
Definition EvtComplex.hh:69
XmlRpcServer s
double NormalizedProb(const EvtSpinDensity &d)
int GetDim() const
void SetDiag(int n)
const EvtComplex & Get(int i, int j) const
void Set(int i, int j, const EvtComplex &rhoij)
EvtSpinDensity & operator=(const EvtSpinDensity &density)
friend std::ostream & operator<<(std::ostream &s, const EvtSpinDensity &d)
void SetDim(int n)
EvtSpinDensity(const EvtSpinDensity &density)
virtual ~EvtSpinDensity()