Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
put magnetic field into constant.cu file
Browse files Browse the repository at this point in the history
  • Loading branch information
YonsiG committed May 9, 2023
1 parent 9c9d618 commit 9d5b64a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions SDL/Constants.cu
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,4 @@ CUDA_CONST_VAR const float SDL::deltaZLum = 15.0;
CUDA_CONST_VAR const float SDL::pixelPSZpitch = 0.15;
CUDA_CONST_VAR const float SDL::strip2SZpitch = 5.0;
CUDA_CONST_VAR const float SDL::pt_betaMax = 7.0f;
CUDA_CONST_VAR const float SDL::magnetic_field = 3.8112;
1 change: 1 addition & 0 deletions SDL/Constants.cuh
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,6 @@ namespace SDL
extern CUDA_CONST_VAR const float pixelPSZpitch;
extern CUDA_CONST_VAR const float strip2SZpitch;
extern CUDA_CONST_VAR const float pt_betaMax;
extern CUDA_CONST_VAR const float magnetic_field;
}
#endif
2 changes: 1 addition & 1 deletion SDL/Quintuplet.cu
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ __device__ bool SDL::passT5RZConstraint(struct SDL::modules& modulesInGPU, struc
float Pz=(z_init-z1)/ds*Pt;
float p = sqrt(Px*Px+Py*Py+Pz*Pz);

float B = 3.8112;
float B = SDL::magnetic_field;
float a = -0.299792*B*charge;

float zsi, rtsi;
Expand Down

0 comments on commit 9d5b64a

Please sign in to comment.