Use atomic for event counter in BCIDFilterTool and fix counting of passed events.
atomic
BCIDFilterTool