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:  CexmcRun.hh
0030  *
0031  *    Description:  run data (acceptances etc.)
0032  *
0033  *        Version:  1.0
0034  *        Created:  19.12.2009 23:52:51
0035  *       Revision:  none
0036  *       Compiler:  gcc
0037  *
0038  *         Author:  Alexey Radkov (), 
0039  *        Company:  PNPI
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