Geant4  10.03.p03
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
UltraOpticalHit Class Reference

#include <UltraOpticalHit.hh>

Inheritance diagram for UltraOpticalHit:
Collaboration diagram for UltraOpticalHit:

Public Member Functions

 UltraOpticalHit ()
 
 ~UltraOpticalHit ()
 
 UltraOpticalHit (const UltraOpticalHit &)
 
const UltraOpticalHitoperator= (const UltraOpticalHit &)
 
int operator== (const UltraOpticalHit &) const
 
voidoperator new (size_t)
 
void operator delete (void *)
 
void Draw ()
 
void Print ()
 
void SetEnergy (G4double fEn)
 
void SetPosition (G4ThreeVector xyz)
 
G4double GetEnergy ()
 
G4ThreeVector GetPosition ()
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Definition at line 49 of file UltraOpticalHit.hh.

Constructor & Destructor Documentation

UltraOpticalHit::UltraOpticalHit ( )

Definition at line 48 of file UltraOpticalHit.cc.

49 {
50 
51  fPhotEne = 0.0;
52  fPhotPos = G4ThreeVector();
53 
54 }
CLHEP::Hep3Vector G4ThreeVector
UltraOpticalHit::~UltraOpticalHit ( )

Definition at line 58 of file UltraOpticalHit.cc.

59 {;}
UltraOpticalHit::UltraOpticalHit ( const UltraOpticalHit right)

Definition at line 63 of file UltraOpticalHit.cc.

63  : G4VHit()
64 {
65  fPhotEne = right.fPhotEne;
66  fPhotPos = right.fPhotPos;
67 
68 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

void UltraOpticalHit::Draw ( )
virtual

Reimplemented from G4VHit.

Definition at line 89 of file UltraOpticalHit.cc.

90 {;}
G4double UltraOpticalHit::GetEnergy ( )
inline

Definition at line 77 of file UltraOpticalHit.hh.

77 {return fPhotEne; }
G4ThreeVector UltraOpticalHit::GetPosition ( )
inline

Definition at line 78 of file UltraOpticalHit.hh.

78 {return fPhotPos; }
void UltraOpticalHit::operator delete ( void aHit)
inline

Definition at line 99 of file UltraOpticalHit.hh.

100 {
101  UltraOpticalHitAllocator->FreeSingle((UltraOpticalHit*) aHit);
102 }
G4ThreadLocal G4Allocator< UltraOpticalHit > * UltraOpticalHitAllocator
void * UltraOpticalHit::operator new ( size_t  )
inline

Definition at line 90 of file UltraOpticalHit.hh.

91 {
94  return (void*) UltraOpticalHitAllocator->MallocSingle();
95 }
G4ThreadLocal G4Allocator< UltraOpticalHit > * UltraOpticalHitAllocator
const UltraOpticalHit & UltraOpticalHit::operator= ( const UltraOpticalHit right)

Definition at line 72 of file UltraOpticalHit.cc.

73 {
74  fPhotEne = right.fPhotEne;
75  fPhotPos = right.fPhotPos;
76 
77  return *this;
78 }
int UltraOpticalHit::operator== ( const UltraOpticalHit right) const

Definition at line 82 of file UltraOpticalHit.cc.

83 {
84  return (this==&right) ? 1 : 0;
85 }
void UltraOpticalHit::Print ( )
virtual

Reimplemented from G4VHit.

Definition at line 94 of file UltraOpticalHit.cc.

95 {
96 
97  G4cout << fPhotEne/keV << G4endl;
98  G4cout << fPhotPos/mm << G4endl;
99 }
static constexpr double mm
Definition: G4SIunits.hh:115
G4GLOB_DLL std::ostream G4cout
#define G4endl
Definition: G4ios.hh:61
static constexpr double keV
Definition: G4SIunits.hh:216
void UltraOpticalHit::SetEnergy ( G4double  fEn)
inline

Definition at line 73 of file UltraOpticalHit.hh.

73 {fPhotEne= fEn;}

Here is the caller graph for this function:

void UltraOpticalHit::SetPosition ( G4ThreeVector  xyz)
inline

Definition at line 74 of file UltraOpticalHit.hh.

74 {fPhotPos = xyz;}

Here is the caller graph for this function:


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