LDMX Software
Functions
APrimePhysics.cxx File Reference

Class which defines basic APrime physics. More...

#include "SimCore/APrimePhysics.h"
#include "G4DarkBreM/G4APrime.h"
#include "G4DarkBreM/G4DarkBreMModel.h"
#include "SimCore/UserEventInformation.h"
#include "G4Electron.hh"
#include "G4EventManager.hh"
#include "G4ProcessManager.hh"

Go to the source code of this file.

Functions

static void simcore::store_element_z (const G4Element &element)
 Store the atomic Z for the element in which the dark brem occurred.
 

Detailed Description

Class which defines basic APrime physics.

Author
Michael Revering, University of Minnesota
Tom Eichlersmith, University of Minnesota

Definition in file APrimePhysics.cxx.

Function Documentation

◆ store_element_z()

static void simcore::store_element_z ( const G4Element &  element)
static

Store the atomic Z for the element in which the dark brem occurred.

This function is registered with G4DarkBremsstrahlung and will be called with the element that the dark brem will occurr off of. We store the element Z in UserEventInformation for later serialization into the EventHeader

Parameters
[in]elementG4Element off-which the dark brem occurred

Definition at line 33 of file APrimePhysics.cxx.

33 {
34 static_cast<UserEventInformation*>(
35 G4EventManager::GetEventManager()->GetUserInformation())
36 ->setDarkBremMaterialZ(element.GetZ());
37}

References simcore::store_element_z().

Referenced by simcore::APrimePhysics::ConstructProcess(), and simcore::store_element_z().