CMS 3D CMS Logo

DummyChargeFlipProcess.h
Go to the documentation of this file.
1 #ifndef SimG4Core_CustomPhysics_DummyChargeFlipProcess_h
2 #define SimG4Core_CustomPhysics_DummyChargeFlipProcess_h 1
3 
4 #include "globals.hh"
5 #include "G4HadronicProcess.hh"
6 #include "G4CrossSectionDataStore.hh"
7 #include "G4HadronElasticDataSet.hh"
8 #include "G4Element.hh"
9 #include "G4ElementVector.hh"
10 #include "G4VDiscreteProcess.hh"
11 #include "G4LightMedia.hh"
12 #include "G4Step.hh"
13 #include "G4TrackStatus.hh"
14 
15 #include <iostream>
16 
17 class DummyChargeFlipProcess : public G4HadronicProcess {
18 public:
19  DummyChargeFlipProcess(const G4String& processName = "Dummy");
20 
21  ~DummyChargeFlipProcess() override;
22 
23  G4VParticleChange* PostStepDoIt(const G4Track& aTrack, const G4Step& aStep) override;
24 
25  G4bool IsApplicable(const G4ParticleDefinition& aParticleType) override;
26 
27  void BuildPhysicsTable(const G4ParticleDefinition& aParticleType) override;
28 
29  void DumpPhysicsTable(const G4ParticleDefinition& aParticleType);
30 
31 private:
32  G4double GetMicroscopicCrossSection(const G4DynamicParticle* aParticle, const G4Element* anElement, G4double aTemp);
33 };
34 #endif
void DumpPhysicsTable(const G4ParticleDefinition &aParticleType)
G4VParticleChange * PostStepDoIt(const G4Track &aTrack, const G4Step &aStep) override
G4double GetMicroscopicCrossSection(const G4DynamicParticle *aParticle, const G4Element *anElement, G4double aTemp)
void BuildPhysicsTable(const G4ParticleDefinition &aParticleType) override
DummyChargeFlipProcess(const G4String &processName="Dummy")
G4bool IsApplicable(const G4ParticleDefinition &aParticleType) override