Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-06-26 07:46:16

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 #include "Acts/Definitions/Common.hpp"
0010 
0011 #include <cassert>
0012 #include <cstdlib>
0013 #include <ostream>
0014 
0015 std::ostream& Acts::operator<<(std::ostream& os, MaterialUpdateMode mode) {
0016   switch (mode) {
0017     case MaterialUpdateMode::NoUpdate:
0018       os << "None (0)";
0019       break;
0020     case MaterialUpdateMode::PreUpdate:
0021       os << "PreUpdate (1)";
0022       break;
0023     case MaterialUpdateMode::PostUpdate:
0024       os << "PostUpdate (2)";
0025       break;
0026     case MaterialUpdateMode::FullUpdate:
0027       os << "FullUpdate (3)";
0028       break;
0029     default:
0030       assert(false && "Invalid material update mode (shouldn't happen)");
0031       std::abort();
0032   }
0033   return os;
0034 }