Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-10 07:50:30

0001 #include "U4Hit_Debug.hh"
0002 #include "U4Debug.hh"
0003 #include "NP.hh"    
0004 #include "SLOG.hh"
0005 
0006 const plog::Severity U4Hit_Debug::LEVEL = SLOG::EnvLevel("U4Hit_Debug", "DEBUG" ); 
0007 std::vector<U4Hit_Debug> U4Hit_Debug::record = {} ;
0008 
0009 void U4Hit_Debug::Save(const char* dir)
0010 {
0011     LOG(LEVEL) << " dir " << dir << " num_record " << record.size() ;
0012     std::cout 
0013         << "U4Hit_Debug::Save"
0014         << " dir " << dir 
0015         << " num_record " << record.size() 
0016         << std::endl 
0017         ;
0018     assert( NUM_QUAD == 1u ); 
0019     if( record.size() > 0) NP::Write<int>(dir, NAME, (int*)record.data(), record.size(), 4 );  
0020     record.clear(); 
0021 }
0022 
0023 void U4Hit_Debug::add()
0024 {
0025     LOG(LEVEL) << "num_record " << record.size() ;
0026     if(record.size() < LIMIT) record.push_back(*this); 
0027 }
0028 
0029 
0030