source: trunk/source/track/include/G4ParticleChangeForRadDecay.hh @ 1058

Last change on this file since 1058 was 1058, checked in by garnier, 15 years ago

file release beta

File size: 3.5 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: G4ParticleChangeForRadDecay.hh,v 1.7 2006/06/29 21:14:29 gunter Exp $
28// GEANT4 tag $Name: geant4-09-02-ref-02 $
29//
30//
31// ------------------------------------------------------------
32//      GEANT 4 class header file
33//
34//
35// ------------------------------------------------------------
36//   Implemented for the new scheme                 25 Jan. 2000  H.Kurahige
37//
38// Class Description
39//  This class is a concrete class for ParticleChange for RadDecay
40//       
41#ifndef G4ParticleChangeForRadDecay_h
42#define G4ParticleChangeForRadDecay_h 1
43
44#include "globals.hh"
45#include "G4ios.hh"
46class G4VTouchable;
47#include "G4ParticleChangeForDecay.hh"
48
49class G4ParticleChangeForRadDecay: public G4ParticleChangeForDecay
50{ 
51  public:
52    // default constructor
53    G4ParticleChangeForRadDecay(){}
54
55    // destructor
56    virtual ~G4ParticleChangeForRadDecay(){}
57
58  protected:
59    // hide copy constructor and assignment operaor as protected
60    G4ParticleChangeForRadDecay(const G4ParticleChangeForRadDecay &) : G4ParticleChangeForDecay() {}
61    G4ParticleChangeForRadDecay & operator=(const G4ParticleChangeForRadDecay &){return *this;}
62
63
64  public: // with description
65  void AddSecondary(G4Track* aSecondary);
66    //  Add a secondary particle to theListOfSecondaries.
67    // ------------------------------------------------------   
68
69
70};
71
72inline void G4ParticleChangeForRadDecay::AddSecondary(G4Track *aTrack)
73{
74  // add a secondary after size check
75  if (theSizeOftheListOfSecondaries > theNumberOfSecondaries) {
76    theListOfSecondaries->SetElement(theNumberOfSecondaries, aTrack);
77    theNumberOfSecondaries++;
78  } else {
79#ifdef G4VERBOSE
80    if (verboseLevel>0) {
81      G4cerr << "G4VParticleChange::AddSecondary() Warning  ";
82      G4cerr << "theListOfSecondaries is full !! " << G4endl;
83      G4cerr << " The object will not be added in theListOfSecondaries" << G4endl;
84    }
85#endif
86  }
87}
88
89
90
91#endif
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
Note: See TracBrowser for help on using the repository browser.