36#include "G4GFlashSpot.hh"
38#include "G4TouchableHistory.hh"
39#include "G4VPhysicalVolume.hh"
40#include "G4VTouchable.hh"
50 G4String caloname =
"ExGflashCollection";
51 collectionName.insert(caloname);
63 fHCID = GetCollectionID(0);
78 G4double e = aStep->GetTotalEnergyDeposit();
79 if (e <= 0.)
return false;
89 caloHit->SetPos(aStep->GetPreStepPoint()->GetPosition());
96 for (
int i = 0; i < 100; i++)
100 caloHit->SetCrystalNum(crystalnum);
110 G4double e = aSpot->GetEnergySpot()->GetEnergy();
111 if (e <= 0.)
return false;
117 caloHit->SetPos(aSpot->GetEnergySpot()->GetPosition());
123 G4int crystalnum = 0;
124 for (
int i = 0; i < 100; i++)
128 caloHit->SetCrystalNum(crystalnum);
Definition of the ExGflash1DetectorConstruction class.
Definition of the ExGflash1SensitiveDetector class.
Definition of the ExGflashHit class.
const G4VPhysicalVolume * GetCristal(int aNumCrystal)
ExGflash1DetectorConstruction * fDetector
ExGflashHitsCollection * fCaloHitsCollection
void EndOfEvent(G4HCofThisEvent *) override
~ExGflash1SensitiveDetector() override
ExGflash1SensitiveDetector(G4String, ExGflash1DetectorConstruction *det)
void Initialize(G4HCofThisEvent *) override
G4bool ProcessHits(G4Step *, G4TouchableHistory *) override