Geant4 Cross Reference |
1 // 1 // 2 // ******************************************* 2 // ******************************************************************** 3 // * License and Disclaimer 3 // * License and Disclaimer * 4 // * 4 // * * 5 // * The Geant4 software is copyright of th 5 // * The Geant4 software is copyright of the Copyright Holders of * 6 // * the Geant4 Collaboration. It is provided 6 // * the Geant4 Collaboration. It is provided under the terms and * 7 // * conditions of the Geant4 Software License 7 // * conditions of the Geant4 Software License, included in the file * 8 // * LICENSE and available at http://cern.ch/ 8 // * LICENSE and available at http://cern.ch/geant4/license . These * 9 // * include a list of copyright holders. 9 // * include a list of copyright holders. * 10 // * 10 // * * 11 // * Neither the authors of this software syst 11 // * Neither the authors of this software system, nor their employing * 12 // * institutes,nor the agencies providing fin 12 // * institutes,nor the agencies providing financial support for this * 13 // * work make any representation or warran 13 // * work make any representation or warranty, express or implied, * 14 // * regarding this software system or assum 14 // * regarding this software system or assume any liability for its * 15 // * use. Please see the license in the file 15 // * use. Please see the license in the file LICENSE and URL above * 16 // * for the full disclaimer and the limitatio 16 // * for the full disclaimer and the limitation of liability. * 17 // * 17 // * * 18 // * This code implementation is the result 18 // * This code implementation is the result of the scientific and * 19 // * technical work of the GEANT4 collaboratio 19 // * technical work of the GEANT4 collaboration. * 20 // * By using, copying, modifying or distri 20 // * By using, copying, modifying or distributing the software (or * 21 // * any work based on the software) you ag 21 // * any work based on the software) you agree to acknowledge its * 22 // * use in resulting scientific publicati 22 // * use in resulting scientific publications, and indicate your * 23 // * acceptance of all terms of the Geant4 Sof 23 // * acceptance of all terms of the Geant4 Software license. * 24 // ******************************************* 24 // ******************************************************************** 25 // 25 // 26 /* 26 /* 27 * =========================================== 27 * ============================================================================= 28 * 28 * 29 * Filename: CexmcRun.hh 29 * Filename: CexmcRun.hh 30 * 30 * 31 * Description: run data (acceptances etc. 31 * Description: run data (acceptances etc.) 32 * 32 * 33 * Version: 1.0 33 * Version: 1.0 34 * Created: 19.12.2009 23:52:51 34 * Created: 19.12.2009 23:52:51 35 * Revision: none 35 * Revision: none 36 * Compiler: gcc 36 * Compiler: gcc 37 * 37 * 38 * Author: Alexey Radkov (), 38 * Author: Alexey Radkov (), 39 * Company: PNPI 39 * Company: PNPI 40 * 40 * 41 * =========================================== 41 * ============================================================================= 42 */ 42 */ 43 43 44 #ifndef CEXMC_RUN_HH 44 #ifndef CEXMC_RUN_HH 45 #define CEXMC_RUN_HH 45 #define CEXMC_RUN_HH 46 46 47 #include <map> 47 #include <map> 48 #include <G4Run.hh> 48 #include <G4Run.hh> 49 49 50 50 51 typedef std::map< G4int, G4int > Ce 51 typedef std::map< G4int, G4int > CexmcNmbOfHitsInRanges; 52 52 53 typedef CexmcNmbOfHitsInRanges::value_type Ce 53 typedef CexmcNmbOfHitsInRanges::value_type CexmcNmbOfHitsInRangesData; 54 54 55 55 56 class CexmcRun : public G4Run 56 class CexmcRun : public G4Run 57 { 57 { 58 public: 58 public: 59 CexmcRun(); 59 CexmcRun(); 60 60 61 public: 61 public: 62 void IncrementNmbOfHitsSampled( G4int 62 void IncrementNmbOfHitsSampled( G4int index ); 63 63 64 void IncrementNmbOfHitsSampledFull( G 64 void IncrementNmbOfHitsSampledFull( G4int index ); 65 65 66 void IncrementNmbOfHitsTriggeredRealR 66 void IncrementNmbOfHitsTriggeredRealRange( G4int index ); 67 67 68 void IncrementNmbOfHitsTriggeredRecRa 68 void IncrementNmbOfHitsTriggeredRecRange( G4int index ); 69 69 70 void IncrementNmbOfOrphanHits( G4int 70 void IncrementNmbOfOrphanHits( G4int index ); 71 71 72 void IncrementNmbOfFalseHitsTriggered 72 void IncrementNmbOfFalseHitsTriggeredEDT( void ); 73 73 74 void IncrementNmbOfFalseHitsTriggered 74 void IncrementNmbOfFalseHitsTriggeredRec( void ); 75 75 76 void IncrementNmbOfSavedEvents( void 76 void IncrementNmbOfSavedEvents( void ); 77 77 78 void IncrementNmbOfSavedFastEvents( v 78 void IncrementNmbOfSavedFastEvents( void ); 79 79 80 public: 80 public: 81 const CexmcNmbOfHitsInRanges & GetNmb 81 const CexmcNmbOfHitsInRanges & GetNmbOfHitsSampled( void ) const; 82 82 83 const CexmcNmbOfHitsInRanges & GetNmb 83 const CexmcNmbOfHitsInRanges & GetNmbOfHitsSampledFull( void ) const; 84 84 85 const CexmcNmbOfHitsInRanges & GetNmb 85 const CexmcNmbOfHitsInRanges & GetNmbOfHitsTriggeredRealRange( void ) 86 86 const; 87 87 88 const CexmcNmbOfHitsInRanges & GetNmb 88 const CexmcNmbOfHitsInRanges & GetNmbOfHitsTriggeredRecRange( void ) 89 89 const; 90 90 91 const CexmcNmbOfHitsInRanges & GetNmb 91 const CexmcNmbOfHitsInRanges & GetNmbOfOrphanHits( void ) const; 92 92 93 G4int GetNmbOfFalseHitsTriggeredEDT( 93 G4int GetNmbOfFalseHitsTriggeredEDT( void ) const; 94 94 95 G4int GetNmbOfFalseHitsTriggeredRec( 95 G4int GetNmbOfFalseHitsTriggeredRec( void ) const; 96 96 97 G4int GetNmbOfSavedEvents( void ) con 97 G4int GetNmbOfSavedEvents( void ) const; 98 98 99 G4int GetNmbOfSavedFastEvents( void ) 99 G4int GetNmbOfSavedFastEvents( void ) const; 100 100 101 private: 101 private: 102 CexmcNmbOfHitsInRanges nmbOfHitsSampl 102 CexmcNmbOfHitsInRanges nmbOfHitsSampled; 103 103 104 CexmcNmbOfHitsInRanges nmbOfHitsSampl 104 CexmcNmbOfHitsInRanges nmbOfHitsSampledFull; 105 105 106 CexmcNmbOfHitsInRanges nmbOfHitsTrigg 106 CexmcNmbOfHitsInRanges nmbOfHitsTriggeredRealRange; 107 107 108 CexmcNmbOfHitsInRanges nmbOfHitsTrigg 108 CexmcNmbOfHitsInRanges nmbOfHitsTriggeredRecRange; 109 109 110 CexmcNmbOfHitsInRanges nmbOfOrphanHit 110 CexmcNmbOfHitsInRanges nmbOfOrphanHits; 111 111 112 G4int nmbOfFalseHits 112 G4int nmbOfFalseHitsTriggeredEDT; 113 113 114 G4int nmbOfFalseHits 114 G4int nmbOfFalseHitsTriggeredRec; 115 115 116 G4int nmbOfSavedEven 116 G4int nmbOfSavedEvents; 117 117 118 G4int nmbOfSavedFast 118 G4int nmbOfSavedFastEvents; 119 }; 119 }; 120 120 121 121 122 inline const CexmcNmbOfHitsInRanges & 122 inline const CexmcNmbOfHitsInRanges & 123 CexmcRun::GetNmbOf 123 CexmcRun::GetNmbOfHitsSampled( void ) const 124 { 124 { 125 return nmbOfHitsSampled; 125 return nmbOfHitsSampled; 126 } 126 } 127 127 128 128 129 inline const CexmcNmbOfHitsInRanges & 129 inline const CexmcNmbOfHitsInRanges & 130 CexmcRun::GetNmbOf 130 CexmcRun::GetNmbOfHitsSampledFull( void ) const 131 { 131 { 132 return nmbOfHitsSampledFull; 132 return nmbOfHitsSampledFull; 133 } 133 } 134 134 135 135 136 inline const CexmcNmbOfHitsInRanges & 136 inline const CexmcNmbOfHitsInRanges & 137 CexmcRun::GetNmbOfHits 137 CexmcRun::GetNmbOfHitsTriggeredRealRange( void ) const 138 { 138 { 139 return nmbOfHitsTriggeredRealRange; 139 return nmbOfHitsTriggeredRealRange; 140 } 140 } 141 141 142 142 143 inline const CexmcNmbOfHitsInRanges & 143 inline const CexmcNmbOfHitsInRanges & 144 CexmcRun::GetNmbOfHits 144 CexmcRun::GetNmbOfHitsTriggeredRecRange( void ) const 145 { 145 { 146 return nmbOfHitsTriggeredRecRange; 146 return nmbOfHitsTriggeredRecRange; 147 } 147 } 148 148 149 149 150 inline const CexmcNmbOfHitsInRanges & 150 inline const CexmcNmbOfHitsInRanges & 151 CexmcRun::GetNmbOf 151 CexmcRun::GetNmbOfOrphanHits( void ) const 152 { 152 { 153 return nmbOfOrphanHits; 153 return nmbOfOrphanHits; 154 } 154 } 155 155 156 156 157 inline G4int CexmcRun::GetNmbOfFalseHitsTrigg 157 inline G4int CexmcRun::GetNmbOfFalseHitsTriggeredEDT( void ) const 158 { 158 { 159 return nmbOfFalseHitsTriggeredEDT; 159 return nmbOfFalseHitsTriggeredEDT; 160 } 160 } 161 161 162 162 163 inline G4int CexmcRun::GetNmbOfFalseHitsTrigg 163 inline G4int CexmcRun::GetNmbOfFalseHitsTriggeredRec( void ) const 164 { 164 { 165 return nmbOfFalseHitsTriggeredRec; 165 return nmbOfFalseHitsTriggeredRec; 166 } 166 } 167 167 168 168 169 inline G4int CexmcRun::GetNmbOfSavedEvents( v 169 inline G4int CexmcRun::GetNmbOfSavedEvents( void ) const 170 { 170 { 171 return nmbOfSavedEvents; 171 return nmbOfSavedEvents; 172 } 172 } 173 173 174 174 175 inline G4int CexmcRun::GetNmbOfSavedFastEvent 175 inline G4int CexmcRun::GetNmbOfSavedFastEvents( void ) const 176 { 176 { 177 return nmbOfSavedFastEvents; 177 return nmbOfSavedFastEvents; 178 } 178 } 179 179 180 180 181 #endif 181 #endif 182 182 183 183