Import Geant4 7.0.0 source tree
This commit is contained in:
@@ -0,0 +1,111 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: RE01TrackInformation.hh,v 1.1 2004/11/26 07:37:41 asaim Exp $
|
||||
// GEANT4 tag $Name: geant4-07-00-cand-01 $
|
||||
//
|
||||
|
||||
#ifndef RE01TrackInformation_h
|
||||
#define RE01TrackInformation_h 1
|
||||
|
||||
#include "globals.hh"
|
||||
#include "G4ThreeVector.hh"
|
||||
#include "G4ParticleDefinition.hh"
|
||||
#include "G4Track.hh"
|
||||
#include "G4Allocator.hh"
|
||||
#include "G4VUserTrackInformation.hh"
|
||||
|
||||
class RE01TrackInformation : public G4VUserTrackInformation
|
||||
{
|
||||
public:
|
||||
RE01TrackInformation();
|
||||
RE01TrackInformation(const G4Track* aTrack);
|
||||
RE01TrackInformation(const RE01TrackInformation* aTrackInfo);
|
||||
virtual ~RE01TrackInformation();
|
||||
|
||||
inline void *operator new(size_t);
|
||||
inline void operator delete(void *aTrackInfo);
|
||||
inline int operator ==(const RE01TrackInformation& right) const
|
||||
{return (this==&right);}
|
||||
|
||||
RE01TrackInformation& operator =(const RE01TrackInformation& right);
|
||||
|
||||
void SetSourceTrackInformation(const G4Track* aTrack);
|
||||
void Print() const;
|
||||
|
||||
private:
|
||||
// Information of the primary track at the primary vertex
|
||||
G4int originalTrackID; // Track ID of primary particle
|
||||
G4ParticleDefinition* particleDefinition;
|
||||
G4ThreeVector originalPosition;
|
||||
G4ThreeVector originalMomentum;
|
||||
G4double originalEnergy;
|
||||
G4double originalTime;
|
||||
|
||||
G4int trackingStatus;
|
||||
// trackingStatus = 1 : primary or secondary track which has not yet reached to calorimeter
|
||||
// = 0 : track which or ancester of which has reached to calorimeter
|
||||
|
||||
// = 2 : track or its ancester had once reached to calorimeter and
|
||||
// then escaped from it
|
||||
// Information of the track which reached to the calorimeter boundary at the boundary surface
|
||||
// This information is valid only for trackingStatus = 0 or 2
|
||||
G4int sourceTrackID;
|
||||
G4ParticleDefinition* sourceDefinition;
|
||||
G4ThreeVector sourcePosition;
|
||||
G4ThreeVector sourceMomentum;
|
||||
G4double sourceEnergy;
|
||||
G4double sourceTime;
|
||||
|
||||
public:
|
||||
inline G4int GetOriginalTrackID() const {return originalTrackID;}
|
||||
inline G4ParticleDefinition* GetOriginalParticle() const {return particleDefinition;}
|
||||
inline G4ThreeVector GetOriginalPosition() const {return originalPosition;}
|
||||
inline G4ThreeVector GetOriginalMomentum() const {return originalMomentum;}
|
||||
inline G4double GetOriginalEnergy() const {return originalEnergy;}
|
||||
inline G4double GetOriginalTime() const {return originalTime;}
|
||||
|
||||
inline G4int GetTrackingStatus() const {return trackingStatus;}
|
||||
inline void SetTrackingStatus(G4int i) {trackingStatus = i;}
|
||||
|
||||
inline G4int GetSourceTrackID() const {return sourceTrackID;}
|
||||
inline G4ParticleDefinition* GetSourceParticle() const {return sourceDefinition;}
|
||||
inline G4ThreeVector GetSourcePosition() const {return sourcePosition;}
|
||||
inline G4ThreeVector GetSourceMomentum() const {return sourceMomentum;}
|
||||
inline G4double GetSourceEnergy() const {return sourceEnergy;}
|
||||
inline G4double GetSourceTime() const {return sourceTime;}
|
||||
};
|
||||
|
||||
extern G4Allocator<RE01TrackInformation> aTrackInformationAllocator;
|
||||
|
||||
inline void* RE01TrackInformation::operator new(size_t)
|
||||
{ void* aTrackInfo;
|
||||
aTrackInfo = (void*)aTrackInformationAllocator.MallocSingle();
|
||||
return aTrackInfo;
|
||||
}
|
||||
|
||||
inline void RE01TrackInformation::operator delete(void *aTrackInfo)
|
||||
{ aTrackInformationAllocator.FreeSingle((RE01TrackInformation*)aTrackInfo);}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user