16 :G4VSensitiveDetector(name)
20 collectionName.insert(
"TriggerScintillatorCollection");
57 G4Track *track = aStep->GetTrack();
58 G4String particlename = track->GetDefinition()->GetParticleName();
59 G4int particletype = track->GetDefinition()->GetPDGEncoding();
61 G4ThreeVector worldPos;
62 G4ThreeVector localPos;
63 G4ThreeVector worldMomentum;
65 G4TouchableHandle theTouchable = aStep->GetPreStepPoint()->GetTouchableHandle();
67 if (aStep->GetPreStepPoint()->GetStepStatus() == fGeomBoundary ) {
69 worldPos = aStep->GetPreStepPoint()->GetPosition();
70 localPos = theTouchable->GetHistory()->GetTopTransform().TransformPoint(worldPos);
71 worldMomentum = aStep->GetPreStepPoint()->GetMomentum();
76 G4ThreeVector localMomentum = theTouchable->GetHistory()->GetTopTransform().TransformPoint(worldMomentum);
79 G4ThreeVector originVertexPosition = aStep->GetTrack()->GetVertexPosition();
80 G4ThreeVector originVertexMomentumDirection = aStep->GetTrack()->GetVertexMomentumDirection();
81 G4double originVertexKineticEnergy = aStep->GetTrack()->GetVertexKineticEnergy();
83 G4double currentKineticEnergy = aStep->GetTrack()->GetKineticEnergy();
84 G4double currentTotalEnergy = aStep->GetTrack()->GetTotalEnergy();
85 G4ThreeVector currentMomentumDirection = aStep->GetTrack()->GetMomentumDirection();
87 G4int trackID = aStep->GetTrack()->GetTrackID();
89 G4int MotherCopyNo = theTouchable->GetVolume(1)->GetCopyNo();
94 G4double depositedEnergy = aStep->GetTotalEnergyDeposit();
124 aHit->
StoreLogVolume(theTouchable->GetVolume()->GetLogicalVolume());
125 G4AffineTransform aTrans = theTouchable->GetHistory()->GetTopTransform();
void StoreParticleType(G4int pt)
void EndOfEvent(G4HCofThisEvent *HCE)
void StoreMomentumDirection(G4ThreeVector pxyz)
void StoreOriginVertexPosition(G4ThreeVector oxyz)
void StoreKineticEnergy(G4double ekin)
void StoreLogVolume(G4LogicalVolume *val)
void StoreWorldMomentum(G4ThreeVector gpxyz)
void StoreOriginVertexKineticEnergy(G4double oekin)
~QweakSimTriggerScintillator_DetectorSD()
void StoreLocalPosition(G4ThreeVector xyz)
void StoreLocalMomentum(G4ThreeVector lpxyz)
G4THitsCollection< QweakSimTriggerScintillator_DetectorHit > QweakSimTriggerScintillator_DetectorHitsCollection
G4int TriggerScintillator_CollectionID
void StoreCellPosition(G4ThreeVector xyz)
void StoreTotalEnergy(G4double etot)
void StoreDepositedEnergy(G4double dpeg)
void StoreOriginVertexTotalEnergy(G4double oetot)
G4bool ProcessHits(G4Step *aStep, G4TouchableHistory *ROhist)
void StoreCellRotation(G4RotationMatrix rmat)
void StoreOriginVertexMomentumDirection(G4ThreeVector opxyz)
void StoreTrackID(G4int tid)
void Initialize(G4HCofThisEvent *HCE)
QweakSimTriggerScintillator_DetectorSD(G4String name)
QweakSimTriggerScintillator_DetectorHitsCollection * TriggerScintillator_DetectorHitsCollection
void StoreWorldPosition(G4ThreeVector xyz)
void StoreParticleName(G4String pn)
const G4LogicalVolume * GetLogVolume() const
void StoreGlobalTime(G4double t)