Geant4 Cross Reference

Cross-Referencing   Geant4
Geant4/processes/management/include/G4ProcessManager.hh

Version: [ ReleaseNotes ] [ 1.0 ] [ 1.1 ] [ 2.0 ] [ 3.0 ] [ 3.1 ] [ 3.2 ] [ 4.0 ] [ 4.0.p1 ] [ 4.0.p2 ] [ 4.1 ] [ 4.1.p1 ] [ 5.0 ] [ 5.0.p1 ] [ 5.1 ] [ 5.1.p1 ] [ 5.2 ] [ 5.2.p1 ] [ 5.2.p2 ] [ 6.0 ] [ 6.0.p1 ] [ 6.1 ] [ 6.2 ] [ 6.2.p1 ] [ 6.2.p2 ] [ 7.0 ] [ 7.0.p1 ] [ 7.1 ] [ 7.1.p1 ] [ 8.0 ] [ 8.0.p1 ] [ 8.1 ] [ 8.1.p1 ] [ 8.1.p2 ] [ 8.2 ] [ 8.2.p1 ] [ 8.3 ] [ 8.3.p1 ] [ 8.3.p2 ] [ 9.0 ] [ 9.0.p1 ] [ 9.0.p2 ] [ 9.1 ] [ 9.1.p1 ] [ 9.1.p2 ] [ 9.1.p3 ] [ 9.2 ] [ 9.2.p1 ] [ 9.2.p2 ] [ 9.2.p3 ] [ 9.2.p4 ] [ 9.3 ] [ 9.3.p1 ] [ 9.3.p2 ] [ 9.4 ] [ 9.4.p1 ] [ 9.4.p2 ] [ 9.4.p3 ] [ 9.4.p4 ] [ 9.5 ] [ 9.5.p1 ] [ 9.5.p2 ] [ 9.6 ] [ 9.6.p1 ] [ 9.6.p2 ] [ 9.6.p3 ] [ 9.6.p4 ] [ 10.0 ] [ 10.0.p1 ] [ 10.0.p2 ] [ 10.0.p3 ] [ 10.0.p4 ] [ 10.1 ] [ 10.1.p1 ] [ 10.1.p2 ] [ 10.1.p3 ] [ 10.2 ] [ 10.2.p1 ] [ 10.2.p2 ] [ 10.2.p3 ] [ 10.3 ] [ 10.3.p1 ] [ 10.3.p2 ] [ 10.3.p3 ] [ 10.4 ] [ 10.4.p1 ] [ 10.4.p2 ] [ 10.4.p3 ] [ 10.5 ] [ 10.5.p1 ] [ 10.6 ] [ 10.6.p1 ] [ 10.6.p2 ] [ 10.6.p3 ] [ 10.7 ] [ 10.7.p1 ] [ 10.7.p2 ] [ 10.7.p3 ] [ 10.7.p4 ] [ 11.0 ] [ 11.0.p1 ] [ 11.0.p2 ] [ 11.0.p3, ] [ 11.0.p4 ] [ 11.1 ] [ 11.1.1 ] [ 11.1.2 ] [ 11.1.3 ] [ 11.2 ] [ 11.2.1 ] [ 11.2.2 ] [ 11.3.0 ]

Diff markup

Differences between /processes/management/include/G4ProcessManager.hh (Version 11.3.0) and /processes/management/include/G4ProcessManager.hh (Version 7.0)


  1 //                                                  1 //
  2 // *******************************************      2 // ********************************************************************
  3 // * License and Disclaimer                    <<   3 // * DISCLAIMER                                                       *
  4 // *                                                4 // *                                                                  *
  5 // * The  Geant4 software  is  copyright of th <<   5 // * The following disclaimer summarizes all the specific disclaimers *
  6 // * the Geant4 Collaboration.  It is provided <<   6 // * of contributors to this software. The specific disclaimers,which *
  7 // * conditions of the Geant4 Software License <<   7 // * govern, are listed with their locations in:                      *
  8 // * LICENSE and available at  http://cern.ch/ <<   8 // *   http://cern.ch/geant4/license                                  *
  9 // * include a list of copyright holders.      << 
 10 // *                                                9 // *                                                                  *
 11 // * Neither the authors of this software syst     10 // * Neither the authors of this software system, nor their employing *
 12 // * institutes,nor the agencies providing fin     11 // * institutes,nor the agencies providing financial support for this *
 13 // * work  make  any representation or  warran     12 // * work  make  any representation or  warranty, express or implied, *
 14 // * regarding  this  software system or assum     13 // * regarding  this  software system or assume any liability for its *
 15 // * use.  Please see the license in the file  <<  14 // * use.                                                             *
 16 // * for the full disclaimer and the limitatio << 
 17 // *                                               15 // *                                                                  *
 18 // * This  code  implementation is the result  <<  16 // * This  code  implementation is the  intellectual property  of the *
 19 // * technical work of the GEANT4 collaboratio <<  17 // * GEANT4 collaboration.                                            *
 20 // * By using,  copying,  modifying or  distri <<  18 // * By copying,  distributing  or modifying the Program (or any work *
 21 // * any work based  on the software)  you  ag <<  19 // * based  on  the Program)  you indicate  your  acceptance of  this *
 22 // * use  in  resulting  scientific  publicati <<  20 // * statement, and all its terms.                                    *
 23 // * acceptance of all terms of the Geant4 Sof << 
 24 // *******************************************     21 // ********************************************************************
 25 //                                                 22 //
 26 // G4ProcessManager                            << 
 27 //                                                 23 //
 28 // Class Description:                          <<  24 // $Id: G4ProcessManager.hh,v 1.9 2003/06/16 17:12:28 gunter Exp $
                                                   >>  25 // GEANT4 tag $Name: geant4-07-00-cand-01 $
 29 //                                                 26 //
 30 // G4ProcessManager collects all physics a par <<  27 // 
 31 // vectors. These vectors are:                 <<  28 // ------------------------------------------------------------
 32 // - one vector for all processes (called as " <<  29 //  GEANT 4 class header file 
 33 // - two vectors for processes with AtRestGetP <<  30 //
 34 //                              and AtRestDoIt <<  31 //  History: first implementation, based on object model of
 35 // - two vectors for processes with AlongStepG <<  32 //  2nd December 1995, G.Cosmo
 36 //                              and AlongStepD <<  33 //   ----------------  G4ProcessManager  -----------------
 37 // - two vectors for processes with PostStepGe <<  34 // Class Description 
 38 //                              and PostStepDo <<  35 //  It collects all physics a particle can undertake as seven vectors.
 39 // The tracking will message three types of Ge <<  36 //  These vectors are 
 40 // in order to limit the Step and select the o <<  37 //   one vector for all processes (called as "process List")
 41 // It will message the corresponding DoIt() to <<  38 //   two vectors for processes with AtRestGetPhysicalInteractionLength
 42 // processes. In addition, the Tracking will l <<  39 //                                    and AtRestDoIt
 43 // and select the occurrence of the processes  <<  40 //   two vectors for processes with AlongStepGetPhysicalInteractionLength
 44 // the shortest physical interaction length co <<  41 //                                    and AlongStepDoIt
 45 // processes at rest, for which the Tracking w <<  42 //   two vectors for processes with PostStepGetPhysicalInteractionLength
 46 // occurrence of the process which returns the <<  43 //                                    and PostStepDoIt
 47 // life-time from the GetPhysicalInteractionLe <<  44 //  The tracking will message three types of GetPhysicalInteractionLength
 48                                                <<  45 //  in order to limit the Step and select the occurence of processes. 
 49 // Authors:                                    <<  46 //  It will message the corresponding DoIt() to apply the selected 
 50 // - 02.12.1995, G.Cosmo - First implementatio <<  47 //  processes. In addition, the Tracking will limit the Step
 51 // - 06.05.1996, G.Cosmo - Revised; added vect <<  48 //  and select the occurence of the processes according to
 52 // - 08.01.1997, H.Kurashige - New Physics sch <<  49 //  the shortest physical interaction length computed (except for
 53 // ------------------------------------------- <<  50 //  processes at rest, for which the Tracking will select the
 54 #ifndef G4ProcessManager_hh                    <<  51 //  occurence of the process which returns the shortest mean
 55 #define G4ProcessManager_hh 1                  <<  52 //  life-time from the GetPhysicalInteractionLength()).
                                                   >>  53 //
                                                   >>  54 // History:
                                                   >>  55 // revised by G.Cosmo, 06 May 1996
                                                   >>  56 //    Added vector of processes at rest, 06 May 1996
                                                   >>  57 // ------------------------------------------------------------
                                                   >>  58 //   New Physics scheme           8 Jan. 1997  H.Kurahige
                                                   >>  59 //   Add SetProcessOrdering methods     27 Mar 1998  H.Kurahige
                                                   >>  60 //   Add copy constructor (deep copy)   28 June 1998 H.Kurashige
                                                   >>  61 //   Add GetProcessActivation     3 May. 1999 H.Kurashige
                                                   >>  62 //   Use STL vector instead of RW vector    1. Mar 00 H.Kurashige
                                                   >>  63 // ------------------------------------------------------------
 56                                                    64 
 57 #include <vector>                              <<  65 #ifndef G4ProcessManager_h
                                                   >>  66 #define G4ProcessManager_h 1
 58                                                    67 
 59 #include "globals.hh"                              68 #include "globals.hh"
 60 #include "G4ios.hh"                                69 #include "G4ios.hh"
                                                   >>  70 #include <vector>
 61                                                    71 
 62 #include "G4VProcess.hh"                           72 #include "G4VProcess.hh"
 63 #include "G4ProcessVector.hh"                      73 #include "G4ProcessVector.hh"
 64 #include "G4ParticleDefinition.hh"                 74 #include "G4ParticleDefinition.hh"
 65                                                    75 
 66 class G4ProcessManagerMessenger;                   76 class G4ProcessManagerMessenger;
 67 class G4ProcessAttribute;                          77 class G4ProcessAttribute;
 68                                                    78 
 69 // Indexes for ProcessVector                   <<  79 //  Indexes for ProcessVector
 70 //                                             << 
 71 enum G4ProcessVectorTypeIndex                      80 enum G4ProcessVectorTypeIndex
 72 {                                                  81 { 
 73   typeGPIL = 0,        // for GetPhysicalInter <<  82     typeGPIL = 0, // for GetPhysicalInteractionLength 
 74   typeDoIt =1          // for DoIt             <<  83   typeDoIt =1   // for DoIt
 75 };                                                 84 };
 76 enum G4ProcessVectorDoItIndex                      85 enum G4ProcessVectorDoItIndex
 77 {                                                  86 {
 78   idxAll = -1,         // for all DoIt/GPIL    <<  87     idxAll = -1,    // for all DoIt/GPIL 
 79   idxAtRest = 0,       // for AtRestDoIt/GPIL  <<  88     idxAtRest = 0,    // for AtRestDoIt/GPIL
 80   idxAlongStep = 1,    // for AlongStepDoIt/GP <<  89   idxAlongStep = 1,   // for AlongStepDoIt/GPIL
 81   idxPostStep =2,      // for AlongSTepDoIt/GP <<  90   idxPostStep =2    // for AlongSTepDoIt/GPIL
 82   NDoit =3                                     << 
 83 };                                                 91 };
 84                                                    92 
 85 // Enumeration for Ordering Parameter          <<  93 //  enumeration for Ordering Parameter      
 86 //                                             << 
 87 enum G4ProcessVectorOrdering                       94 enum G4ProcessVectorOrdering
 88 {                                                  95 { 
 89   ordInActive = -1,    // ordering parameter t <<  96     ordInActive = -1,     // ordering parameter to indicate InActive DoIt
 90   ordDefault = 1000,   // default ordering par <<  97     ordDefault = INT_MAX/2,   // default ordering parameter
 91   ordLast    = 9999    // ordering parameter t <<  98     ordLast    = INT_MAX    // ordering parameter to indicate the last DoIt
 92 };                                                 99 };
 93                                                   100 
 94 class G4ProcessManager                            101 class G4ProcessManager 
 95 {                                                 102 {
 96   using G4ProcessAttrVector = std::vector<G4Pr << 103  
 97                                                << 
 98   public:                                         104   public: 
                                                   >> 105       // copy constructor
                                                   >> 106       G4ProcessManager(G4ProcessManager &right);
 99                                                   107 
100     G4ProcessManager(const G4ParticleDefinitio << 108   private:
101       //  Constructor                          << 109       // hide default constructor and assignment operator
                                                   >> 110       G4ProcessManager & operator=(G4ProcessManager &right);
                                                   >> 111       G4ProcessManager();
102                                                   112 
103     G4ProcessManager(G4ProcessManager& right); << 
104       // copy constructor                      << 
105                                                   113 
106     G4ProcessManager() = delete;               << 114   public:
107     G4ProcessManager& operator=(const G4Proces << 115  
108       // Default constructor and assignment op << 116       G4ProcessManager(const G4ParticleDefinition* aParticleType);
                                                   >> 117       //  Constructor
109                                                   118 
110     ~G4ProcessManager();                       << 119       ~G4ProcessManager();
111       // Destructor                            << 120       //  Destructor
112                                                   121 
113     G4bool operator==(const G4ProcessManager & << 122       G4int operator==(const G4ProcessManager &right) const;
114     G4bool operator!=(const G4ProcessManager & << 123       G4int operator!=(const G4ProcessManager &right) const;
115                                                   124 
116     inline G4ProcessVector* GetProcessList() c << 125  public: //  with description
117       // Returns the address of the vector of  << 126       G4ProcessVector* GetProcessList() const;
                                                   >> 127       //  Returns the address of the vector of all processes 
118                                                   128 
119     inline G4int GetProcessListLength() const; << 129       G4int  GetProcessListLength() const;
120       // Returns the number of process in the  << 130       //  Returns the number of process in the ProcessVector 
121                                                   131 
122     inline G4int GetProcessIndex(G4VProcess*)  << 132       G4int GetProcessIndex(G4VProcess *) const;
123       // Returns the index of the process in t << 133       //  Returns the index of the process in the process List
124                                                   134 
125     inline G4ProcessVector* GetProcessVector(  << 135       // --------------------------------------
126                                G4ProcessVector << 136 
127                                G4ProcessVector << 137       G4ProcessVector* GetProcessVector( 
128                               ) const;         << 138              G4ProcessVectorDoItIndex idx,
129       // Returns the address of the vector of  << 139              G4ProcessVectorTypeIndex typ = typeGPIL
                                                   >> 140             ) const;
                                                   >> 141       //  Returns the address of the vector of processes 
130                                                   142 
131     inline G4ProcessVector* GetAtRestProcessVe << 143       G4ProcessVector* GetAtRestProcessVector(
132                                G4ProcessVector << 144              G4ProcessVectorTypeIndex typ = typeGPIL
133                               ) const;            145                               ) const; 
134       // Returns the address of the vector of  << 146       //  Returns the address of the vector of processes for
135       //    AtRestGetPhysicalInteractionLength    147       //    AtRestGetPhysicalInteractionLength      idx =0
136       //    AtRestGetPhysicalDoIt                 148       //    AtRestGetPhysicalDoIt                   idx =1
137                                                << 149       G4ProcessVector* GetAlongStepProcessVector(
138     inline G4ProcessVector* GetAlongStepProces << 150              G4ProcessVectorTypeIndex typ = typeGPIL
139                                G4ProcessVector << 
140                               ) const;            151                               ) const;
141       // Returns the address of the vector of  << 152       //  Returns the address of the vector of processes for
142       //    AlongStepGetPhysicalInteractionLen    153       //    AlongStepGetPhysicalInteractionLength      idx =0
143       //    AlongStepGetPhysicalDoIt              154       //    AlongStepGetPhysicalDoIt                   idx =1
144                                                   155 
145     inline G4ProcessVector* GetPostStepProcess << 156       G4ProcessVector* GetPostStepProcessVector(
146                                G4ProcessVector << 157              G4ProcessVectorTypeIndex typ = typeGPIL
147                               ) const;            158                               ) const;
148       // Returns the address of the vector of  << 159       //  Returns the address of the vector of processes for
149       //    PostStepGetPhysicalInteractionLeng    160       //    PostStepGetPhysicalInteractionLength      idx =0
150       //    PostStepGetPhysicalDoIt               161       //    PostStepGetPhysicalDoIt                   idx =1
151                                                   162 
152     G4int GetProcessVectorIndex(               << 163       G4int GetProcessVectorIndex(
153                            G4VProcess* aProces << 
154                            G4ProcessVectorDoIt << 
155                            G4ProcessVectorType << 
156                            ) const;            << 
157     inline G4int GetAtRestIndex(               << 
158                            G4VProcess* aProces    164                            G4VProcess* aProcess,
159                            G4ProcessVectorType << 165          G4ProcessVectorDoItIndex idx,
160                            ) const;            << 166          G4ProcessVectorTypeIndex typ  = typeGPIL
161     inline G4int GetAlongStepIndex(            << 167          ) const;
                                                   >> 168       G4int GetAtRestIndex(
162                            G4VProcess* aProces    169                            G4VProcess* aProcess,
163                            G4ProcessVectorType << 170          G4ProcessVectorTypeIndex typ  = typeGPIL
164                            ) const;            << 171          ) const;
165     inline G4int GetPostStepIndex(             << 172       G4int GetAlongStepIndex(
166                            G4VProcess* aProces    173                            G4VProcess* aProcess,
167                            G4ProcessVectorType << 174          G4ProcessVectorTypeIndex typ  = typeGPIL
168                            ) const;            << 175          ) const;
169       // Returns the index for GPIL/DoIt proce << 176       G4int GetPostStepIndex(
170                                                << 177          G4VProcess* aProcess,
171     G4int AddProcess( G4VProcess* aProcess,    << 178          G4ProcessVectorTypeIndex typ = typeGPIL
172                       G4int ordAtRestDoIt = or << 179          ) const;
173                       G4int ordAlongSteptDoIt  << 180       //  Returns the index for GPIL/DoIt process vector of the process  
174                       G4int ordPostStepDoIt =  << 181 
175       // Adds a process to the process List    << 182       G4int AddProcess(
176       // Return values is the index to the Lis << 183              G4VProcess *aProcess,
177       // indicates that the process has not be << 184              G4int      ordAtRestDoIt = ordInActive,
178       // The first argument is a pointer to th << 185              G4int      ordAlongSteptDoIt = ordInActive,
179       // Successive arguments are ordering par << 186              G4int      ordPostStepDoIt = ordInActive
180       // process vectors. If value is negative << 187             );
181       // not added to the corresponding proces << 188       //  Add a process to the process List
                                                   >> 189       //  return values are index to the List. Negative return value 
                                                   >> 190       //  indicates that the process has not be added due to some errors
                                                   >> 191       //  The first argument is a pointer to process.
                                                   >> 192       //  Following arguments are ordering parameters of the process in 
                                                   >> 193       //  process vectors. If value is negative, the process is
                                                   >> 194       //  not added to the corresponding process vector. 
182                                                   195    
183     ////////////////////////////////////////// << 196       //  following methods are provided for simple processes  
184     // The following methods are provided for  << 197       //   AtRestProcess has only AtRestDoIt
185     //   AtRestProcess has only AtRestDoIt     << 198       //   ContinuousProcess has only AlongStepDoIt
186     //   ContinuousProcess has only AlongStepD << 199       //   DiscreteProcess has only PostStepDoIt
187     //   DiscreteProcess has only PostStepDoIt << 200       //  if ord is not specified, the process is
188     // If the ordering parameter is not specif << 201       //  added at the end of List of processvectors for 
189     // added at the end of List of process vec << 202       //  both DoIt and GetPhysicalInteractionLength 
190     // If a process with same ordering paramet << 203 
191     // this new process will be added just aft << 204       G4int AddRestProcess(G4VProcess *aProcess, G4int ord = ordDefault);
192     // with same ordering parameter (except fo << 205       G4int AddDiscreteProcess(G4VProcess *aProcess, G4int ord = ordDefault);
193     // explicitly) for both DoIt() and GetPhys << 206       G4int AddContinuousProcess(G4VProcess *aProcess, G4int ord = ordDefault);
194     ////////////////////////////////////////// << 207 
195                                                << 208       // Methods for setting ordering parameters
196     inline G4int AddRestProcess(G4VProcess* aP << 209        // Altanative methods for setting ordering parameters 
197     inline G4int AddDiscreteProcess(G4VProcess << 210       //   Note: AddProcess method should precede these methods
198     inline G4int AddContinuousProcess(G4VProce << 211 
199                                                << 212       G4int GetProcessOrdering(
200     ////////////////////////////////////////// << 213              G4VProcess *aProcess,
201     // Alternative methods for setting orderin << 214              G4ProcessVectorDoItIndex idDoIt
202     // Note: AddProcess() method should preced << 215                                );
203     ////////////////////////////////////////// << 216 
204                                                << 217       void SetProcessOrdering(
205     G4int GetProcessOrdering(                  << 218              G4VProcess *aProcess,
206                             G4VProcess* aProce << 219              G4ProcessVectorDoItIndex idDoIt,
207                             G4ProcessVectorDoI << 220              G4int      ordDoIt = ordDefault
208                             );                 << 221                                );
209                                                << 222       // Set ordering parameter for DoIt specified by typeDoIt.
210     void SetProcessOrdering(                   << 223              
211                             G4VProcess* aProce << 224        void SetProcessOrderingToFirst(
212                             G4ProcessVectorDoI << 225              G4VProcess *aProcess,
213                             G4int ordDoIt = or << 226              G4ProcessVectorDoItIndex idDoIt
214                            );                  << 227              );
215       // Set ordering parameter for DoIt() spe << 
216       // If a process with same ordering param << 
217       // this new process will be added just a << 
218       // with same ordering parameter          << 
219       // Note: Ordering parameter will bet set << 
220       //       even if you set ordDoIt = 0     << 
221                                                << 
222     void SetProcessOrderingToFirst(            << 
223                             G4VProcess* aProce << 
224                             G4ProcessVectorDoI << 
225                            );                  << 
226       // Set ordering parameter to the first o    228       // Set ordering parameter to the first of all processes 
227       // for DoIt() specified by idDoIt.       << 229       // for DoIt specified by idDoIt.
228       // Note: If you use this method for two  << 230       //  Note: If you use this method for two processes,
229       //       a process called later will be  << 231       //        a process called later will be first.
230                                                << 232 
231     void SetProcessOrderingToSecond(           << 233       void SetProcessOrderingToLast(
232                             G4VProcess* aProce << 234              G4VProcess *aProcess,
233                             G4ProcessVectorDoI << 235              G4ProcessVectorDoItIndex idDoIt
234                            );                  << 236              );
235       // Set ordering parameter to 1 for DoIt( << 
236       // and the process will be added just af << 
237       // the processes with ordering parameter << 
238       // Note: If you use this method for two  << 
239       //       a process called later will be  << 
240                                                << 
241     void SetProcessOrderingToLast(             << 
242                             G4VProcess* aProce << 
243                             G4ProcessVectorDoI << 
244                            );                  << 
245       // Set ordering parameter to the last of    237       // Set ordering parameter to the last of all processes 
246       // for DoIt() specified by idDoIt.       << 238       // for DoIt specified by idDoIt.
247       // Note: If you use this method for two  << 239       //  Note: If you use this method for two processes,
248       //       a process called later will pre << 240       //        a process called later will be the last one.
249                                                << 241 
250     ////////////////////////////////////////// << 242       G4VProcess*  RemoveProcess(G4VProcess *aProcess);
251                                                << 243       G4VProcess*  RemoveProcess(G4int      index);
252     G4VProcess* RemoveProcess(G4VProcess* aPro << 244       //  Removes a process from the process List.
253     G4VProcess* RemoveProcess(G4int index);    << 245       //  return value is pointer to the removed process.
254       // Removes a process from the process Li << 246       //  (0 value will be returned in case of errors)
255       // Returns pointer to the removed proces << 247 
256       // (nullptr value will be returned in ca << 248       G4VProcess* SetProcessActivation(G4VProcess *aProcess, G4bool fActive);
257                                                << 249       G4VProcess* SetProcessActivation(G4int      index, G4bool fActive);
258     G4VProcess* SetProcessActivation(G4VProces << 250       //  Set activation flag. 
259     G4VProcess* SetProcessActivation(G4int ind << 251       //  return value is pointer to the applied process.
260       // Set activation flag.                  << 252       //  (0 value will be returned in case of errors)
261       // Returns pointer to the applied proces << 253 
262       // (nullptr value will be returned in ca << 254       G4bool GetProcessActivation(G4VProcess *aProcess) const;
263                                                << 255       G4bool GetProcessActivation(G4int      index) const;
264     G4bool GetProcessActivation(G4VProcess* aP << 256       //  Get activation flag. 
265     G4bool GetProcessActivation(G4int index) c << 257 
266       // Get activation flag.                  << 258       G4ParticleDefinition*  GetParticleType() const;
267                                                << 259       // get the particle type 
268     inline G4ParticleDefinition* GetParticleTy << 260       void SetParticleType(const G4ParticleDefinition*);
269       // Get the particle type                 << 261       // set the particle type 
270     inline void SetParticleType(const G4Partic << 262 
271       // Set the particle type                 << 263       void StartTracking();
272                                                << 264       void EndTracking();
273     G4VProcess* GetProcess (const G4String&) c << 265       // these two methods are used by G4TrackingManager 
274       // Get process by process name           << 
275                                                << 
276     void StartTracking(G4Track* aTrack = nullp << 
277     void EndTracking();                        << 
278       // These two methods are used by G4Track << 
279       // in order to inform Start/End of track    266       // in order to inform Start/End of tracking for each track
280       // to the process manager and all physic << 267       // to the process manager and all physics processes 
281                                                << 
282     void DumpInfo();                           << 
283                                                << 
284     inline void SetVerboseLevel(G4int value);  << 
285     inline G4int GetVerboseLevel() const;      << 
286       // Control flag for output message       << 
287       //  0: Silent                            << 
288       //  1: Warning message                   << 
289       //  2: More                              << 
290                                                   268 
291     enum {SizeOfProcVectorArray = 6};          << 
292                                                   269 
                                                   >> 270   public:
                                                   >> 271       enum {SizeOfProcVectorArray = 6};
293   private:                                        272   private:
                                                   >> 273       G4ProcessVector* theProcVector[SizeOfProcVectorArray];
                                                   >> 274       // vector for processes with GetPhysicalInteractionLength/DoIt
294                                                   275 
295     G4int InsertAt(G4int position, G4VProcess* << 276       typedef std::vector<G4ProcessAttribute*> G4ProcessAttrVector; 
296       // Insert process at position in theProc << 277       G4ProcessAttrVector*  theAttrVector;
                                                   >> 278       // vector for process attribute  
                                                   >> 279 
                                                   >> 280   protected: // with description
                                                   >> 281       G4int InsertAt(G4int position, G4VProcess* process, G4int ivec);
                                                   >> 282       // insert process at position in theProcVector[ivec]
297                                                   283 
298     G4int RemoveAt(G4int position, G4VProcess* << 284       G4int RemoveAt(G4int position, G4VProcess* process, G4int ivec);
299       // Remove process at position in theProc << 285       // remove process at position in theProcVector[ivec]
300                                                   286 
301     G4int FindInsertPosition(G4int ord, G4int  << 287       G4int FindInsertPosition(G4int ord, G4int ivec);
302       // Find insert position according to ord << 288       // find insert position according to ordering parameter 
303       // in theProcVector[ivec]                   289       // in theProcVector[ivec]
304                                                   290 
305     inline G4int GetProcessVectorId(G4ProcessV << 291       G4int GetProcessVectorId(G4ProcessVectorDoItIndex idx,
306                              G4ProcessVectorTy << 292              G4ProcessVectorTypeIndex typ  = typeGPIL) const;
307                                                << 293  
308     void CheckOrderingParameters(G4VProcess*)  << 294   private:     
309       // Check consistencies between ordering  << 295       G4ProcessAttribute* GetAttribute(G4int      index) const;
310       // validity of DoIt() of the Process     << 296       G4ProcessAttribute* GetAttribute(G4VProcess *aProcess) const;
311                                                << 297       // get Pointer to ProcessAttribute
312     G4ProcessAttribute* GetAttribute(G4int ind << 298 
313     G4ProcessAttribute* GetAttribute(G4VProces << 299       G4VProcess* ActivateProcess(G4int   index);
314       // Get Pointer to ProcessAttribute       << 300       G4VProcess* InActivateProcess(G4int  index);
315                                                << 301       // Activate/InActivateProcess   Process
316     void  CreateGPILvectors();                 << 
317     void  SetIndexToProcessVector(G4int ivec); << 
318                                                << 
319     G4VProcess* ActivateProcess(G4int index);  << 
320     G4VProcess* InActivateProcess(G4int index) << 
321       // Activate/InActivate process           << 
322                                                   302       
323   private:                                     << 303   private:     
324                                                << 304       const G4ParticleDefinition*   theParticleType;
325     G4ProcessVector* theProcVector[SizeOfProcV << 305       //  particle which has this process manager object     
326       // Vector for processes with GetPhysical << 306 
                                                   >> 307       G4int             numberOfProcesses;
                                                   >> 308       G4ProcessVector*  theProcessList;
                                                   >> 309       // vector for all processes (called as "process List")
                                                   >> 310 
                                                   >> 311  private:
                                                   >> 312       G4bool  duringTracking;
                                                   >> 313       void    CreateGPILvectors();
                                                   >> 314       void    SetIndexToProcessVector(G4int ivec);
                                                   >> 315 
                                                   >> 316  public: // with description
                                                   >> 317    void  DumpInfo();
                                                   >> 318 
                                                   >> 319    void  SetVerboseLevel(G4int value);
                                                   >> 320    G4int GetVerboseLevel() const;
                                                   >> 321    // controle flag for output message
                                                   >> 322    //  0: Silent
                                                   >> 323    //  1: Warning message
                                                   >> 324    //  2: More
327                                                   325 
328     G4ProcessAttrVector* theAttrVector = nullp << 326  protected:
329       // Vector for process attribute          << 327    G4int verboseLevel;
330                                                << 
331     const G4ParticleDefinition* theParticleTyp << 
332       // Particle which has this process manag << 
333                                                << 
334     G4int numberOfProcesses = 0;               << 
335     G4ProcessVector* theProcessList = nullptr; << 
336       // Vector for all processes (called as " << 
337                                                << 
338     G4bool duringTracking = false;             << 
339                                                << 
340     G4bool isSetOrderingFirstInvoked[NDoit];   << 
341     G4bool isSetOrderingLastInvoked[NDoit];    << 
342                                                << 
343     G4int verboseLevel = 1;                    << 
344                                                   328   
345     static G4ThreadLocal G4ProcessManagerMesse << 329  private:
346     static G4ThreadLocal G4int counterOfObject << 330    static G4ProcessManagerMessenger* fProcessManagerMessenger;
                                                   >> 331    static G4int                      counterOfObjects;
347 };                                                332 };
348                                                << 
349 #include "G4ProcessManager.icc"                   333 #include "G4ProcessManager.icc"
350                                                   334 
351 #endif                                            335 #endif
                                                   >> 336 
352                                                   337