src/modules/DepositionGeant4/SDAndFieldConstruction.hpp

Constructs the sensitive detector and the magnetic field. More…

Namespaces

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

Classes

Name
class allpix::SDAndFieldConstruction
User hook to construct the sensitive detector and magnetic field.

Detailed Description

Constructs the sensitive detector and the magnetic field.

Copyright: Copyright (c) 2019-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 ALLPIX_MODULE_DETECTOR_CONSTRUCTION_H
#define ALLPIX_MODULE_DETECTOR_CONSTRUCTION_H
#include "tools/geant4/SensitiveDetectorAndFieldConstruction.hpp"

namespace allpix {
    class DepositionGeant4Module;
    class SDAndFieldConstruction : public SensitiveDetectorAndFieldConstruction {
    public:
        explicit SDAndFieldConstruction(DepositionGeant4Module* module) : module_(module){};

        void ConstructSDandField() override;

    private:
        DepositionGeant4Module* module_;
    };
} // namespace allpix

#endif /* ALLPIX_DETECTOR_CONSTRUCTION_H */

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