|
EvtGen
2.0.0
Monte Carlo generator of particle decays, in particular the weak decays of heavy flavour particles such as B mesons.
|
Go to the documentation of this file. 42 for ( i = 0; i < dim; i++ ) { 43 for ( j = 0; j < dim; j++ ) { 44 rho[i][j] = density. rho[i][j]; 54 for ( i = 0; i < dim; i++ ) { 55 for ( j = 0; j < dim; j++ ) { 56 rho[i][j] = density. rho[i][j]; 67 for ( i = 0; i < dim; i++ ) 86 for ( i = 0; i < dim; i++ ) 97 for ( i = 0; i < n; i++ ) { 109 assert( i < dim && j < dim ); 115 assert( i < dim && j < dim ); 124 for ( i = 0; i < n; i++ ) { 125 for ( j = 0; j < n; j++ ) { 140 << "Not matching dimensions in NormalizedProb" << endl; 144 for ( i = 0; i < dim; i++ ) { 146 for ( j = 0; j < dim; j++ ) { 147 prob += rho[i][j] * d. rho[i][j]; 151 if ( imag( prob ) > 0.00000001 * real( prob ) ) { 153 << "Imaginary probability:" << prob << " " << norm << endl; 155 if ( real( prob ) < 0.0 ) { 157 << "Negative probability:" << prob << " " << norm << endl; 160 return real( prob ) / norm; 167 << "dim=" << dim << "in SpinDensity::Check" << endl; 174 for ( i = 0; i < dim; i++ ) { 175 trace += abs( rho[i][i] ); 178 for ( i = 0; i < dim; i++ ) { 181 if ( imag( rho[i][i] ) * 1000000.0 > trace ) { 189 for ( i = 0; i < dim; i++ ) { 190 for ( j = i + 1; j < dim; j++ ) { 192 0.00000001 * ( abs( rho[i][i] ) + abs( rho[j][j] ) ) ) { 197 0.00000001 * ( abs( rho[i][i] ) + abs( rho[j][j] ) ) ) { 212 s << "Dimension:" << d. dim << endl; 214 for ( i = 0; i < d. dim; i++ ) { 215 for ( j = 0; j < d. dim; j++ ) { 216 s << d. rho[i][j] << " ";
std::ostream & EvtGenReport(EvtGenSeverity severity, const char *facility=0)
const EvtComplex & get(int i, int j) const
EvtSpinDensity & operator=(const EvtSpinDensity &density)
virtual ~EvtSpinDensity()
double abs(const EvtComplex &c)
double imag(const EvtComplex &c)
void set(int i, int j, const EvtComplex &rhoij)
double real(const EvtComplex &c)
ostream & operator<<(ostream &s, const EvtSpinDensity &d)
double normalizedProb(const EvtSpinDensity &d)
|