Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4ScintillationTrackInformation Class Reference

#include <G4ScintillationTrackInformation.hh>

Inheritance diagram for G4ScintillationTrackInformation:
Collaboration diagram for G4ScintillationTrackInformation:

Public Member Functions

 G4ScintillationTrackInformation (const G4ScintillationType &aType=Slow)
 
virtual ~G4ScintillationTrackInformation ()
 
voidoperator 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 ()
 
const G4StringGetType () const
 

Static Public Member Functions

static G4bool IsScintillationTrackInformation (const G4VUserTrackInformation *const)
 
static
G4ScintillationTrackInformation
Cast (const G4VUserTrackInformation *const)
 

Additional Inherited Members

- Protected Attributes inherited from G4VUserTrackInformation
G4StringpType
 

Detailed Description

Definition at line 49 of file G4ScintillationTrackInformation.hh.

Constructor & Destructor Documentation

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

Definition at line 37 of file G4ScintillationTrackInformation.cc.

38 : G4VUserTrackInformation(BaseType),
39 scintillationType(aType)
40 {
41 }
G4ScintillationTrackInformation::~G4ScintillationTrackInformation ( )
virtual

Definition at line 43 of file G4ScintillationTrackInformation.cc.

44 {
45 }
G4ScintillationTrackInformation::G4ScintillationTrackInformation ( const G4ScintillationTrackInformation right)

Definition at line 47 of file G4ScintillationTrackInformation.cc.

49 scintillationType(right.scintillationType)
50 {
51 }

Member Function Documentation

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

Definition at line 71 of file G4ScintillationTrackInformation.cc.

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

Here is the call graph for this function:

const G4ScintillationType& G4ScintillationTrackInformation::GetScintillationType ( ) const
inline

Definition at line 66 of file G4ScintillationTrackInformation.hh.

66 {return scintillationType;}
G4bool G4ScintillationTrackInformation::IsScintillationTrackInformation ( const G4VUserTrackInformation * const  aTI)
static

Definition at line 65 of file G4ScintillationTrackInformation.cc.

66 {
67  G4bool isSTI = (aTI && aTI->GetType() == BaseType.c_str());
68  return isSTI;
69 }
const G4String & GetType() const
bool G4bool
Definition: G4Types.hh:79

Here is the call graph for this function:

Here is the caller graph for this function:

void G4ScintillationTrackInformation::operator delete ( void aScintillationTI)
inline

Definition at line 102 of file G4ScintillationTrackInformation.hh.

103 {
104  aScintillationTIAllocator->FreeSingle((G4ScintillationTrackInformation *) aScintillationTI);
105 }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ScintillationTrackInformation > * aScintillationTIAllocator
void * G4ScintillationTrackInformation::operator new ( size_t  )
inline

Definition at line 96 of file G4ScintillationTrackInformation.hh.

97 {
99  return (void *) aScintillationTIAllocator->MallocSingle();
100 }
G4DLLIMPORT G4ThreadLocal G4Allocator< G4ScintillationTrackInformation > * aScintillationTIAllocator
G4ScintillationTrackInformation & G4ScintillationTrackInformation::operator= ( const G4ScintillationTrackInformation right)

Definition at line 53 of file G4ScintillationTrackInformation.cc.

54 {
56  this->scintillationType = right.scintillationType;
57  return *this;
58 }
G4VUserTrackInformation & operator=(const G4VUserTrackInformation &)

Here is the call graph for this function:

void G4ScintillationTrackInformation::Print ( ) const
overridevirtual

Reimplemented from G4VUserTrackInformation.

Definition at line 60 of file G4ScintillationTrackInformation.cc.

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

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