19#ifndef BDSHITTHINTHING_H
20#define BDSHITTHINTHING_H
22#include "G4Allocator.hh"
24#include "G4THitsCollection.hh"
35extern G4Allocator<BDSHitThinThing> BDSAllocatorThinThing;
57 inline void*
operator new(size_t);
58 inline void operator delete(
void* aHit);
72 static std::vector<const BDSTrajectoryPointHit*>
73 ResolvePossibleEarlierThinHits(
const std::vector<const BDSTrajectoryPrimary*>& primaryTrajectoryHits,
80inline void* BDSHitThinThing::operator
new(size_t)
83 aHit=(
void*) BDSAllocatorThinThing.MallocSingle();
87inline 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.