5 #include <G4HCofThisEvent.hh>
6 #include <G4TouchableHistory.hh>
8 #include <G4SystemOfUnits.hh>
9 #include <G4SDManager.hh>
10 #include <G4OpticalPhoton.hh>
12 #include <utl/AugerUnits.h>
15 namespace G4StationSimulatorOG {
18 G4VSensitiveDetector(name), fHCID (-1)
20 collectionName.insert(
"pixelCollection");
41 if (step->GetTrack()->GetDefinition() != G4OpticalPhoton::OpticalPhotonDefinition() )
45 G4VPhysicalVolume*
const physVol = step->GetPreStepPoint()->GetPhysicalVolume();
46 const G4String& pixelName = physVol->GetName();
47 const G4int pixelId = physVol->GetCopyNo();
49 G4VPhysicalVolume*
const motherPhysVol = step->GetPreStepPoint()->GetTouchableHandle()->GetVolume(1);
50 const G4int moduleId = motherPhysVol->GetCopyNo();
54 const G4int collEntries = pc.entries();
57 for (G4int i = 0; i < collEntries; ++i) {
58 if (pc[i]->GetPixelName() == pixelName) {
76 const G4double time = step->GetTrack()->GetGlobalTime() * (
utl::ns/
CLHEP::ns);
void SetModuleId(const G4int id)
G4UMDPixelAction(const G4String &name)
void AddHit(const G4double t)
G4THitsCollection< G4StationSimulatorOG::G4UMDPixelHit > G4UMDPixelHitCollection
void SetPixelId(const G4int id)
void SetDrawIt(const G4bool draw)
G4UMDPixelHitCollection * fPixelCollection
G4bool ProcessHits(G4Step *const step, G4TouchableHistory *const rOhist) override
void Initialize(G4HCofThisEvent *const hce) override
void SetUMDPixelPhysVol(G4VPhysicalVolume *const physVol)
void SetPixelName(const G4String name)