Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4BOptrForceCollisionTrackData Class Reference

#include <G4BOptrForceCollisionTrackData.hh>

Inheritance diagram for G4BOptrForceCollisionTrackData:
Collaboration diagram for G4BOptrForceCollisionTrackData:

Public Member Functions

 G4BOptrForceCollisionTrackData (const G4BOptrForceCollision *)
 
 ~G4BOptrForceCollisionTrackData ()
 
void Print () const
 
G4bool IsFreeFromBiasing () const
 
- Public Member Functions inherited from G4VAuxiliaryTrackInformation
 G4VAuxiliaryTrackInformation ()
 
virtual ~G4VAuxiliaryTrackInformation ()
 

Friends

class G4BOptrForceCollision
 

Detailed Description

Definition at line 53 of file G4BOptrForceCollisionTrackData.hh.

Constructor & Destructor Documentation

G4BOptrForceCollisionTrackData::G4BOptrForceCollisionTrackData ( const G4BOptrForceCollision optr)

Definition at line 29 of file G4BOptrForceCollisionTrackData.cc.

31  fForceCollisionOperator( optr )
32 {
33  fForceCollisionState = ForceCollisionState::free;
34 }
G4BOptrForceCollisionTrackData::~G4BOptrForceCollisionTrackData ( )

Definition at line 36 of file G4BOptrForceCollisionTrackData.cc.

37 {
38  if ( fForceCollisionState != ForceCollisionState::free )
39  {
41  ed << "Track deleted while under G4BOptrForceCollision biasing scheme of operator `";
42  if ( fForceCollisionOperator == nullptr ) ed << "(none)"; else ed << fForceCollisionOperator->GetName();
43  ed <<"'. Will result in inconsistencies.";
44  G4Exception(" G4BOptrForceCollisionTrackData::~G4BOptrForceCollisionTrackData()",
45  "BIAS.GEN.19",
47  ed);
48  }
49 }
std::ostringstream G4ExceptionDescription
Definition: globals.hh:76
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Definition: G4Exception.cc:41
const G4String GetName() const

Here is the call graph for this function:

Member Function Documentation

G4bool G4BOptrForceCollisionTrackData::IsFreeFromBiasing ( ) const
inline

Definition at line 65 of file G4BOptrForceCollisionTrackData.hh.

66  { return ( fForceCollisionState == ForceCollisionState::free);}

Here is the caller graph for this function:

void G4BOptrForceCollisionTrackData::Print ( void  ) const
virtual

Reimplemented from G4VAuxiliaryTrackInformation.

Definition at line 51 of file G4BOptrForceCollisionTrackData.cc.

52 {
53  G4cout << " G4BOptrForceCollisionTrackData object : " << this << G4endl;
54  G4cout << " Force collision operator : "; if ( fForceCollisionOperator == nullptr ) G4cout << "(none)"; else G4cout << fForceCollisionOperator->GetName(); G4cout << G4endl;
55  G4cout << " Force collision state : ";
56  switch ( fForceCollisionState )
57  {
59  G4cout << "free from biasing ";
60  break;
62  G4cout << "to be cloned ";
63  break;
65  G4cout << "to be interaction forced ";
66  break;
68  G4cout << "to be free flight forced (under weight = 0) ";
69  break;
70  default:
71  break;
72  }
73  G4cout << G4endl;
74 }
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
const G4String GetName() const

Here is the call graph for this function:

Friends And Related Function Documentation

friend class G4BOptrForceCollision
friend

Definition at line 55 of file G4BOptrForceCollisionTrackData.hh.


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