Deprecated/UpgradeASCIITests/G4TankSimulatorASCII/G4TankEventAction.cc
Go to the documentation of this file.
1 #include "G4TankSimulator.h"
2 #include "G4TankEventAction.h"
3 #include "G4TankTrackingAction.h"
4 #include "G4TankSteppingAction.h"
5 #include "ParticleCases.h"
6 using namespace G4TankSimulatorASCII;
7 
8 #include <G4Event.hh>
9 #include <G4Timer.hh>
10 
11 #include <fwk/CentralConfig.h>
12 #include <fwk/RunController.h>
13 #include <fwk/VModule.h>
14 #include <fwk/RandomEngineRegistry.h>
15 #include <CLHEP/Random/RandFlat.h>
16 #include <CLHEP/Random/RandPoisson.h>
17 #include <CLHEP/Random/RandExponential.h>
18 using namespace fwk;
19 
20 #include <sevt/PMT.h>
21 #include <sevt/PMTSimData.h>
22 #include <sevt/SEvent.h>
23 #include <sevt/Station.h>
24 #include <sevt/StationSimData.h>
25 using namespace sevt;
26 
27 #include <utl/ErrorLogger.h>
28 #include <utl/Particle.h>
29 #include <utl/Trace.h>
30 #include <utl/PhysicalConstants.h>
31 using namespace utl;
32 
33 #include <iostream>
34 #include <sstream>
35 using namespace std;
36 
37 using CLHEP::RandFlat;
38 using CLHEP::RandPoisson;
39 using CLHEP::RandExponential;
40 
41 
43 
45  fTimer(new G4Timer)
46 {
48  &RandomEngineRegistry::GetInstance().Get(RandomEngineRegistry::eDetector);
49 }
50 
52 {
53  delete fTimer;
54 }
55 
56 void
58 {
59  fgPrimaryId = Evt->GetPrimaryVertex()->GetPrimary()->GetPDGcode();
60  fTimer->Start();
61 
63 
66 
70 
71  for (int i=0;i<27;i++) G4TankTrackingAction::ASCII_Edep_i[i]=0.;
72 
77  for (int idet=0;idet<2;idet++)
78  {
81  }
82 }
83 
84 
85 void
87 {
88 
89  // Reset WCD counters
93 
94  for (int idet=0;idet<2;idet++)
95  {
96  if ( G4TankTrackingAction::MichelElectronNPE[idet]==0 ) continue;
98  }
99 
100  fTimer->Stop();
101 
102 }

, generated on Tue Sep 26 2023.