28 #include "G4VVisManager.hh"
29 #include "G4Circle.hh"
30 #include "G4Colour.hh"
31 #include "G4VisAttributes.hh"
32 #include "G4UnitsTable.hh"
53 trackID = from.trackID;
54 parentID = from.parentID;
55 primaryID = from.primaryID;
57 motherID = from.motherID;
60 processName = from.processName;
61 particleName = from.particleName;
62 detName = from.detName;
63 motherDetName = from.motherDetName;
64 PDGcode = from.PDGcode;
74 trackID = from.trackID;
75 parentID = from.parentID;
76 primaryID = from.primaryID;
78 motherID = from.motherID;
81 processName = from.processName;
82 particleName = from.particleName;
83 detName = from.detName;
84 motherDetName = from.motherDetName;
85 PDGcode = from.PDGcode;
92 return (
this==&from) ? 1 : 0;
97 G4VVisManager* pVVisManager = G4VVisManager::GetConcreteInstance();
100 G4Circle circle(pos);
101 circle.SetScreenSize(0.04); circle.SetFillStyle(G4Circle::filled);
103 G4Colour colour(1.,0.,0.);
104 G4VisAttributes attribs(G4Colour(1.,0.,0.)); circle.SetVisAttributes(attribs);
105 pVVisManager->Draw(circle);
112 G4cout <<
"--------------- SToGS::TrackerHit::Print() --------------------- " << G4endl;
113 G4cout <<
"trackID: " << trackID
114 <<
", parentID: " << parentID
115 <<
", primaryID: " << primaryID
116 <<
", particleName: " << particleName
117 <<
", PDG: " << PDGcode
118 <<
", processName: " << processName
120 <<
"detID: " << detID
121 <<
", detName: " << detName
122 <<
", motherID: " << motherID
123 <<
", motherDetName: " << motherDetName << G4endl;
124 G4cout <<
"edep: " << edep / CLHEP::keV <<
" keV"
126 <<
", ToF: " << ToF / CLHEP::ns <<
" ns" << G4endl;
127 G4cout <<
"--------------------------------------------------------------" << G4endl;
G4int operator==(const TrackerHit &right) const
const TrackerHit & operator=(const TrackerHit &right)
G4ThreadLocal G4Allocator< TrackerHit > * TrackerHitAllocator
Informations to be kept at each step if a positive energy is deposited in a sensitive detector...