1 #ifndef __RAT_GeoFiberSensitiveDetectorHit__
2 #define __RAT_GeoFiberSensitiveDetectorHit__
4 #include <G4Allocator.hh>
5 #include <G4LogicalVolume.hh>
6 #include <G4RotationMatrix.hh>
7 #include <G4THitsCollection.hh>
8 #include <G4ThreeVector.hh>
9 #include <G4Transform3D.hh>
22 inline void *
operator new(size_t);
23 inline void operator delete(
void *aHit);
32 G4ThreeVector hit_pos;
34 const G4LogicalVolume *pLogV;
38 inline G4int GetID()
const {
return id; }
39 inline G4double GetTime()
const {
return time; }
40 inline void SetTime(G4double val) { time = val; }
41 inline void SetPos(G4ThreeVector xyz) { pos = xyz; }
42 inline G4ThreeVector GetPos()
const {
return pos; }
43 inline void SetHitPos(G4ThreeVector xyz) { hit_pos = xyz; }
44 inline G4ThreeVector GetHitPos()
const {
return hit_pos; }
45 inline void SetRot(G4RotationMatrix rmat) { rot = rmat; }
46 inline G4RotationMatrix GetRot()
const {
return rot; }
47 inline void SetLogV(G4LogicalVolume *val) { pLogV = val; }
48 inline const G4LogicalVolume *GetLogV()
const {
return pLogV; }
51 typedef G4THitsCollection<GeoFiberSensitiveDetectorHit> GeoFiberSensitiveDetectorHitsCollection;
53 extern G4Allocator<GeoFiberSensitiveDetectorHit> GeoFiberSensitiveDetectorHitAllocator;
55 inline void *GeoFiberSensitiveDetectorHit::operator
new(size_t) {
57 aHit = (
void *)GeoFiberSensitiveDetectorHitAllocator.MallocSingle();
61 inline void GeoFiberSensitiveDetectorHit::operator
delete(
void *aHit) {
62 GeoFiberSensitiveDetectorHitAllocator.FreeSingle((GeoFiberSensitiveDetectorHit *)aHit);
Definition: GeoFiberSensitiveDetectorHit.hh:14
Definition: CCCrossSecMessenger.hh:29