Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-09 07:48:55

0001 
0002 
0003 #ifdef DEBUG_CYLINDER
0004 
0005 #include "SSys.hh"
0006 #include "NP.hh"
0007 #include "SLOG.hh"
0008 #include "scuda.h"
0009 #include "squad.h"
0010 
0011 #include "CSGDebug_Cylinder.hh"
0012 
0013 const plog::Severity CSGDebug_Cylinder::LEVEL = SLOG::EnvLevel("CSGDebug_Cylinder", "DEBUG") ; 
0014 
0015 std::vector<CSGDebug_Cylinder> CSGDebug_Cylinder::record = {} ;     
0016 
0017 
0018 void CSGDebug_Cylinder::Save(const char* dir)  // static
0019 {
0020     unsigned num_record = record.size() ;  
0021     LOG(info) << " dir " << dir << " num_record " << num_record ; 
0022 
0023     if( num_record > 0)
0024     {
0025         NP::Write<float>(dir, NAME, (float*)record.data(),  num_record, NUM_QUAD, 4 );  
0026     }
0027     else
0028     {
0029         LOG(error) << "not writing as no records" ; 
0030     }
0031 }
0032 
0033 
0034 #endif
0035