source: trunk/source/processes/electromagnetic/lowenergy/include/G4FinalStateProduct.hh @ 1315

Last change on this file since 1315 was 1315, checked in by garnier, 14 years ago

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File size: 3.7 KB
Line 
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//
27// $Id: G4FinalStateProduct.hh,v 1.5 2009/01/20 07:50:28 sincerti Exp $
28// GEANT4 tag $Name: geant4-09-04-beta-cand-01 $
29//
30// Contact Author: Maria Grazia Pia (Maria.Grazia.Pia@cern.ch)
31//
32// History:
33// -----------
34// Date         Name              Modification
35// 28 Apr 2007  M.G. Pia          Created in compliance with design described in TNS paper
36//
37// -------------------------------------------------------------------
38
39// Class description:
40// Final state product
41// Reference: TNS Geant4-DNA paper
42// Further documentation available from http://www.ge.infn.it/geant4/dna
43
44// -------------------------------------------------------------------
45
46
47#ifndef G4FINALSTATEPRODUCT_HH
48#define G4FINALSTATEPRODUCT_HH 1
49 
50#include "globals.hh"
51#include "G4Track.hh"
52#include "G4Step.hh"
53#include <vector>
54
55class G4DynamicParticle;
56
57class G4FinalStateProduct
58{
59public:
60 
61  G4FinalStateProduct();
62 
63  ~G4FinalStateProduct();
64 
65  void Clear();
66 
67  void AddSecondary(G4DynamicParticle* particle);
68 
69  void AddEnergyDeposit(G4double energy);
70 
71  void ModifyPrimaryParticle(G4double dirX, G4double dirY, G4double dirZ, G4double energy);
72  void ModifyPrimaryParticle(const G4ThreeVector& direction, G4double energy);
73 
74  void DoNotDepositEnergy();
75  void KillPrimaryParticle();
76
77  G4bool PrimaryParticleIsKilled() const { return killStatus; }
78 
79  G4bool PrimaryParticleIsKilledAndDoNotDepositEnergy() const { return doNotDepositStatus; }
80 
81  G4bool PrimaryParticleIsModified() const { return isModified; }
82 
83  G4int NumberOfSecondaries() const;
84 
85  G4double GetEnergyDeposit() const { return localEnergyDeposit; }
86
87  G4double GetModifiedEnergy() const { return modifiedEnergy; }
88
89  const G4ThreeVector& GetModifiedDirection() const { return modifiedDirection; }
90 
91  const std::vector<G4DynamicParticle*>& GetSecondaries() const;
92 
93 
94  // protected:
95 
96  // Copy constructor and assignment operator to be added here
97 
98private:
99 
100  G4bool killStatus;
101  G4bool doNotDepositStatus;
102  G4bool isModified;
103  G4double localEnergyDeposit;
104  G4double modifiedEnergy;
105  std::vector<G4DynamicParticle*> secondaries;
106  G4ThreeVector modifiedDirection;
107};
108
109#endif
Note: See TracBrowser for help on using the repository browser.