source: trunk/source/particles/management/include/G4ParticlePropertyTable.hh@ 1182

Last change on this file since 1182 was 992, checked in by garnier, 17 years ago

fichiers oublies

File size: 4.2 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// $Id: G4ParticlePropertyTable.hh,v 1.4 2006/06/29 19:24:18 gunter Exp $
27// GEANT4 tag $Name: geant4-09-02-ref-02 $
28//
29//
30// ------------------------------------------------------------
31// GEANT 4 class header file
32//
33// History:
34// ---------------- G4ParticlePropertyTable ----------------
35// first implementation by H Kurashige 9 June 2003
36// ------------------------------------------------------------
37
38#ifndef G4ParticlePropertyTable_h
39#define G4ParticlePropertyTable_h 1
40
41#include "globals.hh"
42#include "G4ios.hh"
43#include <vector>
44
45#include "G4ParticlePropertyData.hh"
46#include "G4ParticleDefinition.hh"
47#include "G4ParticleTable.hh"
48
49class G4ParticlePropertyTable
50{
51 // Class Description
52 // This class manages properties of a particle which are
53 // properties in G4ParticlePropertyTable class.
54 // This class is a singleton.
55
56 protected:
57 // hide default constructor because this class is a singleton
58 G4ParticlePropertyTable();
59 G4ParticlePropertyTable(const G4ParticlePropertyTable &right);
60
61 const G4ParticlePropertyTable & operator=(const G4ParticlePropertyTable &right);
62
63 public:
64 G4int operator==(const G4ParticlePropertyTable &right) const;
65 G4int operator!=(const G4ParticlePropertyTable &right) const;
66
67 public:
68 virtual ~G4ParticlePropertyTable();
69
70 public: //With Description
71 static G4ParticlePropertyTable* GetParticlePropertyTable();
72 // return the pointer to G4ParticlePropertyTable object
73 // G4ParticlePropertyTable is a "singleton" and can get its pointer
74 // by this function. At the first time of calling this function,
75 // the G4ParticleTable object is instantiated
76
77 G4ParticlePropertyData* GetParticleProperty(const G4String& aParticleName);
78 G4ParticlePropertyData* GetParticleProperty(const G4ParticleDefinition* aParticle);
79 // return the pointer to G4ParticlePropertyData object,
80 // which contains properties for the particle specified.
81 // (return 0 if the specified particle does not exist)
82
83 G4bool SetParticleProperty(const G4ParticlePropertyData& newProperty);
84 // change particle properties for the particle specified.
85 // return true if properties are sucessfully set
86
87 void Clear();
88 // clear and destroy arrayDataObject
89
90 public:
91 void SetVerboseLevel(G4int value);
92 G4int GetVerboseLevel() const;
93 // controle flag for output message
94 // 0: Silent
95 // 1: Warning message
96 // 2: More
97
98 protected:
99 G4ParticleTable* fParticleTable;
100
101 private:
102 G4int verboseLevel;
103 static G4ParticlePropertyTable* fgParticlePropertyTable;
104
105 protected:
106 std::vector<G4ParticlePropertyData*> arrayDataObject;
107};
108
109
110#endif
111
112
113
114
115
116
117
118
119
Note: See TracBrowser for help on using the repository browser.