Geant4 11.3.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4NuDEXStatisticalNucleus.hh File Reference
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include "G4NuDEXRandom.hh"

Go to the source code of this file.

Classes

struct  Level
 
struct  KnownLevel
 
class  G4NuDEXStatisticalNucleus
 

Functions

G4int ComparisonLevels (const void *va, const void *vb)
 
void CopyLevel (Level *a, Level *b)
 
void CopyLevel (KnownLevel *a, Level *b)
 

Function Documentation

◆ ComparisonLevels()

G4int ComparisonLevels ( const void * va,
const void * vb )

Definition at line 2345 of file G4NuDEXStatisticalNucleus.cc.

2346{
2347 Level* a, *b;
2348 a = (Level*) va;
2349 b = (Level*) vb;
2350 if( a->Energy == b->Energy ) return 0;
2351 return( ( a->Energy ) > ( b->Energy ) ) ? 1:-1;
2352}

◆ CopyLevel() [1/2]

void CopyLevel ( KnownLevel * a,
Level * b )

Definition at line 2365 of file G4NuDEXStatisticalNucleus.cc.

2365 {
2366 b->Energy=a->Energy;
2367 b->spinx2=a->spinx2;
2368 b->parity=a->parity;
2369 b->seed=0;
2370 b->KnownLevelID=-1;
2371 b->NLevels=1;
2372 b->Width=0;
2373}
unsigned int seed

◆ CopyLevel() [2/2]

void CopyLevel ( Level * a,
Level * b )

Definition at line 2354 of file G4NuDEXStatisticalNucleus.cc.

2354 {
2355 b->Energy=a->Energy;
2356 b->spinx2=a->spinx2;
2357 b->parity=a->parity;
2358 b->seed=a->seed;
2360 b->NLevels=a->NLevels;
2361 b->Width=a->Width;
2362}