CGEM BOSS
6.6.5.h
BESIII Offline Software System
Loading...
Searching...
No Matches
ExN04GeneralPhysics.cxx
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * DISCLAIMER *
4
// * *
5
// * The following disclaimer summarizes all the specific disclaimers *
6
// * of contributors to this software. The specific disclaimers,which *
7
// * govern, are listed with their locations in: *
8
// * http://cern.ch/geant4/license *
9
// * *
10
// * Neither the authors of this software system, nor their employing *
11
// * institutes,nor the agencies providing financial support for this *
12
// * work make any representation or warranty, express or implied, *
13
// * regarding this software system or assume any liability for its *
14
// * use. *
15
// * *
16
// * This code implementation is the intellectual property of the *
17
// * GEANT4 collaboration. *
18
// * By copying, distributing or modifying the Program (or any work *
19
// * based on the Program) you indicate your acceptance of this *
20
// * statement, and all its terms. *
21
// ********************************************************************
22
//
23
//
24
// $Id: ExN04GeneralPhysics.cxx,v 1.1.1.1 2013/11/22 02:11:08 juxd Exp $
25
// GEANT4 tag $Name: G4Svc-00-04-01 $
26
//
27
//
28
29
#include "
Physics/ExN04GeneralPhysics.hh
"
30
31
#include "globals.hh"
32
#include "G4ios.hh"
33
34
ExN04GeneralPhysics::ExN04GeneralPhysics
(
const
G4String& name)
35
: G4VPhysicsConstructor(name)
36
{
37
}
38
39
ExN04GeneralPhysics::~ExN04GeneralPhysics
()
40
{
41
}
42
43
#include "G4ParticleDefinition.hh"
44
#include "G4ProcessManager.hh"
45
// Bosons
46
#include "G4ChargedGeantino.hh"
47
#include "G4Geantino.hh"
48
49
void
ExN04GeneralPhysics::ConstructParticle
()
50
{
51
// pseudo-particles
52
G4Geantino::GeantinoDefinition();
53
G4ChargedGeantino::ChargedGeantinoDefinition();
54
}
55
56
void
ExN04GeneralPhysics::ConstructProcess
()
57
{
58
// Add Decay Process
59
theParticleIterator->reset();
60
while
( (*theParticleIterator)() ){
61
G4ParticleDefinition* particle = theParticleIterator->value();
62
G4ProcessManager* pmanager = particle->GetProcessManager();
63
if
(
fDecayProcess
.IsApplicable(*particle)) {
64
pmanager ->AddProcess(&
fDecayProcess
);
65
// set ordering for PostStepDoIt and AtRestDoIt
66
pmanager ->SetProcessOrdering(&
fDecayProcess
, idxPostStep);
67
pmanager ->SetProcessOrdering(&
fDecayProcess
, idxAtRest);
68
}
69
}
70
}
71
72
ExN04GeneralPhysics.hh
ExN04GeneralPhysics::~ExN04GeneralPhysics
virtual ~ExN04GeneralPhysics()
Definition
ExN04GeneralPhysics.cxx:39
ExN04GeneralPhysics::ConstructProcess
virtual void ConstructProcess()
Definition
ExN04GeneralPhysics.cxx:56
ExN04GeneralPhysics::ExN04GeneralPhysics
ExN04GeneralPhysics(const G4String &name="general")
Definition
ExN04GeneralPhysics.cxx:34
ExN04GeneralPhysics::fDecayProcess
G4Decay fDecayProcess
Definition
ExN04GeneralPhysics.hh:65
ExN04GeneralPhysics::ConstructParticle
virtual void ConstructParticle()
Definition
ExN04GeneralPhysics.cxx:49
6.6.5.h
Simulation
G4Svc
G4Svc-00-04-01
Physics_src
ExN04GeneralPhysics.cxx
Generated by
1.12.0