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

#include <WLSPhotonDetHit.hh>

Inheritance diagram for WLSPhotonDetHit:
Collaboration diagram for WLSPhotonDetHit:

Public Member Functions

 WLSPhotonDetHit ()
 
 WLSPhotonDetHit (G4ThreeVector pExit, G4ThreeVector pArrive, G4double pTime)
 
virtual ~WLSPhotonDetHit ()
 
 WLSPhotonDetHit (const WLSPhotonDetHit &right)
 
const WLSPhotonDetHitoperator= (const WLSPhotonDetHit &right)
 
G4int operator== (const WLSPhotonDetHit &right) const
 
voidoperator new (size_t)
 
void operator delete (void *aHit)
 
void SetArrivalPos (G4ThreeVector xyz)
 
G4ThreeVector GetArrivalPos ()
 
void SetExitPos (G4ThreeVector xyz)
 
G4ThreeVector GetExitPos ()
 
void SetArrivalTime (G4double t)
 
G4double GetArrivalTime ()
 
- Public Member Functions inherited from G4VHit
 G4VHit ()
 
virtual ~G4VHit ()
 
G4int operator== (const G4VHit &right) const
 
virtual void Draw ()
 
virtual void Print ()
 
virtual const std::map
< G4String, G4AttDef > * 
GetAttDefs () const
 
virtual std::vector< G4AttValue > * CreateAttValues () const
 

Detailed Description

Definition at line 57 of file WLSPhotonDetHit.hh.

Constructor & Destructor Documentation

WLSPhotonDetHit::WLSPhotonDetHit ( )

Definition at line 38 of file WLSPhotonDetHit.cc.

39 {
40  fArrivalTime = 0.;
41  fPosArrive = G4ThreeVector(0., 0., 0.);
42  fPosExit = G4ThreeVector(0., 0., 0.);
43 }
CLHEP::Hep3Vector G4ThreeVector
WLSPhotonDetHit::WLSPhotonDetHit ( G4ThreeVector  pExit,
G4ThreeVector  pArrive,
G4double  pTime 
)

Definition at line 47 of file WLSPhotonDetHit.cc.

50 {
51  fPosExit = pExit;
52  fPosArrive = pArrive;
53  fArrivalTime = pTime;
54 }
WLSPhotonDetHit::~WLSPhotonDetHit ( )
virtual

Definition at line 58 of file WLSPhotonDetHit.cc.

58 { }
WLSPhotonDetHit::WLSPhotonDetHit ( const WLSPhotonDetHit right)

Definition at line 62 of file WLSPhotonDetHit.cc.

63  : G4VHit()
64 {
65  *this = right;
66 }
G4VHit()
Definition: G4VHit.cc:34

Member Function Documentation

G4ThreeVector WLSPhotonDetHit::GetArrivalPos ( )
inline

Definition at line 74 of file WLSPhotonDetHit.hh.

74 { return fPosArrive; }
G4double WLSPhotonDetHit::GetArrivalTime ( )
inline

Definition at line 80 of file WLSPhotonDetHit.hh.

80 { return fArrivalTime; }
G4ThreeVector WLSPhotonDetHit::GetExitPos ( )
inline

Definition at line 77 of file WLSPhotonDetHit.hh.

77 { return fPosExit; }
void WLSPhotonDetHit::operator delete ( void aHit)
inline

Definition at line 112 of file WLSPhotonDetHit.hh.

113 {
114  WLSPhotonDetHitAllocator->FreeSingle((WLSPhotonDetHit*) aHit);
115 }
G4ThreadLocal G4Allocator< WLSPhotonDetHit > * WLSPhotonDetHitAllocator
void * WLSPhotonDetHit::operator new ( size_t  )
inline

Definition at line 105 of file WLSPhotonDetHit.hh.

106 {
109  return (void *) WLSPhotonDetHitAllocator->MallocSingle();
110 }
G4ThreadLocal G4Allocator< WLSPhotonDetHit > * WLSPhotonDetHitAllocator
const WLSPhotonDetHit & WLSPhotonDetHit::operator= ( const WLSPhotonDetHit right)

Definition at line 70 of file WLSPhotonDetHit.cc.

71 {
72  fPosExit = right.fPosExit;
73  fPosArrive = right.fPosArrive;
74  fArrivalTime = right.fArrivalTime;
75 
76  return *this;
77 }
G4int WLSPhotonDetHit::operator== ( const WLSPhotonDetHit right) const

Definition at line 81 of file WLSPhotonDetHit.cc.

82 {
83  return fPosExit == right.fPosExit &&
84  fPosArrive == right.fPosArrive &&
85  fArrivalTime == right.fArrivalTime;
86 }
void WLSPhotonDetHit::SetArrivalPos ( G4ThreeVector  xyz)
inline

Definition at line 73 of file WLSPhotonDetHit.hh.

73 { fPosArrive = xyz; }
void WLSPhotonDetHit::SetArrivalTime ( G4double  t)
inline

Definition at line 79 of file WLSPhotonDetHit.hh.

79 { fArrivalTime = t; }
void WLSPhotonDetHit::SetExitPos ( G4ThreeVector  xyz)
inline

Definition at line 76 of file WLSPhotonDetHit.hh.

76 { fPosExit = xyz; }

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