Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /acts/Core/include/Acts/Material/IMaterialDecorator.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 /// @ingroup material
0019 ///
0020 /// Virtual base class for decorators that allow to load
0021 /// material onto a TrackingGeometry. The geometry allows material
0022 /// to be assigned either to surfaces or to volumes, hence there are
0023 /// two decorate interface methods.
0024 ///
0025 class IMaterialDecorator {
0026  public:
0027   /// Virtual Destructor
0028   virtual ~IMaterialDecorator() = default;
0029 
0030   /// Decorate a surface
0031   ///
0032   /// @param surface the non-cost surface that is decorated
0033   virtual void decorate(Surface& surface) const = 0;
0034 
0035   /// Decorate a TrackingVolume
0036   ///
0037   /// @param volume the non-cost volume that is decorated
0038   virtual void decorate(TrackingVolume& volume) const = 0;
0039 };
0040 
0041 }  // namespace Acts