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" 86 return (
this==&right) ? 1 : 0;
92 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
95 circle.SetScreenSize(4);
96 circle.SetFillStyle(G4Circle::filled);
97 G4Colour colour(1.,0.,0.);
98 G4VisAttributes attribs(colour);
99 circle.SetVisAttributes(attribs);
100 pVVisManager->Draw(circle);
107 G4cout <<
"##################################################################" 109 <<
"############### ActarSimSilGeantHit::Print() ###################" 115 G4cout <<
"detID: " <<
detID 120 G4cout <<
"edep: " <<
edep / MeV <<
" MeV" 121 <<
", pos: " <<
pos <<
" mm" << G4endl
122 <<
", prePos: " <<
prePos <<
" mm" << G4endl;
123 G4cout <<
"toF: " <<
toF / ns <<
" ns" <<
", localPos: " <<
localPos <<
" mm" 124 <<
", localPrePos: " <<
localPrePos <<
" mm" << G4endl;
125 G4cout <<
"##################################################################" G4int operator==(const ActarSimSilGeantHit &) const
Operator ==.
G4int detID
ID (copy) of the detector where the interaction takes place.
G4double eBeforeSil
Energy before entering silicon.
G4ThreeVector localPrePos
Local (for the given detName and detID) coordinates of interaction (postStep)
G4String preDetName
Name of the volume at the following step.
ActarSimSilGeantHit()
Constructor. Nothing to do.
G4Allocator< ActarSimSilGeantHit > ActarSimSilGeantHitAllocator
G4double particleCharge
Particle charge.
G4ThreeVector localPos
Local (for the given detName and detID) coordinates of interaction (postStep)
G4String postDetName
Name of the volume at the previous step.
G4double toF
ToF of the interaction (postStep)
G4ThreeVector prePos
PreStep position of the step.
const ActarSimSilGeantHit & operator=(const ActarSimSilGeantHit &)
Operator =.
~ActarSimSilGeantHit()
Destructor. Nothing to do.
G4String detName
Name of the volume where the interaction takes place.
G4double edep
Energy deposited in the step.
G4int particleID
Particle ID.
G4double eAfterSil
Energy when exiting silicon.
G4double particleMass
Particle mass.
void Print()
Prints full information about the calGeantHit.
void Draw()
Draws the Hit. A clear red point on the Hit position.
G4ThreeVector pos
PostStep position of the step.