Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:49:22

0001 // ./stmm_test.sh
0002 
0003 #include <cstdlib>
0004 #include "stmm.h"
0005 
0006 #include "scuda.h"
0007 #include "squad.h"
0008 #include "sphoton.h"
0009 
0010 
0011 typedef double T ; 
0012 //typedef float T ; 
0013 
0014 
0015 void test_StackSpec_eget()
0016 {
0017     putenv((char*)"L0=1,0,0");   
0018     putenv((char*)"L1=1.5,0,0");   
0019 
0020     StackSpec<T,2> ss ; 
0021     ss.eget();  
0022 
0023     std::cout << ss ; 
0024 }
0025 
0026 
0027 void test_StackSpec_Create2()
0028 {
0029     StackSpec<T,2> ss(StackSpec<T,2>::Create2(1.0, 1.5)) ; 
0030     std::cout << ss ; 
0031 }
0032 
0033 
0034 
0035 
0036 
0037 int main(int argc, char** argv)
0038 {
0039     T mct = argc > 1 ? std::atof(argv[1]) : -1.f  ;   // minus_cos_theta
0040     T wl  = argc > 2 ? std::atof(argv[2]) : 440.f ;   // wavelength_nm
0041 
0042     /*
0043     test_StackSpec_eget(); 
0044     */
0045     test_StackSpec_Create2(); 
0046 
0047 
0048     /*
0049     Stack<T,2> stack(wl, mct, ss ); // ART calc done in ctor    
0050 
0051     std::cout << ss << stack ; 
0052 
0053     */
0054 
0055 
0056 
0057     return 0 ; 
0058 }