BOSS
8.0.0
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 2004/09/28 05:16:53 liwd Exp $
25
// GEANT4 tag $Name: G4Svc-00-01-58 $
26
//
27
//
28
29
#include "
Physics/ExN04GeneralPhysics.hh
"
30
31
#include "G4ios.hh"
32
#include "globals.hh"
33
34
ExN04GeneralPhysics::ExN04GeneralPhysics
(
const
G4String& name )
35
: G4VPhysicsConstructor( name ) {}
36
37
ExN04GeneralPhysics::~ExN04GeneralPhysics
() {}
38
39
#include "G4ParticleDefinition.hh"
40
#include "G4ProcessManager.hh"
41
// Bosons
42
#include "G4ChargedGeantino.hh"
43
#include "G4Geantino.hh"
44
45
void
ExN04GeneralPhysics::ConstructParticle
() {
46
// pseudo-particles
47
G4Geantino::GeantinoDefinition();
48
G4ChargedGeantino::ChargedGeantinoDefinition();
49
}
50
51
void
ExN04GeneralPhysics::ConstructProcess
() {
52
// Add Decay Process
53
theParticleIterator->reset();
54
while
( ( *theParticleIterator )() )
55
{
56
G4ParticleDefinition* particle = theParticleIterator->value();
57
G4ProcessManager* pmanager = particle->GetProcessManager();
58
if
(
fDecayProcess
.IsApplicable( *particle ) )
59
{
60
pmanager->AddProcess( &
fDecayProcess
);
61
// set ordering for PostStepDoIt and AtRestDoIt
62
pmanager->SetProcessOrdering( &
fDecayProcess
, idxPostStep );
63
pmanager->SetProcessOrdering( &
fDecayProcess
, idxAtRest );
64
}
65
}
66
}
ExN04GeneralPhysics.hh
ExN04GeneralPhysics::~ExN04GeneralPhysics
virtual ~ExN04GeneralPhysics()
Definition
ExN04GeneralPhysics.cxx:37
ExN04GeneralPhysics::ConstructProcess
virtual void ConstructProcess()
Definition
ExN04GeneralPhysics.cxx:51
ExN04GeneralPhysics::ExN04GeneralPhysics
ExN04GeneralPhysics(const G4String &name="general")
Definition
ExN04GeneralPhysics.cxx:34
ExN04GeneralPhysics::fDecayProcess
G4Decay fDecayProcess
Definition
ExN04GeneralPhysics.hh:63
ExN04GeneralPhysics::ConstructParticle
virtual void ConstructParticle()
Definition
ExN04GeneralPhysics.cxx:45
8.0.0
BOSS_Source
Simulation
G4Svc
Physics_src
ExN04GeneralPhysics.cxx
Generated by
1.16.1