Import Geant4 10.7.0 source tree
This commit is contained in:
@@ -31,80 +31,62 @@
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
//....oooOO0OOooo........oooOO0OOooo........oooOO0OOooo........oooOO0OOooo....
|
||||
|
||||
#ifndef WLSTrajectoryPoint_h_seen
|
||||
#define WLSTrajectoryPoint_h_seen 1
|
||||
#ifndef WLSTrajectoryPoint_h
|
||||
#define WLSTrajectoryPoint_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
|
||||
#include "G4Allocator.hh"
|
||||
#include "G4StepStatus.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4TrajectoryPoint.hh"
|
||||
|
||||
#include "G4StepStatus.hh"
|
||||
|
||||
class G4Track;
|
||||
class G4Step;
|
||||
class G4VProcess;
|
||||
|
||||
class WLSTrajectoryPoint : public G4TrajectoryPoint {
|
||||
class WLSTrajectoryPoint : public G4TrajectoryPoint
|
||||
{
|
||||
public:
|
||||
WLSTrajectoryPoint();
|
||||
WLSTrajectoryPoint(const G4Track*);
|
||||
WLSTrajectoryPoint(const G4Step*);
|
||||
WLSTrajectoryPoint(const WLSTrajectoryPoint& right);
|
||||
~WLSTrajectoryPoint();
|
||||
|
||||
//--------
|
||||
public: // without description
|
||||
//--------
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void* aTrajectoryPoint);
|
||||
inline G4bool operator==(const WLSTrajectoryPoint& right) const
|
||||
{
|
||||
return (this == &right);
|
||||
};
|
||||
|
||||
// Constructor/Destructor
|
||||
inline G4double GetTime() const { return fTime; };
|
||||
inline const G4ThreeVector GetMomentum() const { return fMomentum; };
|
||||
inline G4StepStatus GetStepStatus() const { return fStepStatus; };
|
||||
inline G4String GetVolumeName() const { return fVolumeName; };
|
||||
|
||||
WLSTrajectoryPoint();
|
||||
WLSTrajectoryPoint(const G4Track* );
|
||||
WLSTrajectoryPoint(const G4Step* );
|
||||
WLSTrajectoryPoint(const WLSTrajectoryPoint &right);
|
||||
virtual ~WLSTrajectoryPoint();
|
||||
|
||||
// Operators
|
||||
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void *aTrajectoryPoint);
|
||||
inline G4bool operator==(const WLSTrajectoryPoint& right) const
|
||||
{ return (this==&right); };
|
||||
|
||||
// Get/Set functions
|
||||
|
||||
inline G4double GetTime() const { return fTime; };
|
||||
inline const G4ThreeVector GetMomentum() const { return fMomentum; };
|
||||
inline G4StepStatus GetStepStatus() const { return fStepStatus; };
|
||||
inline G4String GetVolumeName() const { return fVolumeName; };
|
||||
|
||||
// Get method for HEPRep style attributes
|
||||
|
||||
virtual const std::map<G4String,G4AttDef>* GetAttDefs() const;
|
||||
virtual std::vector<G4AttValue>* CreateAttValues() const;
|
||||
|
||||
//---------
|
||||
private:
|
||||
//---------
|
||||
|
||||
// Member data
|
||||
|
||||
G4double fTime;
|
||||
G4ThreeVector fMomentum;
|
||||
G4StepStatus fStepStatus;
|
||||
G4String fVolumeName;
|
||||
virtual const std::map<G4String, G4AttDef>* GetAttDefs() const;
|
||||
virtual std::vector<G4AttValue>* CreateAttValues() const;
|
||||
|
||||
private:
|
||||
G4double fTime;
|
||||
G4ThreeVector fMomentum;
|
||||
G4StepStatus fStepStatus;
|
||||
G4String fVolumeName;
|
||||
};
|
||||
|
||||
extern G4ThreadLocal G4Allocator<WLSTrajectoryPoint>* WLSTrajPointAllocator;
|
||||
|
||||
inline void* WLSTrajectoryPoint::operator new(size_t)
|
||||
{
|
||||
if(!WLSTrajPointAllocator)
|
||||
WLSTrajPointAllocator = new G4Allocator<WLSTrajectoryPoint>;
|
||||
return (void *) WLSTrajPointAllocator->MallocSingle();
|
||||
if(!WLSTrajPointAllocator)
|
||||
WLSTrajPointAllocator = new G4Allocator<WLSTrajectoryPoint>;
|
||||
return (void*) WLSTrajPointAllocator->MallocSingle();
|
||||
}
|
||||
|
||||
inline void WLSTrajectoryPoint::operator delete(void *aTrajectoryPoint)
|
||||
inline void WLSTrajectoryPoint::operator delete(void* aTrajectoryPoint)
|
||||
{
|
||||
WLSTrajPointAllocator->FreeSingle(
|
||||
(WLSTrajectoryPoint *) aTrajectoryPoint);
|
||||
WLSTrajPointAllocator->FreeSingle((WLSTrajectoryPoint*) aTrajectoryPoint);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user