Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:10:54

0001 // This file is part of the ACTS project.
0002 //
0003 // Copyright (C) 2016 CERN for the benefit of the ACTS project
0004 //
0005 // This Source Code Form is subject to the terms of the Mozilla Public
0006 // License, v. 2.0. If a copy of the MPL was not distributed with this
0007 // file, You can obtain one at https://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 namespace Acts {
0012 
0013 class Surface;
0014 class TrackingVolume;
0015 
0016 /// @class IMaterialDecorator
0017 ///
0018 /// Virtual base class for decorators that allow to load
0019 /// material onto a TrackingGeometry. The geometry allows material
0020 /// to be assigned either to surfaces or to volumes, hence there are
0021 /// two decorate interface methods.
0022 ///
0023 class IMaterialDecorator {
0024  public:
0025   /// Virtual Destructor
0026   virtual ~IMaterialDecorator() = default;
0027 
0028   /// Decorate a surface
0029   ///
0030   /// @param surface the non-cost surface that is decorated
0031   virtual void decorate(Surface& surface) const = 0;
0032 
0033   /// Decorate a TrackingVolume
0034   ///
0035   /// @param volume the non-cost volume that is decorated
0036   virtual void decorate(TrackingVolume& volume) const = 0;
0037 };
0038 
0039 }  // namespace Acts