src/modules/DepositionGeant4/StepInfoUserHookG4.hpp

Defines a user hook for Geant4 stepping action to catch problematic events and abort them. More…

Namespaces

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

Classes

Name
class allpix::StepInfoUserHookG4
Allows access to the info of each Geant4 step.

Detailed Description

Defines a user hook for Geant4 stepping action to catch problematic events and abort them.

Copyright: Copyright (c) 2023-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 StepInfoUserHookG4_H
#define StepInfoUserHookG4_H 1

#include "G4Step.hh"
#include "G4UserSteppingAction.hh"

namespace allpix {
    class StepInfoUserHookG4 : public G4UserSteppingAction {
    public:
        explicit StepInfoUserHookG4() = default;

        ~StepInfoUserHookG4() override = default;

        void UserSteppingAction(const G4Step* aStep) override;
    };

} // namespace allpix
#endif /* StepInfoUserHookG4_H */

Updated on 2024-12-13 at 08:31:37 +0000