src/modules/DepositionGeant4/SetTrackInfoUserHookG4.hpp
Defines a user hook for Geant4 to assign custom track information via TrackInfoG4 objects. This includes custom (unique) track ids. More…
Namespaces
Name |
---|
allpix Helper class to hold support layers for a detector model. |
Classes
Name | |
---|---|
class | allpix::SetTrackInfoUserHookG4 Assigns every G4Track a TrackInfoG4 which carries various information, including the custom track id. |
Detailed Description
Defines a user hook for Geant4 to assign custom track information via TrackInfoG4 objects. This includes custom (unique) track ids.
Copyright: Copyright (c) 2018-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
#ifndef SetTrackInfoUserHookG4_H
#define SetTrackInfoUserHookG4_H 1
#include "G4Track.hh"
#include "G4UserTrackingAction.hh"
#include "TrackInfoManager.hpp"
namespace allpix {
class SetTrackInfoUserHookG4 : public G4UserTrackingAction {
public:
explicit SetTrackInfoUserHookG4() = default;
~SetTrackInfoUserHookG4() override = default;
void PreUserTrackingAction(const G4Track* aTrack) override;
void PostUserTrackingAction(const G4Track* aTrack) override;
};
} // namespace allpix
#endif /* SetTrackInfoUserHookG4_H */
Updated on 2024-12-13 at 08:31:37 +0000