Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
Event Class Reference

#include <G4DNAEventSet.hh>

Public Types

using Index = G4VDNAMesh::Index
 
using MolType = const G4MolecularConfiguration *
 
using JumpingData = std::pair< MolType, Index >
 
using ReactionData = const G4DNAMolecularReactionData
 
using Data = std::pair< std::unique_ptr< JumpingData >, ReactionData * >
 

Public Member Functions

 Event (const G4double &time, const Index &index, ReactionData *)
 
 Event (const G4double &time, const Index &index, std::unique_ptr< JumpingData > &&)
 
virtual ~Event ()
 
G4double GetTime () const
 
Index GetIndex () const
 
void PrintEvent () const
 
JumpingDataGetJumpingData () const
 
ReactionDataGetReactionData () const
 

Detailed Description

Definition at line 37 of file G4DNAEventSet.hh.

Member Typedef Documentation

◆ Data

using Event::Data = std::pair<std::unique_ptr<JumpingData>, ReactionData*>

Definition at line 47 of file G4DNAEventSet.hh.

◆ Index

Definition at line 40 of file G4DNAEventSet.hh.

◆ JumpingData

using Event::JumpingData = std::pair<MolType, Index>

Definition at line 42 of file G4DNAEventSet.hh.

◆ MolType

Definition at line 41 of file G4DNAEventSet.hh.

◆ ReactionData

Definition at line 43 of file G4DNAEventSet.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( const G4double time,
const Index index,
ReactionData pReactionData 
)

Definition at line 31 of file G4DNAEventSet.cc.

32 : fTimeStep(time)
33 , fIndex(index)
34 , fData(std::pair<std::unique_ptr<JumpingData>, ReactionData*>(nullptr,
35 pReactionData))
36{}
const G4DNAMolecularReactionData ReactionData

◆ Event() [2/2]

Event::Event ( const G4double time,
const Index index,
std::unique_ptr< JumpingData > &&  jumping 
)

Definition at line 38 of file G4DNAEventSet.cc.

40 : fTimeStep(time)
41 , fIndex(index)
42 , fData(std::pair<std::unique_ptr<JumpingData>, ReactionData*>(
43 std::move(jumping), nullptr))
44{}

◆ ~Event()

Event::~Event ( )
virtualdefault

Member Function Documentation

◆ GetIndex()

Index Event::GetIndex ( ) const
inline

Definition at line 54 of file G4DNAEventSet.hh.

54{ return fIndex; }

◆ GetJumpingData()

JumpingData * Event::GetJumpingData ( ) const
inline

Definition at line 56 of file G4DNAEventSet.hh.

56{ return std::get<0>(fData).get(); }

◆ GetReactionData()

ReactionData * Event::GetReactionData ( ) const
inline

Definition at line 57 of file G4DNAEventSet.hh.

57{ return std::get<1>(fData); }

◆ GetTime()

G4double Event::GetTime ( ) const
inline

Definition at line 53 of file G4DNAEventSet.hh.

53{ return fTimeStep; }

◆ PrintEvent()

void Event::PrintEvent ( ) const

Definition at line 48 of file G4DNAEventSet.cc.

49{
50 G4cout << "****PrintEvent::TimeStep : " << G4BestUnit(fTimeStep, "Time")
51 << " index : " << fIndex << " action : ";
52 if(std::get<0>(fData) == nullptr)
53 {
54 G4cout << std::get<1>(fData)->GetReactant1()->GetName() << " + "
55 << std::get<1>(fData)->GetReactant2()->GetName() << " -> "
56 << std::get<1>(fData)->GetProducts()->size() << G4endl;
57 }
58 else
59 {
60 G4cout << std::get<0>(fData)->first->GetName() << " jumping to "
61 << std::get<0>(fData)->second << G4endl;
62 }
63}
#define G4BestUnit(a, b)
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

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