19#ifndef BDSCOMPTONENGINE_H
20#define BDSCOMPTONENGINE_H
24#include "G4LorentzVector.hh"
25#include "CLHEP/Units/PhysicalConstants.h"
39 G4LorentzVector InEl_FourVec );
43 void PerformCompton();
44 void SetIncomingPhoton4Vec(G4LorentzVector inGam);
45 inline void SetIncomingElectron4Vec(G4LorentzVector inEl) {itsIncomingEl=inEl;}
47 G4LorentzVector GetScatteredElectron()
const {
return itsScatteredEl;}
48 G4LorentzVector GetScatteredGamma()
const {
return itsScatteredGam;}
51 G4LorentzVector itsScatteredEl;
52 G4LorentzVector itsScatteredGam;
53 G4LorentzVector itsIncomingEl;
54 G4LorentzVector itsIncomingGam;
56 static const G4int ntryMax = 10000000;
59inline void BDSComptonEngine::SetIncomingPhoton4Vec(G4LorentzVector inGam)
61 if(itsIncomingEl.e()<CLHEP::electron_mass_c2)
62 {G4Exception(
"BDSComptonEngine: Invalid Electron Energy",
"-1", FatalException,
"");}
Engine to calculate product of compton scattering process.