LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
G4Interaction Class Reference

#include "G4Interaction.hh"

Inheritance diagram for G4Interaction:

Public Member Functions

 G4Interaction ()
 
 G4Interaction (bool isFirst)
 
virtual ~G4Interaction ()
 
void SetIncomingTrack (G4Track *trk)
 
bool IsFirstInteraction () const
 
const G4Track * GetIncomingTrack () const
 

Private Attributes

bool fIsFirstInter
 
G4Track * fIncomingTrack
 

Detailed Description

Definition at line 20 of file G4Interaction.hh.

Constructor & Destructor Documentation

G4Interaction::G4Interaction ( )
inline

Definition at line 23 of file G4Interaction.hh.

23 : fIsFirstInter(false), fIncomingTrack(0) {}
G4Track * fIncomingTrack
G4Interaction::G4Interaction ( bool  isFirst)
inline

Definition at line 24 of file G4Interaction.hh.

24 : fIsFirstInter(isFirst), fIncomingTrack(0) {}
G4Track * fIncomingTrack
virtual G4Interaction::~G4Interaction ( )
inlinevirtual

Definition at line 25 of file G4Interaction.hh.

References fIncomingTrack.

26  {
27  if (fIncomingTrack)
28  delete fIncomingTrack;
29  fIncomingTrack = 0;
30  }
G4Track * fIncomingTrack

Member Function Documentation

const G4Track* G4Interaction::GetIncomingTrack ( ) const
inline

Definition at line 48 of file G4Interaction.hh.

References fIncomingTrack.

49  {
50  return fIncomingTrack;
51  }
G4Track * fIncomingTrack
bool G4Interaction::IsFirstInteraction ( ) const
inline

Definition at line 43 of file G4Interaction.hh.

References fIsFirstInter.

44  {
45  return fIsFirstInter;
46  }
void G4Interaction::SetIncomingTrack ( G4Track *  trk)
inline

Definition at line 33 of file G4Interaction.hh.

References fIncomingTrack.

34  {
35  if (fIncomingTrack)
36  delete fIncomingTrack;
37  fIncomingTrack = new G4Track(*trk);
38  fIncomingTrack->SetTouchableHandle(trk->GetTouchableHandle());
39  fIncomingTrack->SetStep(new G4Step(*(trk->GetStep())));
40  return;
41  }
G4Track * fIncomingTrack

Member Data Documentation

G4Track* G4Interaction::fIncomingTrack
private

Definition at line 55 of file G4Interaction.hh.

Referenced by GetIncomingTrack(), SetIncomingTrack(), and ~G4Interaction().

bool G4Interaction::fIsFirstInter
private

Definition at line 54 of file G4Interaction.hh.

Referenced by IsFirstInteraction().


The documentation for this class was generated from the following file: