/* * Copyright (C) 2018 Université Clermont Auvergne, CNRS/IN2P3, LPC * Author: Valentin NIESS (niess@in2p3.fr) * * A Geant4 particle source of atmospheric muons using GOUPIL * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see */ #pragma once /* Forward declarations */ class IGoupilState; class G4VPhysicalVolume; /* Encapsulation of global GOUPIL settings */ class IGoupilUserAction { public: virtual ~IGoupilUserAction() {} virtual void BeginOfEventAction(const int & eventIndex, IGoupilState * state) = 0; virtual void EndOfEventAction(const bool& isValid, IGoupilState * state) = 0; virtual void SteppingAction(const int & stepIndex, const int & event, G4VPhysicalVolume * volume, IGoupilState * state, double field[6]) = 0; };