Project
Loading...
Searching...
No Matches
G4FastSimulation.h
Go to the documentation of this file.
1// Copyright 2019-2026 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
12#ifndef O2_FASTSIM_G4_FAST_SIMULATION_H_
13#define O2_FASTSIM_G4_FAST_SIMULATION_H_
14
31
32#include "TG4RunConfiguration.h"
33#include "TG4VUserFastSimulation.h"
34#include "TG4VUserPostDetConstruction.h"
35
36#include <string>
37#include <vector>
38
39namespace o2::fastsim
40{
41
44{
45 public:
46 G4FastSimulation(std::vector<std::string> models, const std::string& envelope,
47 double minEnergyGeV);
48 void Construct() override;
49
50 private:
51 std::vector<std::string> mModels;
52 std::string mEnvelope;
53 double mMinEnergy = 1.;
54};
55
59{
60 public:
61 using TG4RunConfiguration::TG4RunConfiguration;
64};
65
66} // namespace o2::fastsim
67
68#endif // O2_FASTSIM_G4_FAST_SIMULATION_H_
Creates and registers the models named in G4.fastSimModels.
TG4VUserFastSimulation * CreateUserFastSimulation() override
TG4VUserPostDetConstruction * CreateUserPostDetConstruction() override