Skip to content
Snippets Groups Projects
Commit d160836f authored by Dave Casper's avatar Dave Casper Committed by FASER Reco
Browse files

Debugging SetPhysicsList

parent 4a904edd
No related branches found
No related tags found
No related merge requests found
......@@ -31,6 +31,7 @@ set( FaserGeant4_TARGET_OBJECTS
# TRT_G4Utilities
# LArG4ShowerLibSvcLib
# G4PhysicsLists
# Pythia8DecayerLib
# GeoMaterial2G4
# TrackWriteFastSimLib
# ISF_Geant4ToolsLib
......@@ -101,6 +102,7 @@ set( FaserGeant4Component_TARGET_OBJECTS
# MuonG4SD
# G4AtlasServices
# Charginos
# Pythia8Decayer
# ExtraParticles
# G4CosmicFilter
# G4ExtraProcesses
......
......@@ -16,14 +16,23 @@ atlas_subdir( Pythia8Decayer )
# Component(s) in the package:
atlas_add_library( Pythia8DecayerLib
src/*.cxx
OBJECT
NO_PUBLIC_HEADERS
PRIVATE_INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${PYTHIA8_INCLUDE_DIRS}
PRIVATE_LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${PYTHIA8_LIBRARIES} FaserMCTruth GaudiKernel AthenaBaseComps G4AtlasInterfaces G4AtlasToolsLib Pythia8_iLib )
# atlas_add_library( Pythia8Decayer
# src/components/*.cxx
# OBJECT
# NO_PUBLIC_HEADERS
# PRIVATE_LINK_LIBRARIES AthenaBaseComps G4AtlasInterfaces Pythia8DecayerLib
# )
atlas_add_component( Pythia8Decayer
src/components/*.cxx
INCLUDE_DIRS ${GEANT4_INCLUDE_DIRS} ${XERCESC_INCLUDE_DIRS} ${CLHEP_INCLUDE_DIRS} ${PYTHIA8_INCLUDE_DIRS}
LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${PYTHIA8_LIBRARIES} Pythia8DecayerLib AthenaBaseComps G4AtlasInterfaces )
LINK_LIBRARIES ${GEANT4_LIBRARIES} ${XERCESC_LIBRARIES} ${CLHEP_LIBRARIES} ${PYTHIA8_LIBRARIES} FaserMCTruth Pythia8DecayerLib AthenaBaseComps G4AtlasInterfaces )
#endif()
# Install files from the package:
......
......@@ -23,8 +23,9 @@
Pythia8DecayerPhysicsTool::Pythia8DecayerPhysicsTool( const std::string& type,
const std::string& nam,
const IInterface* parent )
: base_class ( type, nam , parent )
: G4VPhysicsConstructor{nam}, base_class( type, nam , parent )
{
m_physicsOptionType = G4AtlasPhysicsOption::Type::GlobalProcesses;
}
//=============================================================================
......
......@@ -140,7 +140,9 @@ void G4FaserAlg::initializeOnce()
// Single-threaded run manager
else {
auto* runMgr = G4FaserRunManager::GetG4FaserRunManager();
ATH_MSG_ALWAYS("Setting Physics List");
m_physListSvc->SetPhysicsList();
ATH_MSG_ALWAYS("Physics List Set");
runMgr->SetRecordFlux( m_recordFlux, std::make_unique<G4FaserFluxRecorder>() );
runMgr->SetLogLevel( int(msg().level()) ); // Synch log levels
runMgr->SetDetGeoSvc( m_detGeoSvc.typeAndName() );
......
......@@ -60,5 +60,9 @@ def PhysicsListSvcCfg(ConfigFlags, name="PhysicsListSvc", **kwargs):
"""
## kwargs.setdefault("EMDEDXBinning" , 77)
## kwargs.setdefault("EMLambdaBinning" , 77)
result.addService(PhysicsListSvc(name, **kwargs))
svc = CompFactory.PhysicsListSvc(name, **kwargs)
from AthenaCommon.Constants import VERBOSE
svc.OutputLevel = VERBOSE
result.addService(svc, primary = True)
# result.addService(CompFactory.PhysicsListSvc(name, **kwargs), primary = True)
return result
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment