remage
Simulation framework for HPGe-based experiments
 
Loading...
Searching...
No Matches
RMGEventAction.hh
1// Copyright (C) 2022 Luigi Pertoldi <https://orcid.org/0000-0002-0467-2571>
2//
3// This program is free software: you can redistribute it and/or modify it under
4// the terms of the GNU Lesser General Public License as published by the Free
5// Software Foundation, either version 3 of the License, or (at your option) any
6// later version.
7//
8// This program is distributed in the hope that it will be useful, but WITHOUT
9// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
10// FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
11// details.
12//
13// You should have received a copy of the GNU Lesser General Public License
14// along with this program. If not, see <https://www.gnu.org/licenses/>.
15
16#ifndef _RMG_EVENT_ACTION_HH_
17#define _RMG_EVENT_ACTION_HH_
18
19#include <memory>
20
21#include "G4Event.hh"
22#include "G4UserEventAction.hh"
23
24class RMGRunAction;
32class RMGEventAction : public G4UserEventAction {
33
34 public:
35
36 RMGEventAction(RMGRunAction*);
37 ~RMGEventAction() = default;
38
39 RMGEventAction(RMGEventAction const&) = delete;
40 RMGEventAction& operator=(RMGEventAction const&) = delete;
41 RMGEventAction(RMGEventAction&&) = delete;
42 RMGEventAction& operator=(RMGEventAction&&) = delete;
43
45 void BeginOfEventAction(const G4Event*) override;
47 void EndOfEventAction(const G4Event*) override;
48
49 private:
50
51 RMGRunAction* fRunAction = nullptr;
52};
53
54#endif
55
56// vim: tabstop=2 shiftwidth=2 expandtab
void EndOfEventAction(const G4Event *) override
Run filtering schemes and, if the event is kept, fill the output ntuples.
Definition RMGEventAction.cc:74
void BeginOfEventAction(const G4Event *) override
Clear per-event output buffers and notify schemes that a new event has started.
Definition RMGEventAction.cc:31
Per-thread run action managing output files, ntuples and output schemes.
Definition RMGRunAction.hh:40