Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
ProtoVolumeMaterial.cpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file ProtoVolumeMaterial.cpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 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
#include "
Acts/Material/ProtoVolumeMaterial.hpp
"
10
11
#include <ostream>
12
13
Acts::ProtoVolumeMaterial::ProtoVolumeMaterial
(
const
BinUtility
& binUtility)
14
: m_binUtility(binUtility), m_material() {}
15
16
std::ostream&
Acts::ProtoVolumeMaterial::toStream
(std::ostream& sl)
const
{
17
sl <<
"Acts::ProtoVolumeMaterial : "
<< std::endl;
18
if
(m_binUtility.bins(0) * m_binUtility.bins(1) * m_binUtility.bins(2) > 1) {
19
sl <<
" - Number of Material bins [0,1] : "
<< m_binUtility.bins(0)
20
<<
" / "
<< m_binUtility.bins(1) <<
" / "
<< m_binUtility.bins(2)
21
<< std::endl;
22
}
else
{
23
sl <<
" - Homogeneous Material"
<< std::endl;
24
}
25
return
sl;
26
}
acts
blob
sPHENIX
Core
src
Material
ProtoVolumeMaterial.cpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration