Geant4-11
Public Types | Public Member Functions | Private Attributes
Event Class Reference

#include <G4DNAEventSet.hh>

Public Types

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

Public Member Functions

 Event (G4double time, unsigned int key, ReactionData *)
 
 Event (G4double time, unsigned int key, std::unique_ptr< JumpingData > &&)
 
JumpingDataGetJumpingData () const
 
unsigned int GetKey () const
 
ReactionDataGetReactionData () const
 
G4double GetTime () const
 
void PrintEvent () const
 
virtual ~Event ()
 

Private Attributes

Data fData
 
unsigned int fKey
 
G4double fTimeStep
 

Detailed Description

Definition at line 38 of file G4DNAEventSet.hh.

Member Typedef Documentation

◆ Data

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

Definition at line 48 of file G4DNAEventSet.hh.

◆ Index

Definition at line 41 of file G4DNAEventSet.hh.

◆ JumpingData

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

Definition at line 43 of file G4DNAEventSet.hh.

◆ MolType

Definition at line 42 of file G4DNAEventSet.hh.

◆ ReactionData

Definition at line 44 of file G4DNAEventSet.hh.

Constructor & Destructor Documentation

◆ Event() [1/2]

Event::Event ( G4double  time,
unsigned int  key,
ReactionData pReactionData 
)

Definition at line 31 of file G4DNAEventSet.cc.

32 : fTimeStep(time)
33 , fKey(key)
34 , fData(std::pair<std::unique_ptr<JumpingData>, ReactionData*>(nullptr,
35 pReactionData))
36{}
unsigned int fKey
Data fData
G4double fTimeStep
const G4DNAMolecularReactionData ReactionData

◆ Event() [2/2]

Event::Event ( G4double  time,
unsigned int  key,
std::unique_ptr< JumpingData > &&  jumping 
)

Definition at line 38 of file G4DNAEventSet.cc.

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

◆ ~Event()

Event::~Event ( )
virtualdefault

Member Function Documentation

◆ GetJumpingData()

JumpingData * Event::GetJumpingData ( ) const
inline

Definition at line 58 of file G4DNAEventSet.hh.

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

References fData.

◆ GetKey()

unsigned int Event::GetKey ( ) const
inline

Definition at line 55 of file G4DNAEventSet.hh.

55{ return fKey; }

References fKey.

◆ GetReactionData()

ReactionData * Event::GetReactionData ( ) const
inline

Definition at line 60 of file G4DNAEventSet.hh.

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

References fData.

◆ GetTime()

G4double Event::GetTime ( ) const
inline

Definition at line 54 of file G4DNAEventSet.hh.

54{ return fTimeStep; }

References fTimeStep.

◆ PrintEvent()

void Event::PrintEvent ( ) const

Definition at line 48 of file G4DNAEventSet.cc.

49{
50 G4cout << "****PrintEvent::TimeStep : " << G4BestUnit(fTimeStep, "Time")
51 << " key : " << fKey << " 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

References fData, fKey, fTimeStep, G4BestUnit, G4cout, and G4endl.

Field Documentation

◆ fData

Data Event::fData
private

Definition at line 65 of file G4DNAEventSet.hh.

Referenced by GetJumpingData(), GetReactionData(), and PrintEvent().

◆ fKey

unsigned int Event::fKey
private

Definition at line 64 of file G4DNAEventSet.hh.

Referenced by GetKey(), and PrintEvent().

◆ fTimeStep

G4double Event::fTimeStep
private

Definition at line 63 of file G4DNAEventSet.hh.

Referenced by GetTime(), and PrintEvent().


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