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

#include <G4ScintillationTrackInformation.hh>

+ Inheritance diagram for G4ScintillationTrackInformation:

Public Member Functions

 G4ScintillationTrackInformation (const G4ScintillationType &aType=Slow)
 
virtual ~G4ScintillationTrackInformation ()
 
void * operator new (size_t)
 
void operator delete (void *aScintillationTI)
 
 G4ScintillationTrackInformation (const G4ScintillationTrackInformation &)
 
G4ScintillationTrackInformationoperator= (const G4ScintillationTrackInformation &)
 
virtual void Print () const override
 
const G4ScintillationTypeGetScintillationType () const
 
- Public Member Functions inherited from G4VUserTrackInformation
 G4VUserTrackInformation ()=default
 
 G4VUserTrackInformation (const G4String &infoType)
 
 G4VUserTrackInformation (const G4VUserTrackInformation &)
 
G4VUserTrackInformationoperator= (const G4VUserTrackInformation &)
 
virtual ~G4VUserTrackInformation ()
 
virtual void Print () const
 
const G4StringGetType () const
 

Static Public Member Functions

static G4bool IsScintillationTrackInformation (const G4VUserTrackInformation *const)
 
static G4ScintillationTrackInformationCast (const G4VUserTrackInformation *const)
 

Additional Inherited Members

- Protected Attributes inherited from G4VUserTrackInformation
G4StringpType = nullptr
 

Detailed Description

Definition at line 52 of file G4ScintillationTrackInformation.hh.

Constructor & Destructor Documentation

◆ G4ScintillationTrackInformation() [1/2]

G4ScintillationTrackInformation::G4ScintillationTrackInformation ( const G4ScintillationType aType = Slow)
explicit

Definition at line 41 of file G4ScintillationTrackInformation.cc.

43 : G4VUserTrackInformation(BaseType)
44 , scintillationType(aType)
45{}
G4VUserTrackInformation()=default

◆ ~G4ScintillationTrackInformation()

G4ScintillationTrackInformation::~G4ScintillationTrackInformation ( )
virtualdefault

◆ G4ScintillationTrackInformation() [2/2]

G4ScintillationTrackInformation::G4ScintillationTrackInformation ( const G4ScintillationTrackInformation )
default

Member Function Documentation

◆ Cast()

G4ScintillationTrackInformation * G4ScintillationTrackInformation::Cast ( const G4VUserTrackInformation * const  aTI)
static

Definition at line 67 of file G4ScintillationTrackInformation.cc.

69{
72 {
73 // No change will be done to the pointer and to the pointed data
74 auto temp = const_cast<G4VUserTrackInformation*>(aTI);
75 STI = dynamic_cast<G4ScintillationTrackInformation*>(temp);
76 }
77 return STI;
78}
static G4bool IsScintillationTrackInformation(const G4VUserTrackInformation *const)

◆ GetScintillationType()

const G4ScintillationType & G4ScintillationTrackInformation::GetScintillationType ( ) const
inline

Definition at line 70 of file G4ScintillationTrackInformation.hh.

71 {
72 return scintillationType;
73 }

◆ IsScintillationTrackInformation()

G4bool G4ScintillationTrackInformation::IsScintillationTrackInformation ( const G4VUserTrackInformation * const  aTI)
static

Definition at line 60 of file G4ScintillationTrackInformation.cc.

62{
63 G4bool isSTI = (aTI && aTI->GetType() == BaseType.c_str());
64 return isSTI;
65}
bool G4bool
Definition: G4Types.hh:86
const G4String & GetType() const

Referenced by Cast().

◆ operator delete()

void G4ScintillationTrackInformation::operator delete ( void *  aScintillationTI)
inline

Definition at line 114 of file G4ScintillationTrackInformation.hh.

116{
117 aScintillationTIAllocator()->FreeSingle(
118 (G4ScintillationTrackInformation*) aScintillationTI);
119}
G4DLLIMPORT G4Allocator< G4ScintillationTrackInformation > *& aScintillationTIAllocator()

◆ operator new()

void * G4ScintillationTrackInformation::operator new ( size_t  )
inline

Definition at line 104 of file G4ScintillationTrackInformation.hh.

105{
106 if(aScintillationTIAllocator() == nullptr)
107 {
110 }
111 return (void*) aScintillationTIAllocator()->MallocSingle();
112}

◆ operator=()

G4ScintillationTrackInformation & G4ScintillationTrackInformation::operator= ( const G4ScintillationTrackInformation )
default

◆ Print()

void G4ScintillationTrackInformation::Print ( ) const
overridevirtual

Reimplemented from G4VUserTrackInformation.

Definition at line 55 of file G4ScintillationTrackInformation.cc.

56{
57 G4cout << "The user track information is a scintillation" << G4endl;
58}
#define G4endl
Definition: G4ios.hh:57
G4GLOB_DLL std::ostream G4cout

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