ATLAS Offline Software
Loading...
Searching...
No Matches
StepHelper.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3*/
4
5#ifndef SIMHELPERS_StepHelper_H
6#define SIMHELPERS_StepHelper_H
7
8#include "G4Step.hh"
9#include "G4EmProcessSubType.hh"
10#include "G4HadronicProcessType.hh"
11#include "G4DecayProcessType.hh"
12#include <string>
13#include <vector>
14
15class G4LogicalVolume;
16class G4VPhysicalVolume;
17class G4VProcess;
18
24namespace G4StepHelper {
26 G4ThreeVector preStepPosition(const G4Step* theStep);
28 G4ThreeVector postStepPosition(const G4Step* theStep);
30 std::string particleName(const G4Step* theStep);
32 int particlePDGCode(const G4Step* theStep);
34 double depositedEnergy(const G4Step* theStep);
36 G4LogicalVolume* getPreStepLogicalVolume(const G4Step* theStep, int iLevel=0);
38 std::string getPreStepLogicalVolumeName(const G4Step* theStep, int iLevel=0);
40 G4VPhysicalVolume* getPreStepPhysicalVolume(const G4Step* theStep, int iLevel=0);
42 G4LogicalVolume* getPostStepLogicalVolume(const G4Step* theStep, int iLevel=0);
44 std::string getPostStepLogicalVolumeName(const G4Step* theStep, int iLevel=0);
46 G4VPhysicalVolume* getPostStepPhysicalVolume(const G4Step* theStep, int iLevel=0);
48 int preStepBranchDepth(const G4Step* theStep);
50 int postStepBranchDepth(const G4Step* theStep);
52 const G4VProcess* getProcess(const G4Step* theStep);
54 std::string getProcessName(const G4Step* theStep);
56 G4int getProcessSubType(const G4Step* theStep);
57}
58
59#endif
helper functions to avoid having to play with the G4Step to retrieve relevant quantities.
Definition StepHelper.h:24
std::string getPreStepLogicalVolumeName(const G4Step *theStep, int iLevel=0)
TODO.
int particlePDGCode(const G4Step *theStep)
TODO.
double depositedEnergy(const G4Step *theStep)
TODO.
int postStepBranchDepth(const G4Step *theStep)
TODO.
G4VPhysicalVolume * getPreStepPhysicalVolume(const G4Step *theStep, int iLevel=0)
TODO.
G4ThreeVector preStepPosition(const G4Step *theStep)
TODO.
int preStepBranchDepth(const G4Step *theStep)
TODO.
const G4VProcess * getProcess(const G4Step *theStep)
TODO.
std::string particleName(const G4Step *theStep)
TODO.
G4ThreeVector postStepPosition(const G4Step *theStep)
TODO.
std::string getPostStepLogicalVolumeName(const G4Step *theStep, int iLevel=0)
TODO.
G4int getProcessSubType(const G4Step *theStep)
TODO.
G4LogicalVolume * getPreStepLogicalVolume(const G4Step *theStep, int iLevel=0)
TODO.
G4LogicalVolume * getPostStepLogicalVolume(const G4Step *theStep, int iLevel=0)
TODO.
std::string getProcessName(const G4Step *theStep)
TODO.
G4VPhysicalVolume * getPostStepPhysicalVolume(const G4Step *theStep, int iLevel=0)
TODO.