ATLAS Offline Software
DummyEquation.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef DUMMYEQUATION_H
6 #define DUMMYEQUATION_H
7 
8 #include "G4EquationOfMotion.hh"
9 #include "G4UniformMagField.hh"
10 #include "G4Version.hh"
11 
12 #include <memory>
13 
14 class DummyEquation : public G4EquationOfMotion {
15 public:
16  DummyEquation();
17  virtual ~DummyEquation() {}
18  virtual void EvaluateRhsGivenB(const G4double[], const G4double[3], G4double[]) const {}
19 #if G4VERSION_NUMBER > 1009
20  virtual void SetChargeMomentumMass(G4ChargeState, G4double, G4double) {}
21 #else
22  virtual void SetChargeMomentumMass(G4double, G4double, G4double) {}
23 #endif
24 private:
25  std::unique_ptr<G4UniformMagField> m_dummyField;
26 };
27 
28 #endif
DummyEquation::m_dummyField
std::unique_ptr< G4UniformMagField > m_dummyField
Definition: DummyEquation.h:25
DummyEquation::EvaluateRhsGivenB
virtual void EvaluateRhsGivenB(const G4double[], const G4double[3], G4double[]) const
Definition: DummyEquation.h:18
DummyEquation
Definition: DummyEquation.h:14
DummyEquation::SetChargeMomentumMass
virtual void SetChargeMomentumMass(G4double, G4double, G4double)
Definition: DummyEquation.h:22
DummyEquation::DummyEquation
DummyEquation()
Definition: DummyEquation.cxx:7
DummyEquation::~DummyEquation
virtual ~DummyEquation()
Definition: DummyEquation.h:17