DD4hep
1.30.0
Detector Description Toolkit for High Energy Physics
DDG4
include
DDG4
Geant4InteractionMerger.h
Go to the documentation of this file.
1
//==========================================================================
2
// AIDA Detector description implementation
3
//--------------------------------------------------------------------------
4
// Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5
// All rights reserved.
6
//
7
// For the licensing terms see $DD4hepINSTALL/LICENSE.
8
// For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9
//
10
// Author : M.Frank
11
//
12
//==========================================================================
13
22
#ifndef DDG4_GEANT4INTERACTIONMERGER_H
23
#define DDG4_GEANT4INTERACTIONMERGER_H
24
25
// Framework include files
26
#include <
DDG4/Geant4GeneratorAction.h
>
27
29
namespace
dd4hep
{
30
32
namespace
sim {
33
34
// Forward declarations
35
class
Geant4PrimaryInteraction;
36
38
47
class
Geant4InteractionMerger
:
public
Geant4GeneratorAction
{
49
void
appendInteraction
(
Geant4PrimaryInteraction
* output,
Geant4PrimaryInteraction
* input);
50
public
:
52
Geant4InteractionMerger
(
Geant4Context
*
context
,
const
std::string& nam);
54
virtual
~Geant4InteractionMerger
();
56
virtual
void
operator()
(G4Event* event)
override
;
57
};
58
}
// End namespace sim
59
}
// End namespace dd4hep
60
61
#endif // DDG4_GEANT4INTERACTIONMERGER_H
dd4hep::sim::Geant4InteractionMerger::~Geant4InteractionMerger
virtual ~Geant4InteractionMerger()
Default destructor.
dd4hep::sim::Geant4PrimaryInteraction
Class modelling a single interaction with multiple primary vertices and particles.
Definition:
Geant4Primary.h:95
dd4hep::sim::Geant4InteractionMerger::Geant4InteractionMerger
Geant4InteractionMerger(Geant4Context *context, const std::string &nam)
Standard constructor.
Geant4GeneratorAction.h
dd4hep::sim::Geant4GeneratorAction
Concrete implementation of the Geant4 generator action base class.
Definition:
Geant4GeneratorAction.h:47
dd4hep::sim::Geant4InteractionMerger::operator()
virtual void operator()(G4Event *event) override
Event generation action callback.
Geant4InteractionMerger
Geant4Action to merge several independent interaction to one.
dd4hep
Namespace for the AIDA detector description toolkit.
Definition:
AlignmentsCalib.h:28
dd4hep::sim::Geant4InteractionMerger::appendInteraction
void appendInteraction(Geant4PrimaryInteraction *output, Geant4PrimaryInteraction *input)
Append input interaction to global output.
dd4hep::sim::Geant4Context
Generic context to extend user, run and event information.
Definition:
Geant4Context.h:201
dd4hep::sim::Geant4Action::context
Geant4Context * context() const
Access the context.
Definition:
Geant4Action.h:270
Generated on Thu Jan 9 2025 17:18:07 for DD4hep by
1.8.18