16 #include "G4UnitsTable.hh" 17 #include "G4VVisManager.hh" 18 #include "G4Circle.hh" 19 #include "G4Colour.hh" 20 #include "G4VisAttributes.hh" 22 #include "G4PhysicalConstants.hh" 23 #include "G4SystemOfUnits.hh" 85 return (
this==&right) ? 1 : 0;
91 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
94 circle.SetScreenSize(4);
95 circle.SetFillStyle(G4Circle::filled);
96 G4Colour colour(1.,0.,0.);
97 G4VisAttributes attribs(colour);
98 circle.SetVisAttributes(attribs);
99 pVVisManager->Draw(circle);
106 G4cout <<
"##################################################################" 108 <<
"############### ActarSimSciGeantHit::Print() ###################" << G4endl
113 G4cout <<
"detID: " <<
detID 118 G4cout <<
"edep: " <<
edep / MeV <<
" MeV" 119 <<
", pos: " <<
pos <<
" mm" << G4endl
120 <<
", prePos: " <<
prePos <<
" mm" << G4endl;
121 G4cout <<
"toF: " <<
toF / ns <<
" ns" <<
", localPos: " <<
localPos <<
" mm" 122 <<
", localPrePos: " <<
localPrePos <<
" mm" << G4endl;
123 G4cout <<
"##################################################################" void Print()
Prints full information about the calGeantHit.
G4ThreeVector localPrePos
Local (for the given detName and detID) coordinates of interaction (postStep)
G4double eBeforePla
Energy before entering plastic.
G4ThreeVector pos
PostStep position of the step.
G4String detName
Name of the volume where the interaction takes place.
G4ThreeVector localPos
Local (for the given detName and detID) coordinates of interaction (postStep)
G4ThreeVector prePos
PreStep position of the step.
G4int detID
ID (copy) of the detector where the interaction takes place.
G4double particleCharge
Particle charge.
const ActarSimPlaGeantHit & operator=(const ActarSimPlaGeantHit &)
Operator =.
G4Allocator< ActarSimPlaGeantHit > ActarSimPlaGeantHitAllocator
ActarSimPlaGeantHit()
Constructor.
void Draw()
Draws the Hit. A clear red point on the Hit position.
G4double toF
ToF of the interaction (postStep)
~ActarSimPlaGeantHit()
Destructor.
G4double particleMass
Particle mass.
G4int operator==(const ActarSimPlaGeantHit &) const
Operator ==.
G4int particleID
Particle ID.
G4String preDetName
Name of the volume at the following step.
G4String postDetName
Name of the volume at the previous step.
G4double edep
Energy deposited in the step.
G4double eAfterPla
Energy when exiting plastic.