src/modules/PulseTransfer/PulseTransferModule.hpp
Definition of of pulse transfer module. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::PulseTransferModule Module to combine all charges induced at every pixel. |
Detailed Description
Definition of of pulse 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 <string>
#include "core/config/Configuration.hpp"
#include "core/geometry/DetectorModel.hpp"
#include "core/messenger/Messenger.hpp"
#include "core/module/Module.hpp"
#include "objects/PropagatedCharge.hpp"
#include "tools/ROOT.h"
#include <TH1D.h>
#include <TH2D.h>
#include <TProfile.h>
namespace allpix {
class PulseTransferModule : public Module {
public:
PulseTransferModule(Configuration& config, Messenger* messenger, std::shared_ptr<Detector> detector);
void initialize() override;
void run(Event*) override;
void finalize() override;
private:
bool output_plots_{}, output_pulsegraphs_{};
double timestep_{};
Messenger* messenger_;
void create_pulsegraphs(uint64_t event_num, const Pixel::Index& index, const Pulse& pulse) const;
// General module members
std::shared_ptr<Detector> detector_;
double max_depth_distance_{};
bool collect_from_implant_{};
std::once_flag first_event_flag_;
// Output histograms
Histogram<TH1D> h_total_induced_charge_, h_induced_pixel_charge_;
Histogram<TH2D> h_induced_pulses_, h_integrated_pulses_;
Histogram<TProfile> p_induced_pulses_, p_integrated_pulses_;
};
} // namespace allpix
Updated on 2025-02-27 at 14:14:46 +0000