Skip to content

Commit

Permalink
Better alignment of the Track members
Browse files Browse the repository at this point in the history
  • Loading branch information
JuanGonzalezCaminero committed Nov 5, 2024
1 parent fa8ba18 commit b5a17d9
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
1 change: 0 additions & 1 deletion examples/Example1/macros/example1_ttbar.mac.in
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,3 @@
# run events with parametrised simulation
# by default all created models are active
/run/beamOn 8

2 changes: 1 addition & 1 deletion examples/Example1/macros/example1_ttbar_LHCb.mac.in
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
## Geant4 macro for modelling simplified sampling calorimeters
## =============================================================================
##
/run/numberOfThreads 8
/run/numberOfThreads 1
/control/verbose 0
/run/verbose 0
/process/verbose 0
Expand Down
2 changes: 2 additions & 0 deletions include/AdePT/core/AdePTTransport.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@
#include <G4HepEmStateInit.hh>
#include <G4HepEmParameters.hh>
#include <G4HepEmMatCutData.hh>
#ifdef USE_SPLIT_KERNELS
#include <G4HepEmElectronTrack.hh>
#include <G4HepEmGammaTrack.hh>
#endif

#include <iostream>
#include <iomanip>
Expand Down
21 changes: 12 additions & 9 deletions include/AdePT/core/Track.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
struct Track {
using Precision = vecgeom::Precision;

int parentID{0}; // Stores the track id of the initial particle given to AdePT

RanluxppDouble rngState;
double eKin;
double numIALeft[3];
Expand All @@ -36,26 +34,31 @@ struct Track {
vecgeom::NavigationState navState;

#ifdef USE_SPLIT_KERNELS
RanluxppDouble newRNG;

// Variables used to store track info needed for scoring
double preStepEKin;
vecgeom::Vector3D<Precision> preStepPos;
vecgeom::Vector3D<Precision> preStepDir;
vecgeom::NavigationState nextState;
vecgeom::NavigationState preStepNavState;
vecgeom::Vector3D<Precision> preStepPos;
vecgeom::Vector3D<Precision> preStepDir;
RanluxppDouble newRNG;
double preStepEKin{0};

// Variables used to store navigation results
long hitsurfID{0};
bool propagated{false};
double geometryStepLength{0};
double safety{0};
long hitsurfID{0};
#endif

int parentID{0}; // Stores the track id of the initial particle given to AdePT

#ifdef USE_SPLIT_KERNELS
bool propagated{false};

// Variables used to store results from G4HepEM
bool restrictedPhysicalStepLength{false};
bool stopped{false};
#endif


__host__ __device__ double Uniform() { return rngState.Rndm(); }

__host__ __device__ void InitAsSecondary(const vecgeom::Vector3D<Precision> &parentPos,
Expand Down

0 comments on commit b5a17d9

Please sign in to comment.