Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:28:08

0001 // This file is part of the actsvg packge.
0002 //
0003 // Copyright (C) 2022 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 http://mozilla.org/MPL/2.0/.
0008 
0009 #pragma once
0010 
0011 #include <vector>
0012 #include <string>
0013 
0014 #include "actsvg/core/defs.hpp"
0015 
0016 namespace actsvg {
0017 
0018 namespace proto {
0019 
0020     /** A proto grid class to describe the grid setup
0021      * 
0022      * For convenience, it is forced to be 2-dimensional, for 1-dim
0023      * grid descriptions, only provide 2 eges
0024      * 
0025      */
0026     struct grid {
0027 
0028         /** Type of grid, enum defintion */ 
0029         enum type { e_x_y = 0, e_r_phi = 1, e_z_phi };
0030 
0031         /// Name the type
0032         type _type = e_r_phi;
0033 
0034         /// The edges in the two given directions, loc0
0035         std::vector<scalar> _edges_0 = {};
0036         
0037         /// The edges in the two given directions, loc1
0038         std::vector<scalar> _edges_1 = {};
0039         
0040     };
0041 
0042 }  // namespace proto
0043 
0044 }  // namespace actsvg
0045