G4QPhotoNuclearPhysics Class Reference

#include <G4QPhotoNuclearPhysics.hh>

Inheritance diagram for G4QPhotoNuclearPhysics:

G4VPhysicsConstructor

Public Member Functions

 G4QPhotoNuclearPhysics (G4int verbose=1)
 G4QPhotoNuclearPhysics (const G4String &name)
virtual ~G4QPhotoNuclearPhysics ()
void ConstructParticle ()
void ConstructProcess ()
G4String GetSynchRadOnOff ()
G4String GetGammaNuclearOnOff ()
G4String GetElPosNuclearOnOff ()
G4String GetMuonNuclearOnOff ()
G4String GetTauNuclearOnOff ()
void SetSynchRadOnOff (G4String &aSwitch)
void SetGammaNuclearOnOff (G4String &aSwitch)
void SetElPosNuclearOnOff (G4String &aSwitch)
void SetMuonNuclearOnOff (G4String &aSwitch)
void SetTauNuclearOnOff (G4String &aSwitch)
void SetMinGammaSR (G4double newValue)
void SetPhotoNucBias (G4double newValue)

Detailed Description

Definition at line 64 of file G4QPhotoNuclearPhysics.hh.


Constructor & Destructor Documentation

G4QPhotoNuclearPhysics::G4QPhotoNuclearPhysics ( G4int  verbose = 1  ) 

Definition at line 42 of file G4QPhotoNuclearPhysics.cc.

References G4QMessenger::Add(), and G4QMessenger::GetPointer().

00042                                                    : 
00043   G4VPhysicsConstructor("CHIPS photo-nuclear"), wasBuilt(false), SynchRActivated(false),
00044   GamNucActivated(false), EleNucActivated(false), MuoNucActivated(false),
00045   TauNucActivated(false), synchrOn(true), synchrMinGam(227.), gamNucOn(true),
00046   eleNucOn(true), muoNucOn(true), tauNucOn(true), photoNucBias(1.)
00047 {
00048   theMessenger = G4QMessenger::GetPointer();
00049   theMessenger->Add(this);
00050 }

G4QPhotoNuclearPhysics::G4QPhotoNuclearPhysics ( const G4String name  ) 

Definition at line 52 of file G4QPhotoNuclearPhysics.cc.

References G4QMessenger::Add(), and G4QMessenger::GetPointer().

00052                                                                   : 
00053   G4VPhysicsConstructor(name), wasBuilt(false), SynchRActivated(false),
00054   GamNucActivated(false), EleNucActivated(false), MuoNucActivated(false),
00055   TauNucActivated(false), synchrOn(true), synchrMinGam(227.), gamNucOn(true),
00056   eleNucOn(true), muoNucOn(true), tauNucOn(true), photoNucBias(1.)
00057 {
00058   theMessenger = G4QMessenger::GetPointer();
00059   theMessenger->Add(this);
00060 }

G4QPhotoNuclearPhysics::~G4QPhotoNuclearPhysics (  )  [virtual]

Definition at line 62 of file G4QPhotoNuclearPhysics.cc.

00063 {
00064   if(wasBuilt)
00065   {
00066     delete inelastic;
00067     if(synchrOn) delete synchrad;
00068   }
00069 }


Member Function Documentation

void G4QPhotoNuclearPhysics::ConstructParticle (  )  [virtual]

Implements G4VPhysicsConstructor.

Definition at line 118 of file G4QPhotoNuclearPhysics.cc.

References G4BaryonConstructor::ConstructParticle(), G4MesonConstructor::ConstructParticle(), G4Electron::Electron(), G4Gamma::Gamma(), G4MuonMinus::MuonMinus(), G4MuonPlus::MuonPlus(), G4Positron::Positron(), G4TauMinus::TauMinus(), and G4TauPlus::TauPlus().

00119 {
00120   G4Gamma::Gamma();
00121   G4Electron::Electron();
00122   G4Positron::Positron();
00123   G4MuonPlus::MuonPlus();
00124   G4MuonMinus::MuonMinus();
00125   G4TauPlus::TauPlus();
00126   G4TauMinus::TauMinus();
00127   if (synchrOn)
00128   {
00129     G4MesonConstructor pMesonConstructor;
00130     pMesonConstructor.ConstructParticle();
00131 
00132     G4BaryonConstructor pBaryonConstructor;
00133     pBaryonConstructor.ConstructParticle();
00134   }
00135 }

void G4QPhotoNuclearPhysics::ConstructProcess (  )  [virtual]

Implements G4VPhysicsConstructor.

Definition at line 137 of file G4QPhotoNuclearPhysics.cc.

References G4QInelastic::SetPhotNucBias().

00138 {
00139   if(wasBuilt) return;
00140   wasBuilt = true;
00141 
00142   inelastic = new G4QInelastic("photoNuclear");
00143   inelastic->SetPhotNucBias(photoNucBias);
00144 
00145   if (synchrOn)   BuildSynchRad();
00146   if (gamNucOn)   BuildGammaNuclear();
00147   if (eleNucOn)   BuildElectroNuclear();
00148   if (muoNucOn)   BuildMuonNuclear();
00149   if (tauNucOn)   BuildTauNuclear();
00150 }

G4String G4QPhotoNuclearPhysics::GetElPosNuclearOnOff (  )  [inline]

Definition at line 76 of file G4QPhotoNuclearPhysics.hh.

Referenced by G4QMessenger::GetCurrentValue().

00076 {return eleNucOn ? "on" : "off";}

G4String G4QPhotoNuclearPhysics::GetGammaNuclearOnOff (  )  [inline]

Definition at line 75 of file G4QPhotoNuclearPhysics.hh.

Referenced by G4QMessenger::GetCurrentValue().

00075 {return gamNucOn ? "on" : "off";}

G4String G4QPhotoNuclearPhysics::GetMuonNuclearOnOff (  )  [inline]

Definition at line 77 of file G4QPhotoNuclearPhysics.hh.

Referenced by G4QMessenger::GetCurrentValue().

00077 {return muoNucOn ? "on" : "off";}

G4String G4QPhotoNuclearPhysics::GetSynchRadOnOff (  )  [inline]

Definition at line 74 of file G4QPhotoNuclearPhysics.hh.

Referenced by G4QMessenger::GetCurrentValue().

00074 {return synchrOn ? "on" : "off";}

G4String G4QPhotoNuclearPhysics::GetTauNuclearOnOff (  )  [inline]

Definition at line 78 of file G4QPhotoNuclearPhysics.hh.

Referenced by G4QMessenger::GetCurrentValue().

00078 {return tauNucOn ? "on" : "off";}

void G4QPhotoNuclearPhysics::SetElPosNuclearOnOff ( G4String aSwitch  ) 

Definition at line 85 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00086 {
00087   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00088   else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") eleNucOn = true;
00089   else eleNucOn = false;
00090 }

void G4QPhotoNuclearPhysics::SetGammaNuclearOnOff ( G4String aSwitch  ) 

Definition at line 78 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00079 {
00080   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00081   else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") gamNucOn = true;
00082   else gamNucOn = false;
00083 }

void G4QPhotoNuclearPhysics::SetMinGammaSR ( G4double  newValue  ) 

Definition at line 106 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00107 {
00108   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00109   else synchrMinGam = newValue;
00110 }

void G4QPhotoNuclearPhysics::SetMuonNuclearOnOff ( G4String aSwitch  ) 

Definition at line 92 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00093 {
00094   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00095   else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") muoNucOn = true;
00096   else muoNucOn = false;
00097 }

void G4QPhotoNuclearPhysics::SetPhotoNucBias ( G4double  newValue  ) 

Definition at line 112 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00113 {
00114   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00115   else photoNucBias = newValue;
00116 }

void G4QPhotoNuclearPhysics::SetSynchRadOnOff ( G4String aSwitch  ) 

Definition at line 71 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00072 {
00073   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00074   else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") synchrOn = true;
00075   else synchrOn = false;
00076 }

void G4QPhotoNuclearPhysics::SetTauNuclearOnOff ( G4String aSwitch  ) 

Definition at line 99 of file G4QPhotoNuclearPhysics.cc.

References G4cout, and G4endl.

Referenced by G4QMessenger::SetNewValue().

00100 {
00101   if(wasBuilt) G4cout<<"G4QPhotoNuclearPhysics:No, processes are already builded!"<<G4endl;
00102   else if(newSwitch == "on" || newSwitch == "ON" || newSwitch == "On") tauNucOn = true;
00103   else tauNucOn = false;
00104 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:14 2013 for Geant4 by  doxygen 1.4.7