Loading src/modules/DepositionGeant4/DepositionGeant4Module.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -392,7 +392,7 @@ void DepositionGeant4Module::construct_sensitive_detectors_and_fields(double fan useful_deposition = true; // Get the hit transformation matrix auto hit_transform = calculate_hit_transform(detector->getModel()); auto* hit_transform = calculate_hit_transform(detector->getModel()); // Get model of the sensitive device auto* sensitive_detector_action = new SensitiveDetectorActionG4( Loading Loading @@ -448,6 +448,6 @@ void DepositionGeant4Module::record_module_statistics() { } } G4RotationMatrix* DepositionGeant4Module::calculate_hit_transform(const std::shared_ptr<DetectorModel>) { G4RotationMatrix* DepositionGeant4Module::calculate_hit_transform(const std::shared_ptr<DetectorModel>&) { return new G4RotationMatrix(); } src/modules/DepositionGeant4/DepositionGeant4Module.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ namespace allpix { * @note This matrix transforms the Geant4 local coordinate system of the sensor * volume to the APSQ local coordinate system based on the detector model type. */ G4RotationMatrix* calculate_hit_transform(const std::shared_ptr<DetectorModel> model); G4RotationMatrix* calculate_hit_transform(const std::shared_ptr<DetectorModel>& model); Messenger* messenger_; GeometryManager* geo_manager_; Loading Loading
src/modules/DepositionGeant4/DepositionGeant4Module.cpp +2 −2 Original line number Diff line number Diff line Loading @@ -392,7 +392,7 @@ void DepositionGeant4Module::construct_sensitive_detectors_and_fields(double fan useful_deposition = true; // Get the hit transformation matrix auto hit_transform = calculate_hit_transform(detector->getModel()); auto* hit_transform = calculate_hit_transform(detector->getModel()); // Get model of the sensitive device auto* sensitive_detector_action = new SensitiveDetectorActionG4( Loading Loading @@ -448,6 +448,6 @@ void DepositionGeant4Module::record_module_statistics() { } } G4RotationMatrix* DepositionGeant4Module::calculate_hit_transform(const std::shared_ptr<DetectorModel>) { G4RotationMatrix* DepositionGeant4Module::calculate_hit_transform(const std::shared_ptr<DetectorModel>&) { return new G4RotationMatrix(); }
src/modules/DepositionGeant4/DepositionGeant4Module.hpp +1 −1 Original line number Diff line number Diff line Loading @@ -100,7 +100,7 @@ namespace allpix { * @note This matrix transforms the Geant4 local coordinate system of the sensor * volume to the APSQ local coordinate system based on the detector model type. */ G4RotationMatrix* calculate_hit_transform(const std::shared_ptr<DetectorModel> model); G4RotationMatrix* calculate_hit_transform(const std::shared_ptr<DetectorModel>& model); Messenger* messenger_; GeometryManager* geo_manager_; Loading