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

Last change on this file since 846 was 819, checked in by garnier, 16 years ago

import all except CVS

File size: 3.6 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.4 2007/10/15 08:31:49 pia Exp $
28// GEANT4 tag $Name:  $
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 KillPrimaryParticle();
75 
76  G4bool PrimaryParticleIsKilled() const { return killStatus; }
77 
78  G4bool PrimaryParticleIsModified() const { return isModified; }
79 
80  G4int NumberOfSecondaries() const;
81 
82  G4double GetEnergyDeposit() const { return localEnergyDeposit; }
83
84  G4double GetModifiedEnergy() const { return modifiedEnergy; }
85
86  const G4ThreeVector& GetModifiedDirection() const { return modifiedDirection; }
87 
88  const std::vector<G4DynamicParticle*>& GetSecondaries() const;
89 
90 
91  // protected:
92 
93  // Copy constructor and assignment operator to be added here
94 
95private:
96 
97  G4bool killStatus;
98  G4bool isModified;
99  G4double localEnergyDeposit;
100  G4double modifiedEnergy;
101  std::vector<G4DynamicParticle*> secondaries;
102  G4ThreeVector modifiedDirection;
103};
104
105#endif
Note: See TracBrowser for help on using the repository browser.