36 #include "TrackingAction.hh"
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)
static G4Gamma * Definition()
const G4ParticleDefinition * GetParticleDefinition() const
G4Region * GetRegion(const G4String &name, G4bool verbose=true) const
std::map< const G4ParticleDefinition *, int > fNParticleInWorld
std::map< const G4ParticleDefinition *, int > fNParticleInTarget
G4Region * fpTargetRegion
const G4ThreeVector & GetPosition() const
static G4Electron * Definition()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *description)
std::vector< G4LogicalVolume * >::iterator GetRootLogicalVolumeIterator()
static G4RegionStore * GetInstance()
void PreUserTrackingAction(const G4Track *)
size_t GetNumberOfRootVolumes() const