Back to home page

EIC code displayed by LXR

 
 

    


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

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