src/modules/SimpleTransfer/SimpleTransferModule.hpp
Definition of simple charge transfer module. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::SimpleTransferModule Module that directly converts propagated charges to charges on a pixel. |
Detailed Description
Definition of simple charge transfer module.
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 <TH1D.h>
#include "core/config/Configuration.hpp"
#include "core/geometry/GeometryManager.hpp"
#include "core/messenger/Messenger.hpp"
#include "core/module/Event.hpp"
#include "core/module/Module.hpp"
#include "objects/Pixel.hpp"
#include "objects/PixelCharge.hpp"
#include "objects/PropagatedCharge.hpp"
#include "tools/ROOT.h"
namespace allpix {
class SimpleTransferModule : public Module {
public:
SimpleTransferModule(Configuration& config, Messenger* messenger, std::shared_ptr<Detector> detector);
void initialize() override;
void run(Event*) override;
void finalize() override;
private:
Messenger* messenger_;
std::shared_ptr<Detector> detector_;
std::shared_ptr<DetectorModel> model_;
Histogram<TH1D> drift_time_histo;
// Configuration parameters:
double max_depth_distance_{};
bool collect_from_implant_{};
// Flag whether to store output plots:
bool output_plots_{};
// Statistical information
std::atomic<unsigned int> total_transferred_charges_{};
};
} // namespace allpix
Updated on 2024-12-13 at 08:31:37 +0000