ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AccumulatedVolumeMaterial.hpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file AccumulatedVolumeMaterial.hpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2019-2020 CERN for the benefit of the Acts project
4 //
5 // This Source Code Form is subject to the terms of the Mozilla Public
6 // License, v. 2.0. If a copy of the MPL was not distributed with this
7 // file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 
9 #pragma once
10 
11 #include <limits>
12 
14 
15 namespace Acts {
16 
21  public:
23  void accumulate(const MaterialProperties& mat);
24 
28  Material average();
29 
30  private:
31  float m_totalX0{std::numeric_limits<float>::infinity()};
32  float m_totalL0{std::numeric_limits<float>::infinity()};
33  float m_totalAr{0.};
34  float m_totalZ{0.};
35  float m_totalRho{0.};
36  float m_thickness{1.};
37  unsigned int m_materialEntries{0};
38  unsigned int m_vacuumEntries{0};
39 };
40 
41 } // namespace Acts