Back to home page

EIC code displayed by LXR

 
 

    


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

0001 
0002 #include <cstdlib>
0003 #include "SLOG.hh"
0004 
0005 #include "spath.h"
0006 #include "sstr.h"
0007 
0008 #include "SEvt.hh"
0009 
0010 #include "U4Cerenkov_Debug.hh"
0011 #include "U4Scintillation_Debug.hh"
0012 #include "U4Hit_Debug.hh"
0013 
0014 #include "U4Debug.hh"
0015 
0016 const plog::Severity U4Debug::LEVEL = SLOG::EnvLevel("U4Debug", "DEBUG" ); 
0017 
0018 
0019 
0020 /**
0021 U4Debug::Save
0022 ---------------
0023 
0024 This is used for example from junoSD_PMT_v2::EndOfEvent WITH_G4CXOPTICKS_DEBUG
0025 
0026 **/
0027 
0028 void U4Debug::Save(int eventID)
0029 {
0030     const char* dir = spath::Resolve( ETOK, sstr::FormatIndex(eventID, 'B', 3, nullptr) ); 
0031 
0032     LOG(LEVEL) 
0033         << " eventID " << eventID 
0034         << " dir " << dir 
0035         << " ETOK " << ETOK 
0036         ; 
0037 
0038     U4Cerenkov_Debug::Save(dir);   
0039     U4Scintillation_Debug::Save(dir);   
0040     U4Hit_Debug::Save(dir);   
0041 
0042     SEvt::SaveGenstepLabels( dir ); 
0043 }