src/objects/PixelHit.hpp
Definition of object with digitized pixel hit. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::PixelHit Pixel triggered in an event after digitization. |
Types
Name | |
---|---|
using Message< PixelHit > | PixelHitMessage Typedef for message carrying pixel hits. |
Detailed Description
Definition of object with digitized pixel hit.
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 PixelHitMessage
using allpix::PixelHitMessage = typedef Message<PixelHit>;
Typedef for message carrying pixel hits.
Source code
#ifndef ALLPIX_PIXEL_HIT_H
#define ALLPIX_PIXEL_HIT_H
#include <Math/DisplacementVector2D.h>
#include <TRef.h>
#include "MCParticle.hpp"
#include "Object.hpp"
#include "PixelCharge.hpp"
#include "PixelPulse.hpp"
#include "Pixel.hpp"
namespace allpix {
class PixelHit : public Object {
public:
PixelHit(Pixel pixel,
double local_time,
double global_time,
double signal,
const PixelCharge* pixel_charge = nullptr,
const PixelPulse* pixel_pulse = nullptr);
const Pixel& getPixel() const;
Pixel::Index getIndex() const;
double getGlobalTime() const { return global_time_; }
double getLocalTime() const { return local_time_; }
double getSignal() const { return signal_; }
const PixelCharge* getPixelCharge() const;
const PixelPulse* getPixelPulse() const;
std::vector<const MCParticle*> getMCParticles() const;
std::vector<const MCParticle*> getPrimaryMCParticles() const;
void print(std::ostream& out) const override;
ClassDefOverride(PixelHit, 7); // NOLINT
PixelHit() = default;
void loadHistory() override;
void petrifyHistory() override;
private:
Pixel pixel_;
double local_time_{};
double global_time_{};
double signal_{};
PointerWrapper<PixelCharge> pixel_charge_;
PointerWrapper<PixelPulse> pixel_pulse_;
std::vector<PointerWrapper<MCParticle>> mc_particles_;
};
using PixelHitMessage = Message<PixelHit>;
} // namespace allpix
#endif /* ALLPIX_PIXEL_HIT_H */
Updated on 2024-12-13 at 08:31:37 +0000