Import Geant4 10.7.0 source tree

This commit is contained in:
Gabriele Cosmo
2020-12-04 12:30:43 +01:00
parent 67ba86d073
commit dab42d2018
3770 changed files with 226369 additions and 286486 deletions
@@ -33,48 +33,47 @@
#define TrackInformation_h 1
#include "globals.hh"
#include "G4ThreeVector.hh"
#include "G4ParticleDefinition.hh"
#include "G4Track.hh"
#include "G4Allocator.hh"
#include "G4VUserTrackInformation.hh"
class TrackInformation : public G4VUserTrackInformation
class G4Track;
class TrackInformation : public G4VUserTrackInformation
{
public:
public:
TrackInformation();
TrackInformation(const G4Track* aTrack);
TrackInformation(const TrackInformation* aTrackInfo);
virtual ~TrackInformation();
inline void *operator new(size_t);
inline void operator delete(void *aTrackInfo);
TrackInformation& operator =(const TrackInformation& right);
inline void* operator new(size_t);
inline void operator delete(void* aTrackInfo);
TrackInformation& operator=(const TrackInformation& right);
void SetSourceTrackInformation(const G4Track* aTrack);
virtual void Print() const;
public:
inline G4bool GetIsFirstTankX() const {return fFirstTankX;}
inline void SetIsFirstTankX(G4bool b) {fFirstTankX = b;}
public:
inline G4bool GetIsFirstTankX() const { return fFirstTankX; }
inline void SetIsFirstTankX(G4bool b) { fFirstTankX = b; }
private:
G4bool fFirstTankX;
private:
G4bool fFirstTankX;
};
extern G4ThreadLocal
G4Allocator<TrackInformation> * aTrackInformationAllocator;
extern G4ThreadLocal G4Allocator<TrackInformation>* aTrackInformationAllocator;
inline void* TrackInformation::operator new(size_t)
{
if(!aTrackInformationAllocator)
aTrackInformationAllocator = new G4Allocator<TrackInformation>;
return (void*)aTrackInformationAllocator->MallocSingle();
return (void*) aTrackInformationAllocator->MallocSingle();
}
inline void TrackInformation::operator delete(void *aTrackInfo)
{ aTrackInformationAllocator->FreeSingle((TrackInformation*)aTrackInfo);}
inline void TrackInformation::operator delete(void* aTrackInfo)
{
aTrackInformationAllocator->FreeSingle((TrackInformation*) aTrackInfo);
}
#endif