src/modules/ElectricFieldReader/ElectricFieldReaderModule.hpp
Definition of module to read electric fields. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::ElectricFieldReaderModule Module to read electric fields from INIT format or apply a linear electric field. |
Detailed Description
Definition of module to read electric fields.
Copyright: Copyright (c) 2017-2024 CERN and the Allpix Squared authors. This software is distributed under the terms of the MIT License, copied verbatim in the file “LICENSE.md”. In applying this license, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction. SPDX-License-Identifier: MIT
Source code
#include <map>
#include <memory>
#include <string>
#include <vector>
#include "core/config/Configuration.hpp"
#include "core/geometry/GeometryManager.hpp"
#include "core/messenger/Messenger.hpp"
#include "tools/field_parser.h"
#include "core/module/Module.hpp"
namespace allpix {
class ElectricFieldReaderModule : public Module {
enum class ElectricField {
CONSTANT,
LINEAR,
MESH,
PARABOLIC,
CUSTOM,
};
public:
ElectricFieldReaderModule(Configuration& config, Messenger* messenger, std::shared_ptr<Detector> detector);
void initialize() override;
private:
std::shared_ptr<Detector> detector_;
FieldFunction<ROOT::Math::XYZVector> get_linear_field_function(double depletion_voltage,
std::pair<double, double> thickness_domain);
FieldFunction<ROOT::Math::XYZVector> get_parabolic_field_function(std::pair<double, double> thickness_domain);
std::pair<FieldFunction<ROOT::Math::XYZVector>, FieldType> get_custom_field_function();
FieldData<double> read_field();
static FieldParser<double> field_parser_;
void create_output_plots();
};
} // namespace allpix
Updated on 2024-12-13 at 08:31:37 +0000