18#ifndef BDSHITTHINTHING_H
19#define BDSHITTHINTHING_H
21#include "G4Allocator.hh"
23#include "G4THitsCollection.hh"
34extern G4Allocator<BDSHitThinThing> BDSAllocatorThinThing;
56 inline void*
operator new(size_t);
57 inline void operator delete(
void* aHit);
71 static std::vector<const BDSTrajectoryPointHit*>
72 ResolvePossibleEarlierThinHits(
const std::vector<const BDSTrajectoryPrimary*>& primaryTrajectoryHits,
79inline void* BDSHitThinThing::operator
new(size_t)
82 aHit=(
void*) BDSAllocatorThinThing.MallocSingle();
86inline void BDSHitThinThing::operator
delete(
void* aHit)
A hit if a particle lost energy in a thin object.
BDSHitThinThing()=delete
No default constructor.
BDSTrajectoryPointHit * GetNewTrajectoryPointHit() const
Allocate and return a new hit object.
virtual ~BDSHitThinThing()
Note this should not be inline when we use a G4Allocator.
static std::vector< const BDSTrajectoryPoint * > TrajectoryPointsFromHC(BDSHitsCollectionThinThing *hits)
Utility function to get a vector of trajectory points from the hits collection.
A summary trajectory object of a loss point.
A Point in a trajectory with extra information.
Trajectory information for only the primary.