36 #include "TrackingAction.hh"
70 if(fpTargetRegion == 0)
81 std::vector<G4LogicalVolume*>::iterator it_logicalVolumeInRegion =
84 bool inside_target =
false;
86 for(
int i = 0; i <
N ; i++, it_logicalVolumeInRegion++)
88 EInside test_status = (*it_logicalVolumeInRegion)->GetSolid()->
102 if(inside_target ==
true)
104 fNParticleInTarget[particleDefinition]++;
108 fNParticleInWorld[particleDefinition]++;
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
const G4ThreeVector & GetPosition() const
static G4Electron * Definition()
static G4RegionStore * GetInstance()
void PreUserTrackingAction(const G4Track *)
const G4ParticleDefinition * GetParticleDefinition() const
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
size_t GetNumberOfRootVolumes() const
static G4Gamma * Definition()
std::vector< G4LogicalVolume * >::iterator GetRootLogicalVolumeIterator()