File indexing completed on 2025-01-31 09:21:53
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 #include "CexmcRun.hh"
0045
0046
0047 CexmcRun::CexmcRun() : nmbOfFalseHitsTriggeredEDT( 0 ),
0048 nmbOfFalseHitsTriggeredRec( 0 ), nmbOfSavedEvents( 0 ),
0049 nmbOfSavedFastEvents( 0 )
0050 {
0051 }
0052
0053
0054 void CexmcRun::IncrementNmbOfHitsSampled( G4int index )
0055 {
0056 CexmcNmbOfHitsInRanges::iterator found(
0057 nmbOfHitsSampled.find( index ) );
0058 if ( found == nmbOfHitsSampled.end() )
0059 nmbOfHitsSampled.insert( CexmcNmbOfHitsInRangesData( index, 1 ) );
0060 else
0061 ++found->second;
0062 }
0063
0064
0065 void CexmcRun::IncrementNmbOfHitsSampledFull( G4int index )
0066 {
0067 CexmcNmbOfHitsInRanges::iterator found(
0068 nmbOfHitsSampledFull.find( index ) );
0069 if ( found == nmbOfHitsSampledFull.end() )
0070 nmbOfHitsSampledFull.insert( CexmcNmbOfHitsInRangesData( index, 1 ) );
0071 else
0072 ++found->second;
0073 }
0074
0075
0076 void CexmcRun::IncrementNmbOfHitsTriggeredRealRange( G4int index )
0077 {
0078 CexmcNmbOfHitsInRanges::iterator found(
0079 nmbOfHitsTriggeredRealRange.find( index ) );
0080 if ( found == nmbOfHitsTriggeredRealRange.end() )
0081 nmbOfHitsTriggeredRealRange.insert(
0082 CexmcNmbOfHitsInRangesData( index, 1 ) );
0083 else
0084 ++found->second;
0085 }
0086
0087
0088 void CexmcRun::IncrementNmbOfHitsTriggeredRecRange( G4int index )
0089 {
0090 CexmcNmbOfHitsInRanges::iterator found(
0091 nmbOfHitsTriggeredRecRange.find( index ) );
0092 if ( found == nmbOfHitsTriggeredRecRange.end() )
0093 nmbOfHitsTriggeredRecRange.insert(
0094 CexmcNmbOfHitsInRangesData( index, 1 ) );
0095 else
0096 ++found->second;
0097 }
0098
0099
0100 void CexmcRun::IncrementNmbOfOrphanHits( G4int index )
0101 {
0102 CexmcNmbOfHitsInRanges::iterator found(
0103 nmbOfOrphanHits.find( index ) );
0104 if ( found == nmbOfOrphanHits.end() )
0105 nmbOfOrphanHits.insert( CexmcNmbOfHitsInRangesData( index, 1 ) );
0106 else
0107 ++found->second;
0108 }
0109
0110
0111 void CexmcRun::IncrementNmbOfFalseHitsTriggeredEDT( void )
0112 {
0113 ++nmbOfFalseHitsTriggeredEDT;
0114 }
0115
0116
0117 void CexmcRun::IncrementNmbOfFalseHitsTriggeredRec( void )
0118 {
0119 ++nmbOfFalseHitsTriggeredRec;
0120 }
0121
0122
0123 void CexmcRun::IncrementNmbOfSavedEvents( void )
0124 {
0125 ++nmbOfSavedEvents;
0126 }
0127
0128
0129 void CexmcRun::IncrementNmbOfSavedFastEvents( void )
0130 {
0131 ++nmbOfSavedFastEvents;
0132 }
0133