BDSIM
BDSIM is a Geant4 extension toolkit for simulation of particle transport in accelerator beamlines.
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Data Fields | Private Member Functions
BDSHitThinThing Class Reference

A hit if a particle lost energy in a thin object. More...

#include <BDSHitThinThing.hh>

Inheritance diagram for BDSHitThinThing:
Inheritance graph
Collaboration diagram for BDSHitThinThing:
Collaboration graph

Public Member Functions

 BDSHitThinThing (G4int pdgIDIn, G4int trackIDIn, G4int parentIDIn, G4int turnsTakenIn, BDSTrajectoryPoint *hitIn)
 
virtual ~BDSHitThinThing ()
 Note this should not be inline when we use a G4Allocator.
 
void * operator new (size_t)
 
void operator delete (void *aHit)
 
BDSTrajectoryPointHitGetNewTrajectoryPointHit () const
 Allocate and return a new hit object.
 

Static Public Member Functions

static std::vector< const BDSTrajectoryPoint * > TrajectoryPointsFromHC (BDSHitsCollectionThinThing *hits)
 Utility function to get a vector of trajectory points from the hits collection.
 
static std::vector< const BDSTrajectoryPointHit * > ResolvePossibleEarlierThinHits (const std::vector< const BDSTrajectoryPrimary * > &primaryTrajectoryHits, const BDSHitsCollectionThinThing *thinThingHits)
 

Data Fields

G4int pdgID
 
G4int trackID
 
G4int parentID
 
G4int turnsTaken
 
BDSTrajectoryPointhit
 

Private Member Functions

 BDSHitThinThing ()=delete
 No default constructor.
 

Detailed Description

A hit if a particle lost energy in a thin object.

Everything public for simplicity of the class.

Author
Laurie Nevay

Definition at line 45 of file BDSHitThinThing.hh.

Constructor & Destructor Documentation

◆ BDSHitThinThing()

BDSHitThinThing::BDSHitThinThing ( G4int  pdgIDIn,
G4int  trackIDIn,
G4int  parentIDIn,
G4int  turnsTakenIn,
BDSTrajectoryPoint hitIn 
)

Definition at line 32 of file BDSHitThinThing.cc.

◆ ~BDSHitThinThing()

BDSHitThinThing::~BDSHitThinThing ( )
virtual

Note this should not be inline when we use a G4Allocator.

Definition at line 44 of file BDSHitThinThing.cc.

Member Function Documentation

◆ GetNewTrajectoryPointHit()

BDSTrajectoryPointHit * BDSHitThinThing::GetNewTrajectoryPointHit ( ) const

Allocate and return a new hit object.

Definition at line 62 of file BDSHitThinThing.cc.

◆ operator delete()

void BDSHitThinThing::operator delete ( void *  aHit)
inline

Definition at line 87 of file BDSHitThinThing.hh.

◆ operator new()

void * BDSHitThinThing::operator new ( size_t  )
inline

Definition at line 80 of file BDSHitThinThing.hh.

◆ ResolvePossibleEarlierThinHits()

std::vector< const BDSTrajectoryPointHit * > BDSHitThinThing::ResolvePossibleEarlierThinHits ( const std::vector< const BDSTrajectoryPrimary * > &  primaryTrajectoryHits,
const BDSHitsCollectionThinThing thinThingHits 
)
static

Definition at line 68 of file BDSHitThinThing.cc.

◆ TrajectoryPointsFromHC()

std::vector< const BDSTrajectoryPoint * > BDSHitThinThing::TrajectoryPointsFromHC ( BDSHitsCollectionThinThing hits)
static

Utility function to get a vector of trajectory points from the hits collection.

Definition at line 49 of file BDSHitThinThing.cc.

Field Documentation

◆ hit

BDSTrajectoryPoint* BDSHitThinThing::hit

Definition at line 67 of file BDSHitThinThing.hh.

◆ parentID

G4int BDSHitThinThing::parentID

Definition at line 65 of file BDSHitThinThing.hh.

◆ pdgID

G4int BDSHitThinThing::pdgID

Definition at line 63 of file BDSHitThinThing.hh.

◆ trackID

G4int BDSHitThinThing::trackID

Definition at line 64 of file BDSHitThinThing.hh.

◆ turnsTaken

G4int BDSHitThinThing::turnsTaken

Definition at line 66 of file BDSHitThinThing.hh.


The documentation for this class was generated from the following files: