Implemented pitch angle resolution.
Still includes (and uses) the non-pitch angle resolved fields as well; have to be either removed completely or refactored s.t. one of the two options is chosen. Pitch angle distribution has a hardcoded number of bins for now, and exists in 'energy_binning.h'
This commit is contained in:
@@ -33,4 +33,25 @@ std::shared_ptr<DynamicDensityField> buildDynamicDensityField(
|
||||
new DynamicDensityField(position_binning, energy_binning, timer));
|
||||
}
|
||||
|
||||
std::shared_ptr<DynamicDensityFieldWithPitchAngle> buildDynamicDensityFieldWithPitchAngle(
|
||||
Parameter& parameter,
|
||||
const json_path& path_to_field,
|
||||
std::shared_ptr<Timer>& timer) {
|
||||
|
||||
DEBUG_LEVEL_2("Creating dynamic density field with pitch angle.");
|
||||
json_path path_binning = json_path_append(path_to_field, {"PositionBinning"});
|
||||
CylinderBinning position_binning =
|
||||
buildPositionBinningIncludingRedirection(parameter, path_binning);
|
||||
json_path path_energy_binning =
|
||||
json_path_append(path_to_field, {"EnergyBinning"});
|
||||
EnergyBinning energy_binning =
|
||||
buildEnergyBinningIncludingRedirection(parameter, path_energy_binning);
|
||||
// TBD: make a function to build the pitchangle binning
|
||||
PitchAngleBinning pitch_angle_binning =
|
||||
PitchAngleBinning(10);
|
||||
return std::shared_ptr<DynamicDensityFieldWithPitchAngle>(
|
||||
new DynamicDensityFieldWithPitchAngle(position_binning, energy_binning,
|
||||
pitch_angle_binning, timer));
|
||||
}
|
||||
|
||||
}; // namespace generator
|
||||
Reference in New Issue
Block a user