excitation Module
Protocol for an excitation (i.e. state or level) distribution in energy. Predefined distributions available are normal or uniform.
            ExcitationBreitWigner
    Represents the sampling parameters for a nuclear excitation with the energy sampled from the relativistic Breit-Wigner distribution.
Beware that this excitation class is slower than the others because it uses scipy for its relativistic Breit Wigner distribution.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                rest_mass
             | 
            
                  float
             | 
            
               The rest mass of the nucleus that is excited in MeV.  | 
            required | 
                centroid
             | 
            
                  float
             | 
            
               The state mean/centroid value in MeV.  | 
            required | 
                width
             | 
            
                  float
             | 
            
               Width of the state in MeV.  | 
            required | 
Attributes:
| Name | Type | Description | 
|---|---|---|
rest_mass | 
            
                  float
             | 
            
               The rest mass of the nucleus that is excited in MeV.  | 
          
centroid | 
            
                  float
             | 
            
               The state mean/centroid value in MeV.  | 
          
width | 
            
                  float
             | 
            
               Width of the state in MeV.  | 
          
Methods:
| Name | Description | 
|---|---|
sample | 
              
                 Sample the energy distribution of the excitation.  | 
            
Source code in src/attpc_engine/kinematics/excitation.py
                
            sample(rng)
    Sample the energy distribution of the excitation.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                rng
             | 
            
                  Generator
             | 
            
               The random number generator  | 
            required | 
Returns:
| Type | Description | 
|---|---|
                  float
             | 
            
               The sampled value  | 
          
Source code in src/attpc_engine/kinematics/excitation.py
              
            ExcitationDistribution
    
              Bases: Protocol
Definition of a nuclear excitation with a specified energy distribution
Methods:
| Name | Description | 
|---|---|
sample | 
              
                 Sample the distribution  | 
            
Source code in src/attpc_engine/kinematics/excitation.py
                
            sample(rng)
    Sample the energy distribution of the excitation.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                rng
             | 
            
                  Generator
             | 
            
               The random number generator  | 
            required | 
Returns:
| Type | Description | 
|---|---|
                  float
             | 
            
               The sampled value  | 
          
Source code in src/attpc_engine/kinematics/excitation.py
              
            
            ExcitationGaussian
    Represents the sampling parameters for a nuclear excitation with the energy sampled as a gaussian distribution.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                centroid
             | 
            
                  float
             | 
            
               The state mean/centroid value in MeV.  | 
            
                  0.0
             | 
          
                width
             | 
            
                  float
             | 
            
               The state FWHM value in MeV.  | 
            
                  0.0
             | 
          
Attributes:
| Name | Type | Description | 
|---|---|---|
centroid | 
            
                  float
             | 
            
               The state mean/centroid value in MeV  | 
          
width | 
            
                  float
             | 
            
               The state FWHM value in MeV  | 
          
sigma | 
            
                  float
             | 
            
               The state std. deviation in MeV  | 
          
Methods:
| Name | Description | 
|---|---|
sample | 
              
                 Sample the energy distribution of the excitation.  | 
            
Source code in src/attpc_engine/kinematics/excitation.py
                
            sample(rng)
    Sample the energy distribution of the excitation.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                rng
             | 
            
                  Generator
             | 
            
               The random number generator  | 
            required | 
Returns:
| Type | Description | 
|---|---|
                  float
             | 
            
               The sampled value  | 
          
Source code in src/attpc_engine/kinematics/excitation.py
              
            ExcitationUniform
    Represents the sampling parameters for a nuclear excitation with the energy sampled as a flat distribution.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                min_value
             | 
            
                  float
             | 
            
               The minimum value of the range.  | 
            
                  0.0
             | 
          
                max_value
             | 
            
                  float
             | 
            
               The maximum value of the range.  | 
            
                  0.0
             | 
          
Attributes:
| Name | Type | Description | 
|---|---|---|
min_value | 
            
                  float
             | 
            
               The minimum value of the range  | 
          
max_value | 
            
                  float
             | 
            
               The maximum value of the range  | 
          
Methods:
| Name | Description | 
|---|---|
sample | 
              
                 Sample the energy distribution of the excitation.  | 
            
Source code in src/attpc_engine/kinematics/excitation.py
                
            sample(rng)
    Sample the energy distribution of the excitation.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
                rng
             | 
            
                  Generator
             | 
            
               The random number generator  | 
            required | 
Returns:
| Type | Description | 
|---|---|
                  float
             | 
            
               The sampled value  |