Skip to content

Commit

Permalink
Merge pull request #23 from HEP-FCC/physics_verbosity
Browse files Browse the repository at this point in the history
Reduce the verbosity of Geant4 Physics lists printouts
  • Loading branch information
BrieucF authored Oct 14, 2022
2 parents 58963e8 + 049c534 commit 17fd5bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion SimG4Components/src/SimG4FtfpBert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ StatusCode SimG4FtfpBert::finalize() { return AlgTool::finalize(); }

G4VModularPhysicsList* SimG4FtfpBert::physicsList() {
// ownership passed to SimG4Svc which will register it in G4RunManager. To be deleted in ~G4RunManager()
return new FTFP_BERT;
return new FTFP_BERT(m_G4PhysicsVerbosityLevel);
}
2 changes: 2 additions & 0 deletions SimG4Components/src/SimG4FtfpBert.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class SimG4FtfpBert : public AlgTool, virtual public ISimG4PhysicsList {
* @return pointer to G4VModularPhysicsList (ownership is transferred to the caller)
*/
virtual G4VModularPhysicsList* physicsList();
private:
Gaudi::Property<int> m_G4PhysicsVerbosityLevel{this, "G4PhysicsVerbosityLevel", 0, "Verbosity of G4 Physics printouts. 0: no printouts. 1: Verbose Printouts"};
};

#endif /* SIMG4COMPONENTS_G4FTFPBERT_H */

0 comments on commit 17fd5bd

Please sign in to comment.