Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:13:07

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 #pragma once
0010 
0011 // System include(s).
0012 #include <cstddef>
0013 #include <string>
0014 
0015 /// Structure holding the arguments passed to the test executable on the command
0016 /// line
0017 struct CommandLineArguments {
0018   /// Spacepoint file to use
0019   std::string spFile = "sp.txt";
0020   /// Do not print the properties of the reconstructed seeds
0021   bool quiet = false;
0022   /// Run the seed finding using only the GPU implementation
0023   bool onlyGPU = false;
0024   /// The number of groups to process as a maximum
0025   std::size_t groupsToIterate = 500;
0026   /// Look for spacepoint duplicates in the received input file, and remove them
0027   bool filterDuplicates = false;
0028 
0029   /// The CUDA device to use
0030   int cudaDevice = 0;
0031   /// Memory to use on the CUDA device in megabytes (by default it's 80% of the
0032   /// available)
0033   std::size_t cudaDeviceMemory = 0;
0034 
0035   /// Interpret the command line arguments of the test executable
0036   void interpret(int argc, char* argv[]);
0037 
0038 };  // struct CommandLineArguments