Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -34,59 +34,44 @@
|
||||
#ifndef WLSPhotonDetHit_h
|
||||
#define WLSPhotonDetHit_h 1
|
||||
|
||||
#include "G4VHit.hh"
|
||||
#include "G4THitsCollection.hh"
|
||||
#include "G4Allocator.hh"
|
||||
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4Transform3D.hh"
|
||||
#include "G4RotationMatrix.hh"
|
||||
|
||||
#include "G4LogicalVolume.hh"
|
||||
#include "G4THitsCollection.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4VHit.hh"
|
||||
#include "G4VPhysicalVolume.hh"
|
||||
|
||||
#include "tls.hh"
|
||||
|
||||
class G4VTouchable;
|
||||
|
||||
//--------------------------------------------------
|
||||
// WLSPhotonDetHit Class
|
||||
//--------------------------------------------------
|
||||
|
||||
class WLSPhotonDetHit : public G4VHit
|
||||
{
|
||||
public:
|
||||
public:
|
||||
WLSPhotonDetHit();
|
||||
WLSPhotonDetHit(G4ThreeVector pExit, G4ThreeVector pArrive, G4double pTime);
|
||||
~WLSPhotonDetHit();
|
||||
|
||||
WLSPhotonDetHit();
|
||||
WLSPhotonDetHit(G4ThreeVector pExit, G4ThreeVector pArrive, G4double pTime);
|
||||
virtual ~WLSPhotonDetHit();
|
||||
WLSPhotonDetHit(const WLSPhotonDetHit& right);
|
||||
const WLSPhotonDetHit& operator=(const WLSPhotonDetHit& right);
|
||||
|
||||
WLSPhotonDetHit(const WLSPhotonDetHit &right);
|
||||
const WLSPhotonDetHit& operator=(const WLSPhotonDetHit& right);
|
||||
G4bool operator==(const WLSPhotonDetHit& right) const;
|
||||
|
||||
G4bool operator==(const WLSPhotonDetHit& right) const;
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void* aHit);
|
||||
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void *aHit);
|
||||
inline void SetArrivalPos(G4ThreeVector xyz) { fPosArrive = xyz; }
|
||||
inline G4ThreeVector GetArrivalPos() { return fPosArrive; }
|
||||
|
||||
inline void SetArrivalPos(G4ThreeVector xyz) { fPosArrive = xyz; }
|
||||
inline G4ThreeVector GetArrivalPos() { return fPosArrive; }
|
||||
inline void SetExitPos(G4ThreeVector xyz) { fPosExit = xyz; }
|
||||
inline G4ThreeVector GetExitPos() { return fPosExit; }
|
||||
|
||||
inline void SetExitPos(G4ThreeVector xyz) { fPosExit = xyz; }
|
||||
inline G4ThreeVector GetExitPos() { return fPosExit; }
|
||||
|
||||
inline void SetArrivalTime(G4double t) { fArrivalTime = t; }
|
||||
inline G4double GetArrivalTime() { return fArrivalTime; }
|
||||
|
||||
private:
|
||||
|
||||
// the arrival time of the photon
|
||||
G4double fArrivalTime;
|
||||
// where the photon hit the detector (detector's coordinate)
|
||||
G4ThreeVector fPosArrive;
|
||||
// where the photon exited the fiber (world's coordinate)
|
||||
G4ThreeVector fPosExit;
|
||||
inline void SetArrivalTime(G4double t) { fArrivalTime = t; }
|
||||
inline G4double GetArrivalTime() { return fArrivalTime; }
|
||||
|
||||
private:
|
||||
// the arrival time of the photon
|
||||
G4double fArrivalTime;
|
||||
// where the photon hit the detector (detector's coordinate)
|
||||
G4ThreeVector fPosArrive;
|
||||
// where the photon exited the fiber (world's coordinate)
|
||||
G4ThreeVector fPosExit;
|
||||
};
|
||||
|
||||
//--------------------------------------------------
|
||||
@@ -104,11 +89,11 @@ extern G4ThreadLocal G4Allocator<WLSPhotonDetHit>* WLSPhotonDetHitAllocator;
|
||||
inline void* WLSPhotonDetHit::operator new(size_t)
|
||||
{
|
||||
if(!WLSPhotonDetHitAllocator)
|
||||
WLSPhotonDetHitAllocator = new G4Allocator<WLSPhotonDetHit>;
|
||||
return (void *) WLSPhotonDetHitAllocator->MallocSingle();
|
||||
WLSPhotonDetHitAllocator = new G4Allocator<WLSPhotonDetHit>;
|
||||
return (void*) WLSPhotonDetHitAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
inline void WLSPhotonDetHit::operator delete(void *aHit)
|
||||
inline void WLSPhotonDetHit::operator delete(void* aHit)
|
||||
{
|
||||
WLSPhotonDetHitAllocator->FreeSingle((WLSPhotonDetHit*) aHit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user