Geant4-11
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Attributes | Static Private Attributes
G4ScintillationTrackInformation Class Reference

#include <G4ScintillationTrackInformation.hh>

Inheritance diagram for G4ScintillationTrackInformation:
G4VUserTrackInformation

Public Member Functions

 G4ScintillationTrackInformation (const G4ScintillationTrackInformation &)
 
 G4ScintillationTrackInformation (const G4ScintillationType &aType=Slow)
 
const G4ScintillationTypeGetScintillationType () const
 
const G4StringGetType () const
 
void operator delete (void *aScintillationTI)
 
void * operator new (size_t)
 
G4ScintillationTrackInformationoperator= (const G4ScintillationTrackInformation &)
 
virtual void Print () const override
 
virtual ~G4ScintillationTrackInformation ()
 

Static Public Member Functions

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

Protected Attributes

G4StringpType = nullptr
 

Private Attributes

G4ScintillationType scintillationType
 

Static Private Attributes

static const G4String BaseType
 

Detailed Description

Definition at line 52 of file G4ScintillationTrackInformation.hh.

Constructor & Destructor Documentation

◆ G4ScintillationTrackInformation() [1/2]

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

◆ ~G4ScintillationTrackInformation()

G4ScintillationTrackInformation::~G4ScintillationTrackInformation ( )
virtual

Definition at line 47 of file G4ScintillationTrackInformation.cc.

47{}

◆ G4ScintillationTrackInformation() [2/2]

G4ScintillationTrackInformation::G4ScintillationTrackInformation ( const G4ScintillationTrackInformation right)

Definition at line 49 of file G4ScintillationTrackInformation.cc.

Member Function Documentation

◆ Cast()

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

Definition at line 75 of file G4ScintillationTrackInformation.cc.

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

References IsScintillationTrackInformation().

◆ GetScintillationType()

const G4ScintillationType & G4ScintillationTrackInformation::GetScintillationType ( ) const
inline

Definition at line 70 of file G4ScintillationTrackInformation.hh.

71 {
72 return scintillationType;
73 }

References scintillationType.

◆ GetType()

const G4String & G4VUserTrackInformation::GetType ( ) const
inherited

Definition at line 75 of file G4VUserTrackInformation.cc.

76{
77 static const G4String NOTYPE = "NONE";
78 if(pType != nullptr)
79 return *pType;
80 else
81 return NOTYPE;
82}

References G4VUserTrackInformation::pType.

Referenced by IsScintillationTrackInformation().

◆ IsScintillationTrackInformation()

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

Definition at line 68 of file G4ScintillationTrackInformation.cc.

70{
71 G4bool isSTI = (aTI && aTI->GetType() == BaseType.c_str());
72 return isSTI;
73}
bool G4bool
Definition: G4Types.hh:86
const G4String & GetType() const

References BaseType, and G4VUserTrackInformation::GetType().

Referenced by Cast().

◆ operator delete()

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

Definition at line 112 of file G4ScintillationTrackInformation.hh.

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

References aScintillationTIAllocator().

◆ operator new()

void * G4ScintillationTrackInformation::operator new ( size_t  )
inline

◆ operator=()

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

Definition at line 55 of file G4ScintillationTrackInformation.cc.

57{
60 return *this;
61}
G4VUserTrackInformation & operator=(const G4VUserTrackInformation &)

References G4VUserTrackInformation::operator=(), and scintillationType.

◆ Print()

void G4ScintillationTrackInformation::Print ( ) const
overridevirtual

Reimplemented from G4VUserTrackInformation.

Definition at line 63 of file G4ScintillationTrackInformation.cc.

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

References G4cout, and G4endl.

Field Documentation

◆ BaseType

const G4String G4ScintillationTrackInformation::BaseType
staticprivate
Initial value:
=
"G4ScintillationTrackInformation"

Definition at line 86 of file G4ScintillationTrackInformation.hh.

Referenced by IsScintillationTrackInformation().

◆ pType

G4String* G4VUserTrackInformation::pType = nullptr
protectedinherited

◆ scintillationType

G4ScintillationType G4ScintillationTrackInformation::scintillationType
private

Definition at line 84 of file G4ScintillationTrackInformation.hh.

Referenced by GetScintillationType(), and operator=().


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