Back to home page

EIC code displayed by LXR

 
 

    


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

0001 /**
0002 U4Custom4Test.cc
0003 =================
0004 
0005 WITH_SLOG is defined already within Opticks,
0006 but its not defined for the C4 build so CUSTOM4_LOG_ gives missing symbols. 
0007 Dont want to complexify C4. Solution is to get headeronly SLOG to work. 
0008 
0009 **/
0010 #include <iostream>
0011 #include "G4Track.hh"
0012 #include "G4OpBoundaryProcess.hh"
0013 #include "OPTICKS_LOG.hh"
0014 
0015 #ifdef WITH_CUSTOM4
0016 
0017 
0018 #include "C4OpBoundaryProcess.hh"
0019 #include "C4CustomART.h"
0020 
0021 // mock Accessor standin for junosw PMTAccessor
0022 #include "U4PMTAccessor.h"
0023 
0024 #endif
0025 
0026 int main(int argc, char** argv)
0027 {
0028     OPTICKS_LOG(argc, argv); 
0029 
0030 #ifdef WITH_CUSTOM4
0031     U4PMTAccessor* pmt = new U4PMTAccessor ; 
0032     C4IPMTAccessor* ipmt = pmt ; 
0033     C4OpBoundaryProcess* proc = new C4OpBoundaryProcess(ipmt) ;     
0034     std::cout << " proc " << std::hex << proc << std::dec << std::endl ;
0035 #endif
0036 
0037 
0038     std::cout 
0039 #ifdef WITH_CUSTOM4
0040         << "WITH_CUSTOM4" 
0041 #else
0042         << "not-WITH_CUSTOM4" 
0043 #endif
0044         << std::endl 
0045         ; 
0046 
0047 
0048     return 0 ; 
0049 }