|
||||
File indexing completed on 2025-01-30 09:17:30
0001 //========================================================================== 0002 // AIDA Detector description implementation 0003 //-------------------------------------------------------------------------- 0004 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN) 0005 // All rights reserved. 0006 // 0007 // For the licensing terms see $DD4hepINSTALL/LICENSE. 0008 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS. 0009 // 0010 // Author : M.Frank 0011 // 0012 //========================================================================== 0013 0014 // Framework include files 0015 #include <DDG4/Geant4DataConversion.h> 0016 0017 using namespace dd4hep::sim; 0018 0019 /// Default constructor 0020 Geant4ConversionHelper::Geant4ConversionHelper() { 0021 } 0022 0023 /// Default destructor 0024 Geant4ConversionHelper::~Geant4ConversionHelper() { 0025 } 0026 0027 /// Access to the data encoding using the volume manager and a specified volume id 0028 std::string Geant4ConversionHelper::encoding(VolumeManager vm, VolumeID vid) { 0029 PlacedVolume pv = vm.lookupVolumePlacement(vid); 0030 SensitiveDetector sd = pv.volume().sensitiveDetector(); 0031 return encoding(sd); 0032 } 0033 0034 /// Access to the hit encoding in this sensitive detector 0035 std::string Geant4ConversionHelper::encoding(Handle<SensitiveDetectorObject> sd) { 0036 IDDescriptor id = SensitiveDetector(sd).readout().idSpec(); 0037 return id.fieldDescription(); 0038 } 0039 0040 /// Access to the hit encoding in this readout object 0041 std::string Geant4ConversionHelper::encoding(Readout ro) { 0042 IDDescriptor id = ro.idSpec(); 0043 return id.fieldDescription(); 0044 }
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |