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
16class G4VSensitiveDetector;
17
45public:
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
79private:
80 std::vector<std::pair<G4String, G4VSensitiveDetector*>> fEntries;
81};
82
83#endif // G4OCCT_G4OCCTSensitiveDetectorMap_hh
Maps volume name patterns to Geant4 G4VSensitiveDetector objects.
void Add(const G4String &pattern, G4VSensitiveDetector *sd)
G4VSensitiveDetector * Resolve(const G4String &volumeName) const
G4OCCTSensitiveDetectorMap()=default