Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-09-17 08:53:37

0001 //------------------------------- -*- C++ -*- -------------------------------//
0002 // Copyright Celeritas contributors: see top-level COPYRIGHT file for details
0003 // SPDX-License-Identifier: (Apache-2.0 OR MIT)
0004 //---------------------------------------------------------------------------//
0005 //! \file celeritas/ext/detail/TouchableUpdaterInterface.hh
0006 //---------------------------------------------------------------------------//
0007 #pragma once
0008 
0009 #include "corecel/Macros.hh"
0010 #include "corecel/Types.hh"
0011 #include "geocel/GeantGeoUtils.hh"
0012 #include "celeritas/Types.hh"
0013 
0014 namespace celeritas
0015 {
0016 //---------------------------------------------------------------------------//
0017 struct DetectorStepOutput;
0018 
0019 namespace detail
0020 {
0021 //---------------------------------------------------------------------------//
0022 /*!
0023  * Interface for reconstructing a touchable from HitProcessor.
0024  */
0025 class TouchableUpdaterInterface
0026 {
0027   public:
0028     // External virtual destructor
0029     virtual ~TouchableUpdaterInterface() = 0;
0030 
0031     // Update from a particular detector step
0032     virtual bool operator()(DetectorStepOutput const& out,
0033                             size_type step_index,
0034                             StepPoint step_point,
0035                             GeantTouchableBase* touchable)
0036         = 0;
0037 
0038   protected:
0039     TouchableUpdaterInterface() = default;
0040     CELER_DEFAULT_COPY_MOVE(TouchableUpdaterInterface);
0041 };
0042 
0043 //---------------------------------------------------------------------------//
0044 }  // namespace detail
0045 }  // namespace celeritas