Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
UltraOpticalHit Class Reference

#include <UltraOpticalHit.hh>

Inheritance diagram for UltraOpticalHit:
G4VHit

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.

References UltraOpticalHitAllocator.

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.

References UltraOpticalHitAllocator.

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.

References G4cout, G4endl, python.hepunit::keV, and python.hepunit::mm.

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

Definition at line 73 of file UltraOpticalHit.hh.

Referenced by UltraPMTSD::ProcessHits().

73 {fPhotEne= fEn;}
void UltraOpticalHit::SetPosition ( G4ThreeVector  xyz)
inline

Definition at line 74 of file UltraOpticalHit.hh.

Referenced by UltraPMTSD::ProcessHits().

74 {fPhotPos = xyz;}

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