DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4InputHandling.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 
14 #ifndef DDG4_GEANT4INPUTHANDLING_H
15 #define DDG4_GEANT4INPUTHANDLING_H
16 
17 // Framework include files
18 #include <DDG4/Geant4Primary.h>
19 
20 // Forward declarations
21 class G4Event;
22 class G4PrimaryVertex;
23 class G4PrimaryParticle;
24 
25 
27 namespace dd4hep {
28 
30  namespace sim {
31 
32  // Forward declarations
33  class Geant4Action;
34  class Geant4Context;
35 
38  Geant4Vertex* createPrimary(const G4PrimaryVertex* g4);
40 
42  Geant4Particle* createPrimary(int particle_id, const Geant4Vertex* v, const G4PrimaryParticle* g4p);
43 
45  Geant4PrimaryInteraction* createPrimary(int mask, Geant4PrimaryMap* pm, std::set<G4PrimaryVertex*>const& primaries);
46 
48  int generationInitialization(const Geant4Action* caller,const Geant4Context* context);
49 
51  int mergeInteractions(const Geant4Action* caller,const Geant4Context* context);
52 
54  int boostInteraction(const Geant4Action* caller,
56  double alpha);
57 
59  int smearInteraction(const Geant4Action* caller,
61  double dx, double dy, double dz, double dt);
62 
63 
65  int generatePrimaries(const Geant4Action* caller,
66  const Geant4Context* context,
67  G4Event* event);
68 
69  } // End namespace sim
70 } // End namespace dd4hep
71 #endif // DDG4_GEANT4INPUTHANDLING_H
dd4hep::sim::createPrimary
Geant4Vertex * createPrimary(const G4PrimaryVertex *g4)
Create a vertex object from its G4 counterpart.
Definition: Geant4InputHandling.cpp:39
v
View * v
Definition: MultiView.cpp:28
dd4hep::sim::mergeInteractions
int mergeInteractions(const Geant4Action *caller, const Geant4Context *context)
Merge all interactions present in the context.
Definition: Geant4InputHandling.cpp:226
dd4hep::sim::generationInitialization
int generationInitialization(const Geant4Action *caller, const Geant4Context *context)
Initialize the generation of one event.
Definition: Geant4InputHandling.cpp:143
dd4hep::sim::generatePrimaries
int generatePrimaries(const Geant4Action *caller, const Geant4Context *context, G4Event *event)
Generate all primary vertices corresponding to the merged interaction.
Definition: Geant4InputHandling.cpp:476
dd4hep::sim::Geant4PrimaryEvent::Interaction
Geant4PrimaryInteraction Interaction
Definition: Geant4Primary.h:151
dd4hep::sim::smearInteraction
int smearInteraction(const Geant4Action *caller, Geant4PrimaryEvent::Interaction *inter, double dx, double dy, double dz, double dt)
Smear the primary vertex of an interaction.
Definition: Geant4InputHandling.cpp:313
Geant4Primary.h
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::sim::boostInteraction
int boostInteraction(const Geant4Action *caller, Geant4PrimaryEvent::Interaction *inter, double alpha)
Boost particles of one interaction identified by its mask.
Definition: Geant4InputHandling.cpp:257