src/objects/PixelPulse.hpp

Definition of object with pulse processed by pixel front-end. More…

Namespaces

Name
allpix
Helper class to hold support layers for a detector model.

Classes

Name
class allpix::PixelPulse
Pixel triggered in an event after digitization.

Types

Name
using Message< PixelPulse > PixelPulseMessage
Typedef for message carrying pixel pulses.

Detailed Description

Definition of object with pulse processed by pixel front-end.

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

Types Documentation

using PixelPulseMessage

using allpix::PixelPulseMessage = typedef Message<PixelPulse>;

Typedef for message carrying pixel pulses.

Source code


#ifndef ALLPIX_PIXEL_PULSE_H
#define ALLPIX_PIXEL_PULSE_H

#include <Math/DisplacementVector2D.h>

#include <TRef.h>

#include "MCParticle.hpp"
#include "Object.hpp"
#include "PixelCharge.hpp"
#include "Pulse.hpp"

#include "Pixel.hpp"

namespace allpix {
    class PixelPulse : public Object, public Pulse {
    public:
        PixelPulse(Pixel pixel, const Pulse& pulse, const PixelCharge* pixel_charge = nullptr);

        const Pixel& getPixel() const;

        Pixel::Index getIndex() const;

        const PixelCharge* getPixelCharge() const;

        std::vector<const MCParticle*> getMCParticles() const;

        std::vector<const MCParticle*> getPrimaryMCParticles() const;

        double getGlobalTime() const;

        double getLocalTime() const;

        void print(std::ostream& out) const override;

        ClassDefOverride(PixelPulse, 1); // NOLINT
        PixelPulse() = default;

        void loadHistory() override;
        void petrifyHistory() override;

    private:
        Pixel pixel_;

        double local_time_{};
        double global_time_{};

        PointerWrapper<PixelCharge> pixel_charge_;
        std::vector<PointerWrapper<MCParticle>> mc_particles_;
    };

    using PixelPulseMessage = Message<PixelPulse>;
} // namespace allpix

#endif /* ALLPIX_PIXEL_PULSE_H */

Updated on 2025-02-27 at 14:14:46 +0000