LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
RegisterAddG4PhysicsShorthands.cc File Reference
#include "RegisterAddG4PhysicsShorthands.hh"
#include "Geant4/globals.hh"
#include "Geant4/G4PhysListFactoryAlt.hh"
#include "Geant4/G4PhysicsConstructorRegistry.hh"
#include "Geant4/G4PhysListRegistry.hh"

Go to the source code of this file.

Functions

void PrintAvailablePhysicsLists (G4int verbosity)
 
bool RegisterAddG4PhysicsShorthands (int verbose)
 

Variables

const bool AddG4PhysicsShorthandsRegistered = RegisterAddG4PhysicsShorthands(2)
 

Function Documentation

void PrintAvailablePhysicsLists ( G4int  verbosity)

Definition at line 15 of file RegisterAddG4PhysicsShorthands.cc.

Referenced by RegisterAddG4PhysicsShorthands().

15  {
16  G4cout << G4endl;
17  G4cout << "extensibleFactory: here are the available physics lists:"
18  << G4endl;
19  g4alt::G4PhysListFactory factory;
20  factory.PrintAvailablePhysLists();
21 
22  // if user asked for extra verbosity then print physics ctors as well
23  if ( verbosity > 1 ) {
24  G4cout << G4endl;
25  G4cout << "extensibleFactory: "
26  << "here are the available physics ctors that can be added:"
27  << G4endl;
28  G4PhysicsConstructorRegistry* g4pctorFactory =
29  G4PhysicsConstructorRegistry::Instance();
30  g4pctorFactory->PrintAvailablePhysicsConstructors();
31  }
32 }
bool RegisterAddG4PhysicsShorthands ( int  verbose)

Definition at line 36 of file RegisterAddG4PhysicsShorthands.cc.

References PrintAvailablePhysicsLists().

36  {
37 
38  G4PhysListRegistry* plReg = G4PhysListRegistry::Instance();
39 
40  plReg->AddPhysicsExtension("PY8TAUDK","Py8TauDecayerPhysics");
41  plReg->AddPhysicsExtension("PY8CHARMDK","Py8CharmDecayerPhysics");
42 
43  if (verbose > 0) {
44  //G4cout << G4endl;
45  //G4cout << __FILE__ << "::" << __LINE__ << G4endl;
46  //G4cout << G4endl;
48  }
49 
50  return true;
51 }
void PrintAvailablePhysicsLists(G4int verbosity)

Variable Documentation

const bool AddG4PhysicsShorthandsRegistered = RegisterAddG4PhysicsShorthands(2)

Definition at line 12 of file RegisterAddG4PhysicsShorthands.cc.