G4OCCT
0.1.0
Geant4 interface to Open CASCADE Technology (OCCT) geometry definitions
Loading...
Searching...
No Matches
G4OCCTSensitiveDetectorMap.hh
Go to the documentation of this file.
1
// SPDX-License-Identifier: LGPL-2.1-or-later
2
// Copyright (C) 2026 G4OCCT Contributors
3
6
7
#ifndef G4OCCT_G4OCCTSensitiveDetectorMap_hh
8
#define G4OCCT_G4OCCTSensitiveDetectorMap_hh
9
10
#include <G4String.hh>
11
12
#include <cstddef>
13
#include <utility>
14
#include <vector>
15
16
class
G4VSensitiveDetector;
17
44
class
G4OCCTSensitiveDetectorMap
{
45
public
:
46
G4OCCTSensitiveDetectorMap
() =
default
;
47
59
void
Add
(
const
G4String& pattern, G4VSensitiveDetector* sd);
60
72
G4VSensitiveDetector*
Resolve
(
const
G4String& volumeName)
const
;
73
77
std::size_t
Size
()
const
{
return
fEntries.size(); }
78
79
private
:
80
std::vector<std::pair<G4String, G4VSensitiveDetector*>> fEntries;
81
};
82
83
#endif
// G4OCCT_G4OCCTSensitiveDetectorMap_hh
G4OCCTSensitiveDetectorMap
Maps volume name patterns to Geant4 G4VSensitiveDetector objects.
Definition
G4OCCTSensitiveDetectorMap.hh:44
G4OCCTSensitiveDetectorMap::Add
void Add(const G4String &pattern, G4VSensitiveDetector *sd)
Definition
G4OCCTSensitiveDetectorMap.cc:15
G4OCCTSensitiveDetectorMap::Resolve
G4VSensitiveDetector * Resolve(const G4String &volumeName) const
Definition
G4OCCTSensitiveDetectorMap.cc:30
G4OCCTSensitiveDetectorMap::G4OCCTSensitiveDetectorMap
G4OCCTSensitiveDetectorMap()=default
G4OCCTSensitiveDetectorMap::Size
std::size_t Size() const
Definition
G4OCCTSensitiveDetectorMap.hh:77
include
G4OCCT
G4OCCTSensitiveDetectorMap.hh
Generated by
1.9.8