G4DNASecondOrderReaction.hh

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 // $Id: G4DNASecondOrderReaction.hh 64057 2012-10-30 15:04:49Z gcosmo $
00027 //
00028 // Author: Mathieu Karamitros (kara (AT) cenbg . in2p3 . fr)
00029 //
00030 // WARNING : This class is released as a prototype.
00031 // It might strongly evolve or even disapear in the next releases.
00032 //
00033 // History:
00034 // -----------
00035 // 16 March 2012 M.Karamitros created
00036 //
00037 // -------------------------------------------------------------------
00038 
00039 #ifndef G4DNASECONDORDERREACTION_HH
00040 #define G4DNASECONDORDERREACTION_HH
00041 
00042 #include "G4VITProcess.hh"
00043 
00044 class G4MolecularConfiguration;
00045 
00046 class G4DNASecondOrderReaction : public G4VITProcess
00047 {
00048 public:
00049     G4DNASecondOrderReaction(const G4String& aName =  "DNASecondOrderReaction",
00050                              G4ProcessType type = fDecay);
00051     virtual ~G4DNASecondOrderReaction();
00052 
00053     G4IT_ADD_CLONE(G4VITProcess,G4DNASecondOrderReaction)
00054 
00055     G4DNASecondOrderReaction(const G4DNASecondOrderReaction&);
00056     G4DNASecondOrderReaction& operator=(const G4DNASecondOrderReaction&);
00057     void StartTracking(G4Track*);
00058 
00059     void SetReaction(const G4MolecularConfiguration*, const G4Material*, double /*reactionRate*/);
00060 
00061 public :
00062    virtual void BuildPhysicsTable(const G4ParticleDefinition&);
00063    virtual G4double PostStepGetPhysicalInteractionLength(
00064                            const G4Track& track,
00065                G4double   previousStepSize,
00066                G4ForceCondition* condition
00067               );
00068 
00069    virtual G4VParticleChange* PostStepDoIt(
00070                const G4Track& ,
00071                const G4Step&
00072               );
00073 
00074    virtual G4double AtRestGetPhysicalInteractionLength(
00075                            const G4Track& ,
00076                G4ForceCondition*
00077               ){ return -1.0; }
00078 
00079    virtual G4VParticleChange* AtRestDoIt(
00080                const G4Track& ,
00081                const G4Step&
00082               ){return 0;}
00083 
00084    //  no operation in  AlongStepDoIt
00085    virtual G4double AlongStepGetPhysicalInteractionLength(
00086                            const G4Track&,
00087                G4double  ,
00088                G4double  ,
00089                G4double& ,
00090                            G4GPILSelection*
00091                           ){ return -1.0; }
00092 
00093    //  no operation in  AlongStepDoIt
00094    virtual G4VParticleChange* AlongStepDoIt(
00095                const G4Track& ,
00096                const G4Step&
00097                           ) {return 0;}
00098 
00099 protected:
00100     struct SecondOrderReactionState : public G4ProcessState
00101     {
00102         SecondOrderReactionState();
00103         virtual ~SecondOrderReactionState(){;}
00104         G4double fPreviousTimeAtPreStepPoint;
00105         G4bool fIsInGoodMaterial;
00106     };
00107 
00108 private :
00109     void Create();
00110 
00111 protected:
00112     G4bool fIsInitialized;
00113 
00114     G4double fReturnedValue;
00115 
00116     const std::vector<double>* fpMoleculeDensity;
00117     G4double fReactionRate;
00118     G4double fConcentration;
00119     G4double fMolarMassOfMaterial;
00120     SecondOrderReactionState*& fpSecondOrderReactionState;
00121     G4ParticleChange fParticleChange;
00122 
00123     const G4MolecularConfiguration* fpMolecularConfiguration;
00124     const G4Material* fpMaterial;
00125 };
00126 
00127 #endif // G4DNASECONDORDERREACTION_HH

Generated on Mon May 27 17:48:04 2013 for Geant4 by  doxygen 1.4.7