Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions ALICE3/Macros/Fluence/ALICE3Field.C
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ std::function<void(const double*, double*)> field()
double R2;
double B1;
double B2;
double beamStart = 500.; // [cm]
double tokGauss = 1. / 0.1; // conversion from Tesla to kGauss
double beamStart = 500.; // [cm]
double tokGauss = 1. / 0.1; // conversion from Tesla to kGauss

bool isMagAbs = true;

Expand All @@ -37,7 +37,7 @@ std::function<void(const double*, double*)> field()
R2 = 290.; // [cm]

// To set the B2
B1 = 2.; // [T]
B1 = 2.; // [T]
B2 = -Rc * Rc * B1 / ((R2 * R2 - R1 * R1)); // [T]

if ((abs(x[2]) <= beamStart) && (sqrt(x[0] * x[0] + x[1] * x[1]) < Rc)) {
Expand Down
Loading