Geant4 10.7.0
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 ()
 
 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 53 of file G4ScintillationTrackInformation.hh.

Constructor & Destructor Documentation

◆ G4ScintillationTrackInformation() [1/2]

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

Definition at line 43 of file G4ScintillationTrackInformation.cc.

45 : G4VUserTrackInformation(BaseType)
46 , scintillationType(aType)
47{}

◆ ~G4ScintillationTrackInformation()

G4ScintillationTrackInformation::~G4ScintillationTrackInformation ( )
virtual

Definition at line 49 of file G4ScintillationTrackInformation.cc.

49{}

◆ G4ScintillationTrackInformation() [2/2]

G4ScintillationTrackInformation::G4ScintillationTrackInformation ( const G4ScintillationTrackInformation right)

Definition at line 51 of file G4ScintillationTrackInformation.cc.

54 , scintillationType(right.scintillationType)
55{}

Member Function Documentation

◆ Cast()

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

Definition at line 77 of file G4ScintillationTrackInformation.cc.

79{
82 {
83 // No change will be done to the pointer and to the pointed data
84 G4VUserTrackInformation* temp = const_cast<G4VUserTrackInformation*>(aTI);
85 STI = dynamic_cast<G4ScintillationTrackInformation*>(temp);
86 }
87 return STI;
88}
static G4bool IsScintillationTrackInformation(const G4VUserTrackInformation *const)

◆ GetScintillationType()

const G4ScintillationType & G4ScintillationTrackInformation::GetScintillationType ( ) const
inline

Definition at line 71 of file G4ScintillationTrackInformation.hh.

72 {
73 return scintillationType;
74 }

◆ IsScintillationTrackInformation()

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

Definition at line 70 of file G4ScintillationTrackInformation.cc.

72{
73 G4bool isSTI = (aTI && aTI->GetType() == BaseType.c_str());
74 return isSTI;
75}
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 115 of file G4ScintillationTrackInformation.hh.

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

◆ operator new()

void * G4ScintillationTrackInformation::operator new ( size_t  )
inline

Definition at line 107 of file G4ScintillationTrackInformation.hh.

◆ operator=()

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

Definition at line 57 of file G4ScintillationTrackInformation.cc.

59{
61 this->scintillationType = right.scintillationType;
62 return *this;
63}
G4VUserTrackInformation & operator=(const G4VUserTrackInformation &)

◆ Print()

void G4ScintillationTrackInformation::Print ( ) const
overridevirtual

Reimplemented from G4VUserTrackInformation.

Definition at line 65 of file G4ScintillationTrackInformation.cc.

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

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