File indexing completed on 2025-01-31 09:21:50
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017
0018
0019
0020
0021
0022
0023
0024
0025
0026
0027
0028
0029
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044 #ifndef CEXMC_RUN_HH
0045 #define CEXMC_RUN_HH
0046
0047 #include <map>
0048 #include <G4Run.hh>
0049
0050
0051 typedef std::map< G4int, G4int > CexmcNmbOfHitsInRanges;
0052
0053 typedef CexmcNmbOfHitsInRanges::value_type CexmcNmbOfHitsInRangesData;
0054
0055
0056 class CexmcRun : public G4Run
0057 {
0058 public:
0059 CexmcRun();
0060
0061 public:
0062 void IncrementNmbOfHitsSampled( G4int index );
0063
0064 void IncrementNmbOfHitsSampledFull( G4int index );
0065
0066 void IncrementNmbOfHitsTriggeredRealRange( G4int index );
0067
0068 void IncrementNmbOfHitsTriggeredRecRange( G4int index );
0069
0070 void IncrementNmbOfOrphanHits( G4int index );
0071
0072 void IncrementNmbOfFalseHitsTriggeredEDT( void );
0073
0074 void IncrementNmbOfFalseHitsTriggeredRec( void );
0075
0076 void IncrementNmbOfSavedEvents( void );
0077
0078 void IncrementNmbOfSavedFastEvents( void );
0079
0080 public:
0081 const CexmcNmbOfHitsInRanges & GetNmbOfHitsSampled( void ) const;
0082
0083 const CexmcNmbOfHitsInRanges & GetNmbOfHitsSampledFull( void ) const;
0084
0085 const CexmcNmbOfHitsInRanges & GetNmbOfHitsTriggeredRealRange( void )
0086 const;
0087
0088 const CexmcNmbOfHitsInRanges & GetNmbOfHitsTriggeredRecRange( void )
0089 const;
0090
0091 const CexmcNmbOfHitsInRanges & GetNmbOfOrphanHits( void ) const;
0092
0093 G4int GetNmbOfFalseHitsTriggeredEDT( void ) const;
0094
0095 G4int GetNmbOfFalseHitsTriggeredRec( void ) const;
0096
0097 G4int GetNmbOfSavedEvents( void ) const;
0098
0099 G4int GetNmbOfSavedFastEvents( void ) const;
0100
0101 private:
0102 CexmcNmbOfHitsInRanges nmbOfHitsSampled;
0103
0104 CexmcNmbOfHitsInRanges nmbOfHitsSampledFull;
0105
0106 CexmcNmbOfHitsInRanges nmbOfHitsTriggeredRealRange;
0107
0108 CexmcNmbOfHitsInRanges nmbOfHitsTriggeredRecRange;
0109
0110 CexmcNmbOfHitsInRanges nmbOfOrphanHits;
0111
0112 G4int nmbOfFalseHitsTriggeredEDT;
0113
0114 G4int nmbOfFalseHitsTriggeredRec;
0115
0116 G4int nmbOfSavedEvents;
0117
0118 G4int nmbOfSavedFastEvents;
0119 };
0120
0121
0122 inline const CexmcNmbOfHitsInRanges &
0123 CexmcRun::GetNmbOfHitsSampled( void ) const
0124 {
0125 return nmbOfHitsSampled;
0126 }
0127
0128
0129 inline const CexmcNmbOfHitsInRanges &
0130 CexmcRun::GetNmbOfHitsSampledFull( void ) const
0131 {
0132 return nmbOfHitsSampledFull;
0133 }
0134
0135
0136 inline const CexmcNmbOfHitsInRanges &
0137 CexmcRun::GetNmbOfHitsTriggeredRealRange( void ) const
0138 {
0139 return nmbOfHitsTriggeredRealRange;
0140 }
0141
0142
0143 inline const CexmcNmbOfHitsInRanges &
0144 CexmcRun::GetNmbOfHitsTriggeredRecRange( void ) const
0145 {
0146 return nmbOfHitsTriggeredRecRange;
0147 }
0148
0149
0150 inline const CexmcNmbOfHitsInRanges &
0151 CexmcRun::GetNmbOfOrphanHits( void ) const
0152 {
0153 return nmbOfOrphanHits;
0154 }
0155
0156
0157 inline G4int CexmcRun::GetNmbOfFalseHitsTriggeredEDT( void ) const
0158 {
0159 return nmbOfFalseHitsTriggeredEDT;
0160 }
0161
0162
0163 inline G4int CexmcRun::GetNmbOfFalseHitsTriggeredRec( void ) const
0164 {
0165 return nmbOfFalseHitsTriggeredRec;
0166 }
0167
0168
0169 inline G4int CexmcRun::GetNmbOfSavedEvents( void ) const
0170 {
0171 return nmbOfSavedEvents;
0172 }
0173
0174
0175 inline G4int CexmcRun::GetNmbOfSavedFastEvents( void ) const
0176 {
0177 return nmbOfSavedFastEvents;
0178 }
0179
0180
0181 #endif
0182