Geant4
10.02.p03
B3b/src/B3StackingAction.cc
Go to the documentation of this file.
1
//
2
// ********************************************************************
3
// * License and Disclaimer *
4
// * *
5
// * The Geant4 software is copyright of the Copyright Holders of *
6
// * the Geant4 Collaboration. It is provided under the terms and *
7
// * conditions of the Geant4 Software License, included in the file *
8
// * LICENSE and available at http://cern.ch/geant4/license . These *
9
// * include a list of copyright holders. *
10
// * *
11
// * Neither the authors of this software system, nor their employing *
12
// * institutes,nor the agencies providing financial support for this *
13
// * work make any representation or warranty, express or implied, *
14
// * regarding this software system or assume any liability for its *
15
// * use. Please see the license in the file LICENSE and URL above *
16
// * for the full disclaimer and the limitation of liability. *
17
// * *
18
// * This code implementation is the result of the scientific and *
19
// * technical work of the GEANT4 collaboration. *
20
// * By using, copying, modifying or distributing the software (or *
21
// * any work based on the software) you agree to acknowledge its *
22
// * use in resulting scientific publications, and indicate your *
23
// * acceptance of all terms of the Geant4 Software license. *
24
// ********************************************************************
25
//
26
// $Id: B3StackingAction.cc 66536 2012-12-19 14:32:36Z ihrivnac $
27
//
30
31
#include "B3StackingAction.hh"
32
33
#include "G4Track.hh"
34
#include "
G4NeutrinoE.hh
"
35
36
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
37
38
B3StackingAction::B3StackingAction
()
39
{ }
40
41
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
42
43
B3StackingAction::~B3StackingAction
()
44
{ }
45
46
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
47
48
G4ClassificationOfNewTrack
49
B3StackingAction::ClassifyNewTrack
(
const
G4Track*
track
)
50
{
51
//keep primary particle
52
if
(track->GetParentID() == 0)
return
fUrgent
;
53
54
//kill secondary neutrino
55
if
(track->GetDefinition() ==
G4NeutrinoE::NeutrinoE
())
return
fKill
;
56
else
return
fUrgent
;
57
}
58
59
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo......
G4NeutrinoE.hh
fUrgent
Definition:
G4ClassificationOfNewTrack.hh:42
B3StackingAction::B3StackingAction
B3StackingAction()
Definition:
B3a/src/B3StackingAction.cc:38
B3StackingAction::~B3StackingAction
virtual ~B3StackingAction()
Definition:
B3a/src/B3StackingAction.cc:43
track
Float_t track
Definition:
extended/medical/dna/range/plot.C:37
B3StackingAction::ClassifyNewTrack
virtual G4ClassificationOfNewTrack ClassifyNewTrack(const G4Track *)
Definition:
B3a/src/B3StackingAction.cc:49
G4NeutrinoE::NeutrinoE
static G4NeutrinoE * NeutrinoE()
Definition:
G4NeutrinoE.cc:85
G4ClassificationOfNewTrack
G4ClassificationOfNewTrack
Definition:
G4ClassificationOfNewTrack.hh:40
fKill
Definition:
G4ClassificationOfNewTrack.hh:45
Geant4
Geant4.10.02.p03
examples
basic
B3
B3b
src
B3StackingAction.cc
Generated by
1.8.13