Files
geant4/source/processes/hadronic/models/management/include/G4VIntraNuclearTransportModel.hh
T
2016-06-09 10:49:58 +02:00

126 lines
4.2 KiB
C++

//
// ********************************************************************
// * DISCLAIMER *
// * *
// * The following disclaimer summarizes all the specific disclaimers *
// * of contributors to this software. The specific disclaimers,which *
// * govern, are listed with their locations in: *
// * http://cern.ch/geant4/license *
// * *
// * 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. *
// * *
// * This code implementation is the intellectual property of the *
// * GEANT4 collaboration. *
// * By copying, distributing or modifying the Program (or any work *
// * based on the Program) you indicate your acceptance of this *
// * statement, and all its terms. *
// ********************************************************************
//
//
// $Id: G4VIntraNuclearTransportModel.hh,v 1.1 2003/10/07 12:19:43 hpw Exp $
// GEANT4 tag $Name: geant4-06-00-patch-01 $
//
// $Id: G4IntraNuclearTransportMode.hh,v 1.0 1998/06/30
// -----------------------------------------------------------------------------
// GEANT 4 class header file
//
// History: first implementation, A. Feliciello, 30th June 1998
// A.Pavliouk 26.11.98
// In Set...() methods a pointer is deleted now before new
// value will be asigned.
// -----------------------------------------------------------------------------
#ifndef G4VIntraNuclearTransportModel_h
#define G4VIntraNuclearTransportModel_h 1
// Class Description
// Base class for intra-nuclear transport models in geant4. By merit of inheriting
// from this class a intra-nuclear transport model can be used in conjunction with
// any precompound, string parton model or other high energy generator in the
// generation of final states for inelastic scattering.
// Class Description - End
#include "G4V3DNucleus.hh"
#include "G4VPreCompoundModel.hh"
#include "G4HadronicInteraction.hh"
#include "G4ReactionProductVector.hh"
#include "G4ReactionProduct.hh"
#include "G4HadProjectile.hh"
#include "G4HadFinalState.hh"
class G4KineticTrackVector;
class G4VIntraNuclearTransportModel : public G4HadronicInteraction
{
public:
G4VIntraNuclearTransportModel();
G4VIntraNuclearTransportModel(const G4VIntraNuclearTransportModel& right);
virtual ~G4VIntraNuclearTransportModel();
const G4VIntraNuclearTransportModel& operator=(const G4VIntraNuclearTransportModel &right);
int operator==(const G4VIntraNuclearTransportModel& right) const;
int operator!=(const G4VIntraNuclearTransportModel& right) const;
virtual G4ReactionProductVector* Propagate(G4KineticTrackVector* theSecondaries,
G4V3DNucleus* theNucleus) = 0;
void SetDeExcitation(G4VPreCompoundModel* const value);
void Set3DNucleus(G4V3DNucleus* const value);
protected:
G4V3DNucleus* Get3DNucleus() const;
G4VPreCompoundModel* GetDeExcitation() const;
protected:
G4V3DNucleus* the3DNucleus;
G4VPreCompoundModel* theDeExcitation;
};
// Class G4VIntraNuclearTransportModel
inline G4V3DNucleus* G4VIntraNuclearTransportModel::Get3DNucleus() const
{
return the3DNucleus;
}
inline void G4VIntraNuclearTransportModel::Set3DNucleus(G4V3DNucleus* const value)
{
delete the3DNucleus; the3DNucleus = value;
}
inline G4VPreCompoundModel* G4VIntraNuclearTransportModel::GetDeExcitation() const
{
return theDeExcitation;
}
inline void G4VIntraNuclearTransportModel::SetDeExcitation(G4VPreCompoundModel* const value)
{
delete theDeExcitation; theDeExcitation = value;
}
#endif