// // ******************************************************************** // * License and Disclaimer * // * * // * The Geant4 software is copyright of the Copyright Holders of * // * the Geant4 Collaboration. It is provided under the terms and * // * conditions of the Geant4 Software License, included in the file * // * LICENSE and available at http://cern.ch/geant4/license . These * // * include a list of copyright holders. * // * * // * Neither the authors of this software system, nor their employing * // * institutes,nor the agencies providing financial support for this * // * work make any representation or warranty, express or implied, * // * regarding this software system or assume any liability for its * // * use. Please see the license in the file LICENSE and URL above * // * for the full disclaimer and the limitation of liability. * // * * // * This code implementation is the result of the scientific and * // * technical work of the GEANT4 collaboration. * // * By using, copying, modifying or distributing the software (or * // * any work based on the software) you agree to acknowledge its * // * use in resulting scientific publications, and indicate your * // * acceptance of all terms of the Geant4 Software license. * // ******************************************************************** // // $Id: G4eplusAnnihilation.hh 68797 2013-04-05 13:27:11Z gcosmo $ // // ------------------------------------------------------------------- // // GEANT4 Class header file // // // File name: G4eplusAnnihilation // // Author: Vladimir Ivanchenko on base of Michel Maire code // // Creation date: 02.08.2004 // // Modifications: // 08-11-04 Migration to new interface of Store/Retrieve tables (V.Ivanchenko) // 15-03-05 Update interface according to changings // in G4VEmProcess (V.Ivanchenko) // 08-04-05 Major optimisation of internal interfaces (V.Ivanchenko) // 04-05-05 Make class to be default (V.Ivanchenko) // 04-12-05 SetProposedKineticEnergy(0.) for annihilated positron (mma) // 09-08-06 add SetModel(G4VEmModel*) (mma) // 12-09-06, move SetModel(G4VEmModel*) in G4VEmProcess (mma) // 14-09-22 Copied code to new file RATeplusAnnihilation.hh in RAT. // See docDB: doc-7593 (James Page - jp643@sussex.ac.uk). // // Class Description: // // This class manages the process of e+ annihilation into 2 gammas // // ------------------------------------------------------------------- // #ifndef RATeplusAnnihilation_h #define RATeplusAnnihilation_h #include "G4VEmProcess.hh" class G4ParticleDefinition; class RATeplusAnnihilation : public G4VEmProcess { public: RATeplusAnnihilation(const G4String& name = "annihil"); virtual ~RATeplusAnnihilation(); virtual G4bool IsApplicable(const G4ParticleDefinition& p); virtual G4VParticleChange* AtRestDoIt( const G4Track& aTrack, const G4Step& stepData); virtual G4double AtRestGetPhysicalInteractionLength( const G4Track& track, G4ForceCondition* condition ); // Print out of the class parameters virtual void PrintInfo(); protected: virtual void InitialiseProcess(const G4ParticleDefinition*); private: G4bool fisInitialised; const G4ParticleDefinition* fGamma; double fFormfrac; double fLifetime; bool fRandom; }; //....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo...... #endif