Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 09:21:50

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 /*
0027  * =============================================================================
0028  *
0029  *       Filename:  CexmcTrackPointsDigitizer.hh
0030  *
0031  *    Description:  track points collector
0032  *
0033  *        Version:  1.0
0034  *        Created:  24.11.2009 16:09:59
0035  *       Revision:  none
0036  *       Compiler:  gcc
0037  *
0038  *         Author:  Alexey Radkov (), 
0039  *        Company:  PNPI
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