Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Common.cpp
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Common.cpp
1 // This file is part of the Acts project.
2 //
3 // Copyright (C) 2022-2023 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 
10 
11 #include <cassert>
12 #include <cstdlib>
13 #include <ostream>
14 
15 std::ostream& Acts::operator<<(std::ostream& os,
16  MaterialUpdateStage matUpdate) {
17  switch (matUpdate) {
18  case MaterialUpdateStage::PreUpdate:
19  os << "PreUpdate (-1)";
20  break;
21  case MaterialUpdateStage::PostUpdate:
22  os << "PostUpdate (1)";
23  break;
24  case MaterialUpdateStage::FullUpdate:
25  os << "FullUpdate (0)";
26  break;
27  default:
28  assert(false && "Invalid material update stage (shouldn't happen)");
29  std::abort();
30  }
31  return os;
32 }