Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:11:15

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,
0016                                MaterialUpdateStage matUpdate) {
0017   switch (matUpdate) {
0018     case MaterialUpdateStage::PreUpdate:
0019       os << "PreUpdate (-1)";
0020       break;
0021     case MaterialUpdateStage::PostUpdate:
0022       os << "PostUpdate (1)";
0023       break;
0024     case MaterialUpdateStage::FullUpdate:
0025       os << "FullUpdate (0)";
0026       break;
0027     default:
0028       assert(false && "Invalid material update stage (shouldn't happen)");
0029       std::abort();
0030   }
0031   return os;
0032 }