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_TRACK_POINTS_DIGITIZER_HH
0045 #define CEXMC_TRACK_POINTS_DIGITIZER_HH
0046
0047 #include <G4VDigitizerModule.hh>
0048 #include "CexmcTrackPointInfo.hh"
0049 #include "CexmcSetup.hh"
0050
0051 class G4String;
0052
0053
0054 class CexmcTrackPointsDigitizer : public G4VDigitizerModule
0055 {
0056 public:
0057 explicit CexmcTrackPointsDigitizer( const G4String & name );
0058
0059 public:
0060 void Digitize( void );
0061
0062 public:
0063 const CexmcTrackPointInfo & GetMonitorTP( void ) const;
0064
0065 const CexmcTrackPointInfo & GetTargetTPBeamParticle( void ) const;
0066
0067 const CexmcTrackPointInfo & GetTargetTPOutputParticle( void ) const;
0068
0069 const CexmcTrackPointInfo & GetTargetTPNucleusParticle( void ) const;
0070
0071 const CexmcTrackPointInfo &
0072 GetTargetTPOutputParticleDecayProductParticle(
0073 G4int index ) const;
0074
0075 const CexmcTrackPointInfo & GetVetoCounterTPLeft( void ) const;
0076
0077 const CexmcTrackPointInfo & GetVetoCounterTPRight( void ) const;
0078
0079 const CexmcTrackPointInfo & GetCalorimeterTPLeft( void ) const;
0080
0081 const CexmcTrackPointInfo & GetCalorimeterTPRight( void ) const;
0082
0083 public:
0084 G4bool HasTriggered( void ) const;
0085
0086 private:
0087 void InitializeData( void );
0088
0089 private:
0090 CexmcTrackPointInfo monitorTP;
0091
0092 CexmcTrackPointInfo targetTPBeamParticle;
0093
0094 CexmcTrackPointInfo targetTPOutputParticle;
0095
0096 CexmcTrackPointInfo targetTPNucleusParticle;
0097
0098 CexmcTrackPointInfo targetTPOutputParticleDecayProductParticle[ 2 ];
0099
0100 CexmcTrackPointInfo vetoCounterTPLeft;
0101
0102 CexmcTrackPointInfo vetoCounterTPRight;
0103
0104 CexmcTrackPointInfo calorimeterTPLeft;
0105
0106 CexmcTrackPointInfo calorimeterTPRight;
0107
0108 G4bool hasTriggered;
0109
0110 private:
0111 CexmcSetup::CalorimeterGeometryData calorimeterGeometry;
0112 };
0113
0114
0115 inline const CexmcTrackPointInfo &
0116 CexmcTrackPointsDigitizer::GetMonitorTP( void ) const
0117 {
0118 return monitorTP;
0119 }
0120
0121
0122 inline const CexmcTrackPointInfo &
0123 CexmcTrackPointsDigitizer::GetTargetTPBeamParticle( void ) const
0124 {
0125 return targetTPBeamParticle;
0126 }
0127
0128
0129 inline const CexmcTrackPointInfo &
0130 CexmcTrackPointsDigitizer::GetTargetTPOutputParticle( void ) const
0131 {
0132 return targetTPOutputParticle;
0133 }
0134
0135
0136 inline const CexmcTrackPointInfo &
0137 CexmcTrackPointsDigitizer::GetTargetTPNucleusParticle( void ) const
0138 {
0139 return targetTPNucleusParticle;
0140 }
0141
0142
0143 inline const CexmcTrackPointInfo &
0144 CexmcTrackPointsDigitizer::GetTargetTPOutputParticleDecayProductParticle(
0145 G4int index ) const
0146 {
0147 if ( index == 1 )
0148 return targetTPOutputParticleDecayProductParticle[ 1 ];
0149
0150 return targetTPOutputParticleDecayProductParticle[ 0 ];
0151 }
0152
0153
0154 inline const CexmcTrackPointInfo &
0155 CexmcTrackPointsDigitizer::GetVetoCounterTPLeft( void ) const
0156 {
0157 return vetoCounterTPLeft;
0158 }
0159
0160
0161 inline const CexmcTrackPointInfo &
0162 CexmcTrackPointsDigitizer::GetVetoCounterTPRight( void ) const
0163 {
0164 return vetoCounterTPRight;
0165 }
0166
0167
0168 inline const CexmcTrackPointInfo &
0169 CexmcTrackPointsDigitizer::GetCalorimeterTPLeft( void ) const
0170 {
0171 return calorimeterTPLeft;
0172 }
0173
0174
0175 inline const CexmcTrackPointInfo &
0176 CexmcTrackPointsDigitizer::GetCalorimeterTPRight( void ) const
0177 {
0178 return calorimeterTPRight;
0179 }
0180
0181
0182 inline G4bool CexmcTrackPointsDigitizer::HasTriggered( void ) const
0183 {
0184 return hasTriggered;
0185 }
0186
0187
0188 #endif
0189