Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MaterialPhysicsList.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file MaterialPhysicsList.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2021 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
12 
13 #include <memory>
14 #include <string>
15 #include <vector>
16 
17 #include <G4VUserPhysicsList.hh>
18 
19 namespace ActsExamples {
20 
26 class MaterialPhysicsList final : public G4VUserPhysicsList {
27  public:
32  MaterialPhysicsList(std::unique_ptr<const Acts::Logger> logger =
33  Acts::getDefaultLogger("MaterialPhysicsList",
35  ~MaterialPhysicsList() override = default;
36 
40  void ConstructParticle() override;
41 
45  void ConstructProcess() override;
46 
50  void SetCuts() override;
51 
52  private:
54  const Acts::Logger& logger() const { return *m_logger; }
55 
57  std::unique_ptr<const Acts::Logger> m_logger;
58 };
59 
60 } // namespace ActsExamples