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 "TG4VUserFastSimulation.h"
33#include "TG4VUserPostDetConstruction.h"
34
35#include <string>
36#include <vector>
37
38namespace o2::fastsim
39{
40
43{
44 public:
45 G4FastSimulation(std::vector<std::string> models, const std::string& envelope,
46 double minEnergyGeV);
47 void Construct() override;
48
49 private:
50 std::vector<std::string> mModels;
51 std::string mEnvelope;
52 double mMinEnergy = 1.;
53};
54
57
60
61} // namespace o2::fastsim
62
63#endif // O2_FASTSIM_G4_FAST_SIMULATION_H_
Creates and registers the models named in G4.fastSimModels.
TG4VUserPostDetConstruction * createFastSimRegionConstruction()
The construction of the fast simulation regions, or nullptr when G4.fastSimModels is empty.
TG4VUserFastSimulation * createFastSimulation()
The fast simulation for Geant4-VMC, or nullptr when G4.fastSimModels is empty.