46 const G4Step* realWorldStep = aStep->GetTrack()->GetStep();
49 G4LogicalVolume* stepLV = realWorldStep->GetPreStepPoint()->GetPhysicalVolume()->GetLogicalVolume();
50 G4Material* stepMaterial = stepLV->GetMaterial();
52 G4bool found = std::find(materials.begin(), materials.end(), stepMaterial) != materials.end();
53 return inclusive ? found : !found;