Back to home page

EIC code displayed by LXR

 
 

    


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

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/EventData/TrackStatePropMask.hpp"
0010 
0011 #include "Acts/Utilities/Helpers.hpp"
0012 
0013 #include <ostream>
0014 
0015 namespace Acts {
0016 
0017 std::ostream& operator<<(std::ostream& os, TrackStatePropMask mask) {
0018   using PM = TrackStatePropMask;
0019   os << "TrackStatePropMask(";
0020   if (mask == PM::None) {
0021     os << "None";
0022   } else {
0023     os << "\n  [" << (ACTS_CHECK_BIT(mask, PM::Predicted) ? "x" : " ")
0024        << "] predicted";
0025     os << "\n  [" << (ACTS_CHECK_BIT(mask, PM::Filtered) ? "x" : " ")
0026        << "] filtered";
0027     os << "\n  [" << (ACTS_CHECK_BIT(mask, PM::Smoothed) ? "x" : " ")
0028        << "] smoothed";
0029     os << "\n  [" << (ACTS_CHECK_BIT(mask, PM::Jacobian) ? "x" : " ")
0030        << "] jacobian";
0031     os << "\n  [" << (ACTS_CHECK_BIT(mask, PM::Calibrated) ? "x" : " ")
0032        << "] calibrated";
0033     os << "\n";
0034   }
0035   os << ")";
0036   return os;
0037 }
0038 
0039 }  // namespace Acts