![]() |
Project
|
Namespaces | |
namespace | processors |
Classes | |
class | BatchHandler |
Meyers Singleton thread safe singleton. Responsible for collecting particle data for batch processing. More... | |
class | ConditionalModelSimulation |
Derived class implementing interface for specific types of models. More... | |
class | NeuralFastSimulation |
Abstract class providing interface for various specialized implementations. More... | |
Functions | |
std::optional< std::pair< std::vector< float >, std::vector< float > > > | loadScales (const std::string &path) |
loads and parse model scales from file at path | |
std::vector< float > | normal_distribution (double mean, double stddev, size_t size) |
Generates a vector of numbers with a given normal distribution and length. | |
std::vector< std::vector< float > > | normal_distribution_batch (double mean, double stddev, size_t size, long batchSize) |
Generates a batch of vectors of numbers with a given normal distribution and length. | |
std::vector< float > | parse_block (std::istream &input, const std::string &option) |
Parses .txt file containing scales for model. Function will search for given marker (option) and read 9 lines below that marker. | |
std::vector< float > | flat_vector (std::vector< std::vector< float > > &vector2D) |
Variables | |
const std::string | gZDCModelPath = "share/Detectors/ZDC/fastsimulation/onnx-models/generator.onnx" |
Global paths to models and scales files. | |
const std::string | gZDCModelConfig = "share/Detectors/ZDC/fastsimulation/scales/sae_scales.txt" |
const std::string | gSAEModelPath = "share/Detectors/ZDC/fastsimulation/onnx-models/sae_model.onnx" |
const std::string | gSAEModelConfig = "share/Detectors/ZDC/fastsimulation/scales/sae_scales.txt" |
const std::string | gEONModelPath = "share/Detectors/ZDC/fastsimulation/onnx-models/eon_classifier.onnx" |
const std::string | gEONModelConfig = "share/Detectors/ZDC/fastsimulation/scales/eon_scales.txt" |
std::vector< float > o2::zdc::fastsim::flat_vector | ( | std::vector< std::vector< float > > & | vector2D | ) |
std::optional< std::pair< std::vector< float >, std::vector< float > > > o2::zdc::fastsim::loadScales | ( | const std::string & | path | ) |
loads and parse model scales from file at path
path | loaction of file with model scales |
Definition at line 145 of file FastSimulations.cxx.
std::vector< float > o2::zdc::fastsim::normal_distribution | ( | double | mean, |
double | stddev, | ||
size_t | size | ||
) |
std::vector< std::vector< float > > o2::zdc::fastsim::normal_distribution_batch | ( | double | mean, |
double | stddev, | ||
size_t | size, | ||
long | batchSize | ||
) |
Generates a batch of vectors of numbers with a given normal distribution and length.
mean | normal distribution parameter |
stddev | normal distribution parameter |
size | size of generated vector |
batchSize | size of generated batch |
std::vector< float > o2::zdc::fastsim::parse_block | ( | std::istream & | input, |
const std::string & | option | ||
) |
Parses .txt file containing scales for model. Function will search for given marker (option) and read 9 lines below that marker.
input | input stream (std::istream) |
option | marker (std::string, implementation recognize two markers: #means, #scales) |
const std::string o2::zdc::fastsim::gEONModelConfig = "share/Detectors/ZDC/fastsimulation/scales/eon_scales.txt" |
const std::string o2::zdc::fastsim::gEONModelPath = "share/Detectors/ZDC/fastsimulation/onnx-models/eon_classifier.onnx" |
const std::string o2::zdc::fastsim::gSAEModelConfig = "share/Detectors/ZDC/fastsimulation/scales/sae_scales.txt" |
const std::string o2::zdc::fastsim::gSAEModelPath = "share/Detectors/ZDC/fastsimulation/onnx-models/sae_model.onnx" |
const std::string o2::zdc::fastsim::gZDCModelConfig = "share/Detectors/ZDC/fastsimulation/scales/sae_scales.txt" |