File indexing completed on 2026-04-09 07:49:16
0001
0002 #include <iostream>
0003 #include <cstdlib>
0004
0005 #include "spath.h"
0006 #include "SDir.h"
0007 #include "OPTICKS_LOG.hh"
0008
0009
0010 void test_List_npy()
0011 {
0012 std::vector<std::string> names ;
0013 const char* dir = spath::Resolve("$HOME/.opticks/precooked/QSimTest/rng_sequence/rng_sequence_f_ni1000000_nj16_nk16_tranche100000");
0014
0015 LOG(info) << dir ;
0016
0017 SDir::List(names, dir, ".npy" );
0018 std::cout << SDir::Desc(names) << std::endl ;
0019 }
0020
0021 void test_List_ori()
0022 {
0023 const char* mlib = spath::Resolve("$HOME/.opticks/GEOM/$GEOM/CSGFoundry/SSim/stree/material");
0024 LOG(info) << mlib ;
0025
0026 std::vector<std::string> names ;
0027 SDir::List(names, mlib, "" );
0028 std::cout << SDir::Desc(names) << std::endl ;
0029 }
0030
0031
0032 int main(int argc, char** argv)
0033 {
0034 OPTICKS_LOG(argc, argv);
0035
0036
0037 test_List_npy();
0038 test_List_ori();
0039
0040 return 0 ;
0041 }