27 #ifndef SToGS_CopClusterHit_h
28 #define SToGS_CopClusterHit_h 1
31 #include "G4THitsCollection.hh"
32 #include "G4Allocator.hh"
33 #include "G4ThreeVector.hh"
36 #ifndef G4MULTITHREADED
68 inline void *
operator new(size_t);
69 inline void operator delete(
void *aHit);
85 void SetToF (G4double de, G4double tf = 0.0)
89 void SetPos(G4double de, G4ThreeVector xyz = G4ThreeVector(0.,0.,0.))
143 void AddPos (G4double de, G4ThreeVector xyz)
145 pos.setX(pos.x()+de*xyz.x()); pos.setY(pos.y()+de*xyz.y()); pos.setZ(pos.z()+de*xyz.z());
163 G4String motherDetName;
171 inline void* CopClusterHit::operator
new(size_t)
177 inline void CopClusterHit::operator
delete(
void *aHit)
G4ThreadLocal G4Allocator< CopClusterHit > * CopClusterHitAllocator
void SetDetName(G4String name)
void EndOfEvent()
to be applied at the end of an event to calculate properly the mean values
void SetMotherID(G4int id)
void AddEdep(G4double de)
G4THitsCollection< CopClusterHit > CopClusterHitsCollection
void SetNbHits(G4int nb=0)
void AddToF(G4double de, G4double t)
void SetMotherDetName(G4String name)
void SetToF(G4double de, G4double tf=0.0)
void AddPos(G4double de, G4ThreeVector xyz)
void SetEdep(G4double de=0.0)
Informations to keep the energy is in a sensitive detector.
const G4ThreeVector & GetPos()
G4int operator==(const CopClusterHit &right) const
void SetPos(G4double de, G4ThreeVector xyz=G4ThreeVector(0., 0., 0.))
const CopClusterHit & operator=(const CopClusterHit &right)
G4int GetMotherID() const