38#include "G4LogicalVolume.hh"
39#include "G4ParticleDefinition.hh"
40#include "G4ParticleTypes.hh"
41#include "G4SDManager.hh"
43#include "G4TouchableHistory.hh"
45#include "G4VPhysicalVolume.hh"
46#include "G4VTouchable.hh"
53 collectionName.insert(
"pmtHitCollection");
69 for(
size_t i = 0; i < positions.size(); ++i)
107 if(aStep->GetTrack()->GetDefinition() !=
108 G4OpticalPhoton::OpticalPhotonDefinition())
114 aStep->GetPostStepPoint()->GetTouchable()->GetReplicaNumber(1);
116 aStep->GetPostStepPoint()->GetTouchable()->GetVolume(1);
121 for(
size_t i = 0; i < n; ++i)
125 hit = (*fPMTHitCollection)[i];
151 if(trackInfo->GetTrackStatus() &
hitSphere)
Definition of the LXeDetectorConstruction class.
Definition of the LXePMTHit class.
G4THitsCollection< LXePMTHit > LXePMTHitsCollection
Definition of the LXePMTSD class.
static G4bool GetSphereOn()
void SetPMTPos(G4double x, G4double y, G4double z)
void SetPMTPhysVol(G4VPhysicalVolume *physVol)
void SetPMTNumber(G4int n)
G4DataVector * fPMTPositionsX
G4DataVector * fPMTPositionsY
G4DataVector * fPMTPositionsZ
void Initialize(G4HCofThisEvent *) override
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *) override
LXePMTHitsCollection * fPMTHitCollection
void SetPmtPositions(const std::vector< G4ThreeVector > &positions)
G4bool ProcessHits_boundary(const G4Step *, G4TouchableHistory *)