Import Geant4 9.5.0 source tree
This commit is contained in:
@@ -25,16 +25,6 @@
|
||||
//
|
||||
//
|
||||
// --------------------------------------------------------------
|
||||
// GEANT 4 - Underground Dark Matter Detector Advanced Example
|
||||
//
|
||||
// For information related to this code contact: Alex Howard
|
||||
// e-mail: a.s.howard@ic.ac.uk
|
||||
// --------------------------------------------------------------
|
||||
// Comments
|
||||
//
|
||||
//
|
||||
// TrackerHit header
|
||||
// --------------------------------------------------------------
|
||||
|
||||
#ifndef ExN04TrackerHit_h
|
||||
#define ExN04TrackerHit_h 1
|
||||
@@ -60,7 +50,7 @@ class ExN04TrackerHit : public G4VHit
|
||||
|
||||
ExN04TrackerHit(const ExN04TrackerHit &right);
|
||||
const ExN04TrackerHit& operator=(const ExN04TrackerHit &right);
|
||||
int operator==(const ExN04TrackerHit &right) const;
|
||||
G4int operator==(const ExN04TrackerHit &right) const;
|
||||
|
||||
inline void* operator new(size_t);
|
||||
inline void operator delete(void* aHit);
|
||||
@@ -80,13 +70,12 @@ class ExN04TrackerHit : public G4VHit
|
||||
|
||||
|
||||
public:
|
||||
|
||||
|
||||
inline void SetEdep(G4double de) {edep=de;};
|
||||
inline void SetPos(G4ThreeVector xyz) {pos=xyz;};
|
||||
|
||||
inline G4double GetEdep() const {return edep;};
|
||||
inline G4ThreeVector GetPos() const {return pos;};
|
||||
inline void SetEdep(G4double de) {edep=de;}
|
||||
inline void SetPos(G4ThreeVector xyz) {pos=xyz;}
|
||||
|
||||
inline G4double GetEdep() const {return edep;}
|
||||
inline G4ThreeVector GetPos() const {return pos;}
|
||||
|
||||
};
|
||||
//MSH_END
|
||||
@@ -94,24 +83,18 @@ class ExN04TrackerHit : public G4VHit
|
||||
// vector collection of one type of hits
|
||||
typedef G4THitsCollection<ExN04TrackerHit> ExN04TrackerHitsCollection;
|
||||
|
||||
|
||||
extern G4Allocator<ExN04TrackerHit> ExN04TrackerHitAllocator;
|
||||
|
||||
|
||||
inline void* ExN04TrackerHit::operator new(size_t) {
|
||||
inline void* ExN04TrackerHit::operator new(size_t)
|
||||
{
|
||||
void* aHit;
|
||||
aHit = (void*) ExN04TrackerHitAllocator.MallocSingle();
|
||||
return aHit;
|
||||
}
|
||||
|
||||
|
||||
inline void ExN04TrackerHit::operator delete(void* aHit) {
|
||||
inline void ExN04TrackerHit::operator delete(void* aHit)
|
||||
{
|
||||
ExN04TrackerHitAllocator.FreeSingle((ExN04TrackerHit*) aHit);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user