Files
karl/include/generators/current_collector_generator.h
T
2024-12-04 17:15:04 +01:00

23 lines
821 B
C++
Executable File

#ifndef CURRENT_COLLECTOR_GENERATOR_H
#define CURRENT_COLLECTOR_GENERATOR_H
#include <memory>
#include "simulation/current_collector.h"
#include "simulation/jansson_additionals.h"
#include "simulation/parameter.h"
#include "simulation/timer.h"
namespace generator {
// return a shared_ptr to a CurrentCollector object, defined by the json-object
// at "path_to_collector" in the Parameter file using the provied Timer object
// the json-object has to contain a json-object called "PositionBinning",
// wich has to follow the structure described in "buildPositionBinning"
// (in "generators/binning_generator.h")
std::shared_ptr<CurrentCollector> buildCurrentCollector(
Parameter& parameter,
const json_path& path_to_collector,
std::shared_ptr<Timer>& timer);
};
#endif /* CURRENT_COLLECTOR_GENERATOR_H */