15#include "G4THitsCollection.hh"
16#include "G4Allocator.hh"
17#include "G4ThreeVector.hh"
33 inline void*
operator new(size_t);
34 inline void operator delete(
void*);
42 void AddCrystal(G4double de, G4double dl) {TotalEdepCrystal += de; TotalTrackLengthCrystal += dl;};
49 void SetNumCrystal(G4int
id,G4int numTheta,G4int numPhi){PartId=id;NumTheta=numTheta;NumPhi=numPhi;};
70 G4double TotalEdepCrystal, TotalTrackLengthCrystal;
71 G4double EdepCrystal,TrackLengthCrystal;
73 G4ThreeVector PositionCrystal;
75 G4int PartId,NumTheta,NumPhi;
78 G4ThreeVector momentum;
89inline void* BesEmcHit::operator
new(size_t)
98inline void BesEmcHit::operator
delete(
void* aHit)
116 inline void*
operator new(size_t);
117 inline void operator delete(
void*);
130 inline void SetEDep(G4double de) { m_edep=de; }
147 std::map<Identifier,G4double>::const_iterator
Begin()
const;
148 std::map<Identifier,G4double>::const_iterator
End()
const;
149 std::map<Identifier,G4double>::const_iterator
Find(
Identifier)
const;
169 G4double m_PDGCharge;
171 G4String m_particleName;
175 G4ThreeVector m_momentum;
176 G4ThreeVector m_position;
177 std::map<Identifier,G4double> m_hitMap;
187inline void* BesEmcTruthHit::operator
new(size_t)
194inline void BesEmcTruthHit::operator
delete(
void* aHit)
G4Allocator< BesEmcTruthHit > BesEmcTruthHitAllocator
G4THitsCollection< BesEmcTruthHit > BesEmcTruthHitsCollection
G4Allocator< BesEmcHit > BesEmcHitAllocator
G4THitsCollection< BesEmcHit > BesEmcHitsCollection
void SetNumCrystal(G4int id, G4int numTheta, G4int numPhi)
G4double GetTotalEdepCrystal()
G4double GetTimeCrystal()
void SetEdepCrystal(G4double de)
void SetEdepCasing(G4double de)
void SetMomentum(G4ThreeVector momen)
G4ThreeVector GetPosCrystal()
G4double GetEdepCrystal()
G4ThreeVector GetMomentum()
void SetPosCrystal(G4ThreeVector position)
int operator==(const BesEmcHit &) const
G4int GetNumThetaCrystal()
G4double GetTotalTrakCrystal()
void AddCrystal(G4double de, G4double dl)
void SetTimeCrystal(G4double t)
void SetTrakCrystal(G4double dl)
void SetG4Index(G4int index)
const BesEmcHit & operator=(const BesEmcHit &)
G4double GetTrakCrystal()
void SetTrackIndex(G4int index)
void SetIdentify(Identifier id)
G4int GetTrackIndex() const
void SetMomentum(G4ThreeVector p)
void SetPosition(G4ThreeVector pos)
G4ThreeVector GetPosition() const
void AddEHit(Identifier, G4double)
void SetPDGCode(G4int code)
void SetTrackIndex(G4int index)
std::map< Identifier, G4double >::const_iterator End() const
std::map< Identifier, G4double >::const_iterator Find(Identifier) const
const BesEmcTruthHit & operator=(const BesEmcTruthHit &)
void Insert(Identifier, G4double)
G4double GetPDGCharge() const
G4int operator==(const BesEmcTruthHit &) const
void SetG4TrackId(G4int trackId)
G4int GetG4TrackId() const
void SetEDep(G4double de)
G4double GetEHit(Identifier)
G4String GetParticleName() const
std::map< Identifier, G4double >::const_iterator Begin() const
G4ThreeVector GetMomentum() const
void SetParticleName(G4String name)
virtual ~BesEmcTruthHit()
void SetTime(G4double time)
void SetPDGCharge(G4double charge)
Identifier GetIdentify() const