//_____________________________________________________________________________
TG4PhysicsConstructorEM::TG4PhysicsConstructorEM(const G4String& name)
- : G4VPhysicsConstructor(name)
-{
+ : TG4VPhysicsConstructor(name) {
+//
+}
+
+//_____________________________________________________________________________
+TG4PhysicsConstructorEM::TG4PhysicsConstructorEM(G4int verboseLevel,
+ const G4String& name)
+ : TG4VPhysicsConstructor(name, verboseLevel) {
//
- SetVerboseLevel(1);
}
//_____________________________________________________________________________
ConstructProcessForElectron();
ConstructProcessForPositron();
- if (verboseLevel>0)
+ if (VerboseLevel() > 0) {
G4cout << "### Electromagnetic physics constructed." << G4endl;
+ }
}
#ifndef TG4_PHYSICS_CONSTRUCTOR_EM_H
#define TG4_PHYSICS_CONSTRUCTOR_EM_H
-#include <G4VPhysicsConstructor.hh>
+#include "TG4VPhysicsConstructor.h"
+
#include <G4PhotoElectricEffect.hh>
#include <G4ComptonScattering.hh>
#include <G4GammaConversion.hh>
#include <G4eplusAnnihilation.hh>
#include <globals.hh>
-class TG4PhysicsConstructorEM: public G4VPhysicsConstructor
+class TG4PhysicsConstructorEM: public TG4VPhysicsConstructor
{
public:
- TG4PhysicsConstructorEM(const G4String& name = "EM");
+ TG4PhysicsConstructorEM(const G4String& name = "EM");
+ TG4PhysicsConstructorEM(G4int verboseLevel,
+ const G4String& name = "EM");
virtual ~TG4PhysicsConstructorEM();
protected:
//_____________________________________________________________________________
TG4PhysicsConstructorGeneral::TG4PhysicsConstructorGeneral(const G4String& name)
- : G4VPhysicsConstructor(name)
-{
+ : TG4VPhysicsConstructor(name) {
+//
+}
+
+//_____________________________________________________________________________
+TG4PhysicsConstructorGeneral::TG4PhysicsConstructorGeneral(
+ G4int verboseLevel,
+ const G4String& name)
+ : TG4VPhysicsConstructor(name, verboseLevel) {
//
- SetVerboseLevel(1);
}
//_____________________________________________________________________________
if (aliDecayer) {
TG4ExtDecayer* tg4Decayer = new TG4ExtDecayer(aliDecayer);
// the tg4Decayer is deleted in G4Decay destructor
- tg4Decayer->SetVerboseLevel(1);
+ tg4Decayer->VerboseLevel(VerboseLevel());
fDecayProcess.SetExtDecayer(tg4Decayer);
- if (verboseLevel>0) G4cout << "### External decayer is set" << G4endl;
+ if (VerboseLevel() > 0) {
+ G4cout << "### External decayer is set" << G4endl;
+ }
}
theParticleIterator->reset();
TG4ProcessControlMap* processMap = TG4ProcessControlMap::Instance();
processMap->Add(&fDecayProcess, kDCAY);
- if (verboseLevel>0)
+ if (VerboseLevel() > 0) {
G4cout << "### General physics constructed." << G4endl;
+ }
}
#ifndef TG4_PHYSICS_CONSTRUCTOR_GENERAL_H
#define TG4_PHYSICS_CONSTRUCTOR_GENERAL_H
-#include <G4VPhysicsConstructor.hh>
+#include "TG4VPhysicsConstructor.h"
+
#include <G4Decay.hh>
#include <globals.hh>
-class TG4PhysicsConstructorGeneral: public G4VPhysicsConstructor
+class TG4PhysicsConstructorGeneral: public TG4VPhysicsConstructor
{
public:
TG4PhysicsConstructorGeneral(const G4String& name = "General");
+ TG4PhysicsConstructorGeneral(G4int verboseLevel,
+ const G4String& name = "General");
virtual ~TG4PhysicsConstructorGeneral();
protected:
//_____________________________________________________________________________
TG4PhysicsConstructorMuon::TG4PhysicsConstructorMuon(const G4String& name)
- : G4VPhysicsConstructor(name)
-{
+ : TG4VPhysicsConstructor(name) {
+//
+}
+
+//_____________________________________________________________________________
+TG4PhysicsConstructorMuon::TG4PhysicsConstructorMuon(G4int verboseLevel,
+ const G4String& name)
+ : TG4VPhysicsConstructor(name, verboseLevel) {
//
- SetVerboseLevel(1);
}
//_____________________________________________________________________________
ConstructProcessForTauPlus();
ConstructProcessForTauMinus();
- if (verboseLevel>0)
+ if (VerboseLevel() >0 ) {
G4cout << "### Muon physics constructed." << G4endl;
+ }
}
#ifndef TG4_PHYSICS_CONSTRUCTOR_MUON_H
#define TG4_PHYSICS_CONSTRUCTOR_MUON_H
-#include <G4VPhysicsConstructor.hh>
+#include "TG4VPhysicsConstructor.h"
+
#include "G4MultipleScattering.hh"
#include "G4MuBremsstrahlung.hh"
#include "G4MuPairProduction.hh"
#include "G4hIonisation.hh"
#include <globals.hh>
-class TG4PhysicsConstructorMuon: public G4VPhysicsConstructor
+class TG4PhysicsConstructorMuon: public TG4VPhysicsConstructor
{
public:
- TG4PhysicsConstructorMuon(const G4String& name = "EM");
+ TG4PhysicsConstructorMuon(const G4String& name = "Muon");
+ TG4PhysicsConstructorMuon(G4int verboseLevel,
+ const G4String& name = "Muon");
virtual ~TG4PhysicsConstructorMuon();
protected:
//_____________________________________________________________________________
TG4PhysicsConstructorOptical::TG4PhysicsConstructorOptical(const G4String& name)
- : G4VPhysicsConstructor(name)
-{
+ : TG4VPhysicsConstructor(name) {
+//
+}
+
+//_____________________________________________________________________________
+TG4PhysicsConstructorOptical::TG4PhysicsConstructorOptical(G4int verboseLevel,
+ const G4String& name)
+ : TG4VPhysicsConstructor(name, verboseLevel) {
//
- SetVerboseLevel(1);
}
//_____________________________________________________________________________
mcMap->Add(theRayleighScatteringProcess, kPRayleigh);
mcMap->Add(theBoundaryProcess, kPLightScattering);
- if (verboseLevel>0)
+ if (VerboseLevel() > 0) {
G4cout << "### " << namePhysics << " physics constructed." << G4endl;
+ }
}
#ifndef TG4_PHYSICS_CONSTRUCTOR_OPTICAL_H
#define TG4_PHYSICS_CONSTRUCTOR_OPTICAL_H
-#include <G4VPhysicsConstructor.hh>
+#include "TG4VPhysicsConstructor.h"
+
#include <globals.hh>
-class TG4PhysicsConstructorOptical: public G4VPhysicsConstructor
+class TG4PhysicsConstructorOptical: public TG4VPhysicsConstructor
{
public:
TG4PhysicsConstructorOptical(const G4String& name = "Optical");
+ TG4PhysicsConstructorOptical(G4int verboseLevel,
+ const G4String& name = "Optical");
virtual ~TG4PhysicsConstructorOptical();
protected: