Analysis Software
Documentation for
sPHENIX
simulation software
Home page
Related Pages
Modules
Namespaces
Classes
Files
Examples
External Links
File List
File Members
Analysis Software
Deprecated List
Modules
Namespaces
Classes
Files
File List
acts
blob
sPHENIX
Alignment
CI
cmake
Core
docs
Examples
Algorithms
Alignment
AmbiguityResolution
Digitization
Fatras
Geant4
Geant4HepMC
include
src
EventAction.cpp
EventAction.hpp
EventRecording.cpp
PrimaryGeneratorAction.cpp
PrimaryGeneratorAction.hpp
RunAction.cpp
RunAction.hpp
SteppingAction.cpp
SteppingAction.hpp
Generators
GeneratorsPythia8
Geometry
HepMC
MaterialMapping
Printers
Propagation
TrackFinding
TrackFindingExaTrkX
TrackFindingML
TrackFitting
TruthTracking
Utilities
Vertexing
Detectors
Framework
Io
Python
Run
Scripts
Fatras
Plugins
Tests
acts-fatras
analysis
analysis_tpc_prototype
coresoftware
Doxygen_Assist
g4exampledetector
GenFit
JETSCAPE
KFParticle
macros
online_distribution
OnlMon
prototype
pythia6
rcdaq
RDBC
tutorials
doxygen_mainpage.h
File Members
Examples
External Links
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
EventAction.hpp
Go to the documentation of this file.
Or view
the newest version in sPHENIX GitHub for file EventAction.hpp
1
// This file is part of the Acts project.
2
//
3
// Copyright (C) 2020 CERN for the benefit of the Acts project
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
9
#pragma once
10
11
#include <map>
12
#include <memory>
13
#include <string>
14
15
#include <G4UserEventAction.hh>
16
#include <HepMC3/GenEvent.h>
17
#include <globals.hh>
18
19
namespace
ActsExamples::Geant4::HepMC3 {
20
25
class
EventAction
final :
public
G4UserEventAction {
26
public
:
28
static
EventAction
*
instance
();
29
31
EventAction
(std::vector<std::string> processFilter);
32
~EventAction
()
override
;
33
37
void
BeginOfEventAction
(
const
G4Event*
event
)
override
;
38
41
void
EndOfEventAction
(
const
G4Event* event)
override
;
42
44
void
clear
();
45
47
::HepMC3::GenEvent&
event
();
48
49
private
:
51
static
EventAction
*
s_instance
;
53
::HepMC3::GenEvent
m_event
;
55
std::vector<std::string>
m_processFilter
;
56
};
57
}
// namespace ActsExamples::Geant4::HepMC3
acts
blob
sPHENIX
Examples
Algorithms
Geant4HepMC
src
EventAction.hpp
Built by
Jin Huang
. updated:
Sat Feb 17 2024 22:17:36
using
1.8.2 with
sPHENIX GitHub integration