#include <pyFairModule.h>
Definition at line 17 of file pyFairModule.h.
◆ pyFairModule()
| pyFairModule::pyFairModule |
( |
PyObject * | self | ) |
|
|
inlineexplicit |
◆ ~pyFairModule()
| pyFairModule::~pyFairModule |
( |
| ) |
|
|
overridedefault |
◆ ConstructGeometry()
| void pyFairModule::ConstructGeometry |
( |
| ) |
|
|
inlineoverride |
Definition at line 21 of file pyFairModule.h.
21 {
23 }
void call_python_method(PyObject *self, const char *method)
◆ SensitiveVolumeNames()
| std::vector< std::string > pyFairModule::SensitiveVolumeNames |
( |
const std::string & | module = "" | ) |
|
|
static |
Names of the volumes that the modules of this run registered as sensitive so far, as FairDetector::Initialize() looks them up in the geometry given to Geant4 (without a "#" copy suffix). Compiled, because the list is thread_local, which the interpreter cannot reach reliably. With a module name, only the volumes that module registered.
Definition at line 11 of file pyFairModule.cxx.
12 {
13 std::vector<std::string> names;
14 names.reserve(fAllSensitiveVolumes.size());
15 for (const FairVolume* volume : fAllSensitiveVolumes) {
16 if (!volume) {
17 continue;
18 }
19 if (!module.empty() &&
20 (!volume->GetModule() || module != volume->GetModule()->GetName())) {
21 continue;
22 }
23 std::string
name = volume->GetName();
24
25 const auto pos =
name.find(
'#', 1);
26 if (pos != std::string::npos && pos > 1) {
28 }
29 names.push_back(name);
30 }
31 return names;
32}
◆ fSelf
The documentation for this class was generated from the following files: