Geant4 Cross Reference |
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 // G4ProcessAttribute << 27 // 23 // 28 // Class description: << 24 // $Id: G4ProcessAttribute.hh,v 1.4 2001/07/11 10:08:17 gunter Exp $ >> 25 // GEANT4 tag $Name: geant4-06-00 $ 29 // 26 // 30 // This class is used exclusively by G4Process << 27 // >> 28 // ------------------------------------------------------------ >> 29 // GEANT 4 class header file >> 30 // >> 31 // History: first implementation, based on object model of >> 32 // 2nd December 1997, H.Kurashige >> 33 // ---------------- G4ProcessAttribute ----------------- >> 34 // Class Description >> 35 // This class is used by G4ProcessManager ONLY for booking !!! >> 36 // >> 37 // History: >> 38 // adds copy constructor 27 June 1998 H.Kurashige >> 39 // ------------------------------------------------------------ 31 40 32 // Author: H.Kurashige, 2 December 1997 << 41 #ifndef G4ProcessAttribute_h 33 // ------------------------------------------- << 42 #define G4ProcessAttribute_h 1 34 #ifndef G4ProcessAttribute_hh << 35 #define G4ProcessAttribute_hh 1 << 36 43 37 #include "globals.hh" 44 #include "globals.hh" 38 #include "G4ios.hh" 45 #include "G4ios.hh" 39 46 >> 47 #include "G4VProcess.hh" 40 #include "G4ProcessManager.hh" 48 #include "G4ProcessManager.hh" 41 49 42 class G4VProcess; << 43 << 44 class G4ProcessAttribute 50 class G4ProcessAttribute 45 { 51 { >> 52 // this class is used by G4ProcessManager ONLY for booking !!! 46 friend class G4ProcessManager; 53 friend class G4ProcessManager; 47 << 48 public: 54 public: 49 << 50 G4ProcessAttribute(); 55 G4ProcessAttribute(); 51 G4ProcessAttribute(const G4VProcess* aProc 56 G4ProcessAttribute(const G4VProcess* aProcess); 52 G4ProcessAttribute(const G4ProcessAttribut << 57 G4ProcessAttribute(const G4ProcessAttribute &right); 53 // Constructors << 58 // Constructors 54 59 55 ~G4ProcessAttribute(); 60 ~G4ProcessAttribute(); 56 // Destructor << 61 // Destructor 57 62 58 G4ProcessAttribute& operator=(const G4Proc << 63 G4ProcessAttribute & operator=(G4ProcessAttribute &right); 59 // Assignment operator << 64 // Assignment operator 60 65 61 inline G4bool operator==(const G4ProcessAt << 66 G4int operator==(const G4ProcessAttribute &right) const; 62 inline G4bool operator!=(const G4ProcessAt << 67 G4int operator!=(const G4ProcessAttribute &right) const; 63 // Equality operators << 68 // equal / unequal operator 64 69 >> 70 65 protected: 71 protected: >> 72 G4VProcess* pProcess; >> 73 // pointer to G4VProcess 66 74 67 G4VProcess* pProcess = nullptr; << 75 G4bool isActive; 68 // Pointer to G4VProcess << 76 // flag for activation/inactivation 69 << 70 G4bool isActive = true; << 71 // Flag for activation/inactivation << 72 77 73 G4int idxProcessList = -1; << 78 G4int idxProcessList; 74 // Index to a ProcessVector for theProce << 79 // index to a ProcessVector for theProcessList and 75 80 76 G4int idxProcVector[G4ProcessManager::Size << 81 G4int idxProcVector[G4ProcessManager::SizeOfProcVectorArray]; 77 // Index to ProcessVectors for Doit() an << 82 // index to ProcessVectors for "Doit"s and "GetPhysicalInteractionLength"s 78 // methods. A value of -1 means "not app << 83 // -1 : not applicable 79 84 80 G4int ordProcVector[G4ProcessManager::Size << 85 G4int ordProcVector[G4ProcessManager::SizeOfProcVectorArray]; 81 // Ordering parameter << 86 // ordering parameter 82 }; 87 }; 83 88 84 // ------------------------ << 89 inline 85 // Inline methods << 90 G4ProcessAttribute::G4ProcessAttribute(const G4VProcess* aProcess): 86 // ------------------------ << 91 pProcess((G4VProcess*)aProcess), >> 92 isActive(true) >> 93 { >> 94 idxProcessList = -1; >> 95 } 87 96 88 inline 97 inline 89 G4bool G4ProcessAttribute::operator==(const G4 << 98 G4int G4ProcessAttribute::operator==(const G4ProcessAttribute &right) const 90 { 99 { 91 return this->pProcess == right.pProcess; << 100 return this->pProcess == right.pProcess; 92 } 101 } 93 102 94 inline 103 inline 95 G4bool G4ProcessAttribute::operator!=(const G4 << 104 G4int G4ProcessAttribute::operator!=(const G4ProcessAttribute &right) const 96 { 105 { 97 return this->pProcess != right.pProcess; << 106 return this->pProcess != right.pProcess; 98 } 107 } 99 108 100 #endif 109 #endif >> 110 >> 111 >> 112 >> 113 >> 114 101 115