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