53 lines
1.5 KiB
C++
53 lines
1.5 KiB
C++
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
// Muonium "Scattering"
|
|
// Id : sr1MuScatter.hh, v 1.4
|
|
// Author: Taofiq PARAISO, T. Shiroka
|
|
// Date : 2007-12
|
|
// Notes : Simplified model for Mu scattering. Spin effects have been excluded.
|
|
//$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
|
|
|
|
/*!
|
|
* sr1MuScatter class defines the Muonium scattering process. It implements a very
|
|
* basic model which assumes Muonium looses its electron as soon as it enters any
|
|
* material (except for vacuum and CFoil). The class has only a PostStepDoIt method.
|
|
* The in-flight Muonium spin precession has been supressed. */
|
|
|
|
#ifndef sr1MuScatter_h
|
|
#define sr1MuScatter_h 1
|
|
|
|
#include "G4VDiscreteProcess.hh"
|
|
|
|
class sr1MuScatter : public G4VDiscreteProcess
|
|
{
|
|
public:
|
|
sr1MuScatter(const G4String& name="MuScatt", // process description
|
|
G4ProcessType aType = fGeneral);
|
|
|
|
~sr1MuScatter();
|
|
|
|
//! \mm The actions are taken at the end of the step.
|
|
G4VParticleChange* PostStepDoIt(const G4Track&,
|
|
const G4Step&);
|
|
|
|
G4double GetMeanFreePath(const G4Track& aTrack,
|
|
G4double previousStepSize,
|
|
G4ForceCondition* condition);
|
|
|
|
//! The condition for applying the process.
|
|
G4bool CheckCondition(const G4Step& aStep);
|
|
|
|
|
|
G4bool condition;
|
|
G4double itime, gtime, ftime,deltatime;
|
|
G4String p_name;
|
|
G4DynamicParticle *DP;
|
|
G4ParticleChange fParticleChange;
|
|
|
|
void PrepareSecondary(const G4Track&);
|
|
G4Track* aSecondary;
|
|
|
|
void InitializeSecondaries(const G4Track&);
|
|
};
|
|
|
|
#endif
|