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
39
namespace
o2::fastsim
40
{
41
43
class
G4FastSimulation
:
public
TG4VUserFastSimulation
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
58
class
G4RunConfiguration
:
public
TG4RunConfiguration
59
{
60
public
:
61
using
TG4RunConfiguration::TG4RunConfiguration;
62
TG4VUserFastSimulation
*
CreateUserFastSimulation
()
override
;
63
TG4VUserPostDetConstruction
*
CreateUserPostDetConstruction
()
override
;
64
};
65
66
}
// namespace o2::fastsim
67
68
#endif
// O2_FASTSIM_G4_FAST_SIMULATION_H_
TG4RunConfiguration
TG4VUserFastSimulation
TG4VUserPostDetConstruction
o2::fastsim::G4FastSimulation
Creates and registers the models named in G4.fastSimModels.
Definition
G4FastSimulation.h:44
o2::fastsim::G4FastSimulation::Construct
void Construct() override
Definition
G4FastSimulation.cxx:56
o2::fastsim::G4RunConfiguration
Definition
G4FastSimulation.h:59
o2::fastsim::G4RunConfiguration::CreateUserFastSimulation
TG4VUserFastSimulation * CreateUserFastSimulation() override
Definition
G4FastSimulation.cxx:70
o2::fastsim::G4RunConfiguration::CreateUserPostDetConstruction
TG4VUserPostDetConstruction * CreateUserPostDetConstruction() override
Definition
G4FastSimulation.cxx:82
o2::fastsim
Definition
FastSimModel.h:33
Detectors
FastSim
include
FastSim
G4FastSimulation.h
Generated on Sat Aug 29 2026 15:08:51 for Project by
1.9.8