File indexing completed on 2025-01-30 09:17:13
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #include <DD4hep/Printout.h>
0016 #include <DD4hep/InstanceCount.h>
0017 #include <DDDigi/DigiContext.h>
0018 #include <DDDigi/DigiKernel.h>
0019
0020
0021 #include <algorithm>
0022
0023 using namespace dd4hep::digi;
0024
0025
0026 DigiContext::DigiContext(const DigiKernel& k, std::unique_ptr<DigiEvent>&& e)
0027 : kernel(k), event(std::move(e))
0028 {
0029 InstanceCount::increment(this);
0030 }
0031
0032
0033 DigiContext::~DigiContext() {
0034
0035 InstanceCount::decrement(this);
0036 }
0037
0038
0039 std::mutex& DigiContext::initializer_lock() const {
0040 return kernel.initializer_lock();
0041 }
0042
0043
0044 std::mutex& DigiContext::global_io_lock() const {
0045 return kernel.global_io_lock();
0046 }
0047
0048
0049 std::mutex& DigiContext::global_output_lock() const {
0050 return kernel.global_output_lock();
0051 }
0052
0053
0054 dd4hep::Detector& DigiContext::detectorDescription() const {
0055 return kernel.detectorDescription();
0056 }
0057
0058
0059 DigiContext::UserFramework& DigiContext::userFramework() const {
0060 return kernel.userFramework();
0061 }
0062
0063
0064 DigiActionSequence& DigiContext::inputAction() const {
0065 return kernel.inputAction();
0066 }
0067
0068
0069 DigiActionSequence& DigiContext::eventAction() const {
0070 return kernel.eventAction();
0071 }
0072
0073
0074 DigiActionSequence& DigiContext::outputAction() const {
0075 return kernel.outputAction();
0076 }
0077