Date: Wed, 20 Nov 2024 17:04:18 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20=20@=2085dfb?=
=?UTF-8?q?34206ef8edf46e2557c1817ba9e83234958=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ShipBFieldMap_8cxx_source.html | 769 +++++++++++++++++----------------
ShipBFieldMap_8h_source.html | 18 +-
classShipBFieldMap.html | 769 +++++++++++++++++----------------
md_CHANGELOG.html | 1 +
4 files changed, 782 insertions(+), 775 deletions(-)
diff --git a/ShipBFieldMap_8cxx_source.html b/ShipBFieldMap_8cxx_source.html
index d0fc27c83..531047ed8 100644
--- a/ShipBFieldMap_8cxx_source.html
+++ b/ShipBFieldMap_8cxx_source.html
@@ -209,407 +209,410 @@
-
-
-
-
-
-
-
-
- 138 x = -
x; BxSign *= -1.0;
-
-
-
- 142 y = -
y; BxSign *= -1.0;
-
-
-
-
-
-
-
-
-
-
-
- 154 if (inside == kFALSE) {
return;}
-
-
-
-
-
-
- 161 Int_t iX = xBinInfo.first;
- 162 Int_t iY = yBinInfo.first;
- 163 Int_t iZ = zBinInfo.first;
-
-
- 166 if (iX == -1 || iY == -1 || iZ == -1) {
return;}
+
+
+
+
+
+
+
+
+
+ 139 x = -
x; BxSign *= -1.0;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 157 if (inside == kFALSE) {
return;}
+
+
+
+
+
+
+ 164 Int_t iX = xBinInfo.first;
+ 165 Int_t iY = yBinInfo.first;
+ 166 Int_t iZ = zBinInfo.first;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+ 169 if (iX == -1 || iY == -1 || iZ == -1) {
return;}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
- 208 if (fabs(
phi_) > 1e-6 || fabs(
theta_) > 1e-6 || fabs(
psi_) > 1e-6) {
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
+
+ 211 if (fabs(
phi_) > 1e-6 || fabs(
theta_) > 1e-6 || fabs(
psi_) > 1e-6) {
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
- 231 std::cout<<
"ShipBFieldMap::readMapFile() creating field "<<this->GetName()
-
+
+
-
-
+ 234 std::cout<<
"ShipBFieldMap::readMapFile() creating field "<<this->GetName()
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 252 std::cout<<
"ShipBFieldMap: could not find the file "<<
mapFileName_<<std::endl;
-
-
-
-
- 257 TTree* rTree =
dynamic_cast<TTree*
>(theFile->Get(
"Range"));
-
- 259 std::cout<<
"ShipBFieldMap: could not find Range tree in "<<
mapFileName_<<std::endl;
-
-
-
- 263 rTree->SetBranchAddress(
"xMin", &
xMin_);
- 264 rTree->SetBranchAddress(
"xMax", &
xMax_);
- 265 rTree->SetBranchAddress(
"dx", &
dx_);
- 266 rTree->SetBranchAddress(
"yMin", &
yMin_);
- 267 rTree->SetBranchAddress(
"yMax", &
yMax_);
- 268 rTree->SetBranchAddress(
"dy", &
dy_);
- 269 rTree->SetBranchAddress(
"zMin", &
zMin_);
- 270 rTree->SetBranchAddress(
"zMax", &
zMax_);
- 271 rTree->SetBranchAddress(
"dz", &
dz_);
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 255 std::cout<<
"ShipBFieldMap: could not find the file "<<
mapFileName_<<std::endl;
+
+
+
+
+ 260 TTree* rTree =
dynamic_cast<TTree*
>(theFile->Get(
"Range"));
+
+ 262 std::cout<<
"ShipBFieldMap: could not find Range tree in "<<
mapFileName_<<std::endl;
+
+
+
+ 266 rTree->SetBranchAddress(
"xMin", &
xMin_);
+ 267 rTree->SetBranchAddress(
"xMax", &
xMax_);
+ 268 rTree->SetBranchAddress(
"dx", &
dx_);
+ 269 rTree->SetBranchAddress(
"yMin", &
yMin_);
+ 270 rTree->SetBranchAddress(
"yMax", &
yMax_);
+ 271 rTree->SetBranchAddress(
"dy", &
dy_);
+ 272 rTree->SetBranchAddress(
"zMin", &
zMin_);
+ 273 rTree->SetBranchAddress(
"zMax", &
zMax_);
+ 274 rTree->SetBranchAddress(
"dz", &
dz_);
-
-
-
-
+
+
+
+
-
-
+
+
- 284 TTree*
dTree =
dynamic_cast<TTree*
>(theFile->Get(
"Data"));
-
- 286 std::cout<<
"ShipBFieldMap: could not find Data tree in "<<
mapFileName_<<std::endl;
-
-
-
-
-
- 292 dTree->SetBranchStatus(
"*", 0);
- 293 dTree->SetBranchStatus(
"Bx", 1);
- 294 dTree->SetBranchStatus(
"By", 1);
- 295 dTree->SetBranchStatus(
"Bz", 1);
-
- 297 dTree->SetBranchAddress(
"Bx", &
Bx);
- 298 dTree->SetBranchAddress(
"By", &
By);
- 299 dTree->SetBranchAddress(
"Bz", &
Bz);
-
- 301 Int_t nEntries =
dTree->GetEntries();
- 302 if (nEntries !=
N_) {
- 303 std::cout<<
"Expected "<<
N_<<
" field map entries but found "<<nEntries<<std::endl;
-
-
-
-
-
- 309 for (Int_t
i = 0;
i < nEntries;
i++) {
-
-
-
-
-
-
-
-
-
-
- 320 std::vector<Float_t> BVector(3);
- 321 BVector[0] =
Bx; BVector[1] =
By; BVector[2] =
Bz;
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 336 std::string tmpString(
"");
-
-
-
+
+
+
+ 287 TTree*
dTree =
dynamic_cast<TTree*
>(theFile->Get(
"Data"));
+
+ 289 std::cout<<
"ShipBFieldMap: could not find Data tree in "<<
mapFileName_<<std::endl;
+
+
+
+
+
+ 295 dTree->SetBranchStatus(
"*", 0);
+ 296 dTree->SetBranchStatus(
"Bx", 1);
+ 297 dTree->SetBranchStatus(
"By", 1);
+ 298 dTree->SetBranchStatus(
"Bz", 1);
+
+ 300 dTree->SetBranchAddress(
"Bx", &
Bx);
+ 301 dTree->SetBranchAddress(
"By", &
By);
+ 302 dTree->SetBranchAddress(
"Bz", &
Bz);
+
+ 304 Int_t nEntries =
dTree->GetEntries();
+ 305 if (nEntries !=
N_) {
+ 306 std::cout<<
"Expected "<<
N_<<
" field map entries but found "<<nEntries<<std::endl;
+
+
+
+
+
+ 312 for (Int_t
i = 0;
i < nEntries;
i++) {
+
+
+
+
+
+
+
+
+
+
+ 323 std::vector<Float_t> BVector(3);
+ 324 BVector[0] =
Bx; BVector[1] =
By; BVector[2] =
Bz;
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 339 std::string tmpString(
"");
-
-
-
-
+
+
+
+
-
-
-
-
- 350 getData >> tmpString >> tmpString >> tmpString;
-
-
-
-
-
- 356 Float_t
Bx(0.0),
By(0.0),
Bz(0.0);
-
- 358 for (Int_t
i = 0;
i <
N_;
i++) {
-
- 360 getData >>
Bx >>
By >>
Bz;
-
-
-
-
-
-
-
-
- 369 std::vector<Float_t> BVector(3);
- 370 BVector[0] =
Bx; BVector[1] =
By; BVector[2] =
Bz;
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 353 getData >> tmpString >> tmpString >> tmpString;
+
+
+
+
+
+ 359 Float_t
Bx(0.0),
By(0.0),
Bz(0.0);
+
+ 361 for (Int_t
i = 0;
i <
N_;
i++) {
+
+ 363 getData >>
Bx >>
By >>
Bz;
+
+
+
+
+
+
+
+
+ 372 std::vector<Float_t> BVector(3);
+ 373 BVector[0] =
Bx; BVector[1] =
By; BVector[2] =
Bz;
+
+
+
+
+
+
+
+
+
- 384 Bool_t inside(kFALSE);
-
-
- 387 y <= yMax_ && z >=
zMin_ &&
z <=
zMax_) {inside = kTRUE;}
+
+
+
+ 387 Bool_t inside(kFALSE);
-
-
-
-
-
-
-
-
+
+ 390 y <= yMax_ && z >=
zMin_ &&
z <=
zMax_) {inside = kTRUE;}
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
-
-
- 417 std::cout<<
"x limits: "<<
xMin_<<
", "<<
xMax_<<
", dx = "<<
dx_<<std::endl;
- 418 std::cout<<
"y limits: "<<
yMin_<<
", "<<
yMax_<<
", dy = "<<
dy_<<std::endl;
- 419 std::cout<<
"z limits: "<<
zMin_<<
", "<<
zMax_<<
", dz = "<<
dz_<<std::endl;
-
-
- 422 std::cout<<
"Angles : phi = "<<
phi_<<
", theta = "<<
theta_<<
", psi = "<<
psi_<<std::endl;
+
+
+
+
+
+
+ 420 std::cout<<
"x limits: "<<
xMin_<<
", "<<
xMax_<<
", dx = "<<
dx_<<std::endl;
+ 421 std::cout<<
"y limits: "<<
yMin_<<
", "<<
yMax_<<
", dy = "<<
dy_<<std::endl;
+ 422 std::cout<<
"z limits: "<<
zMin_<<
", "<<
zMax_<<
", dz = "<<
dz_<<std::endl;
- 424 std::cout<<
"Total number of bins = "<<
N_
- 425 <<
"; Nx = "<<
Nx_<<
", Ny = "<<
Ny_<<
", Nz = "<<
Nz_<<std::endl;
+
+ 425 std::cout<<
"Angles : phi = "<<
phi_<<
", theta = "<<
theta_<<
", psi = "<<
psi_<<std::endl;
-
-
+ 427 std::cout<<
"Total number of bins = "<<
N_
+ 428 <<
"; Nx = "<<
Nx_<<
", Ny = "<<
Ny_<<
", Nz = "<<
Nz_<<std::endl;
-
-
+
+
- 433 Float_t du(0.0), uMin(0.0), Nu(0);
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+ 436 Float_t du(0.0), uMin(0.0), Nu(0);
+
+
+
+
+
+
+
+
-
-
-
- 449 Float_t dist = (u - uMin)/du;
-
- 451 iBin =
static_cast<Int_t
>(dist);
-
- 453 fracL = (dist - iBin*1.0);
-
-
-
-
- 458 if (iBin < 0 || iBin >= Nu) {
- 459 iBin = -1; fracL = 0.0;
-
-
-
-
+
+
+
+
+
+
+ 452 Float_t dist = (u - uMin)/du;
+
+ 454 iBin =
static_cast<Int_t
>(dist);
+
+ 456 fracL = (dist - iBin*1.0);
+
+
+
+
+ 461 if (iBin < 0 || iBin >= Nu) {
+ 462 iBin = -1; fracL = 0.0;
+
-
-
-
-
-
-
+
+
+
+
+
+
-
-
+
+
- 475 Int_t index = (iX*
Ny_ + iY)*
Nz_ + iZ;
-
-
- 478 }
else if (index >=
N_) {
-
-
-
-
-
-
-
-
-
+
+
+
+ 478 Int_t index = (iX*
Ny_ + iY)*
Nz_ + iZ;
+
+
+ 481 }
else if (index >=
N_) {
+
+
+
+
+
+
-
-
-
-
-
-
- 495 if (theAxis == CoordAxis::yAxis) {
-
- 497 }
else if (theAxis == CoordAxis::zAxis) {
-
-
-
-
-
-
- 504 Float_t
A = (*fieldMap_)[
binA_][iAxis];
- 505 Float_t
B = (*fieldMap_)[
binB_][iAxis];
- 506 Float_t C = (*fieldMap_)[
binC_][iAxis];
- 507 Float_t D = (*fieldMap_)[
binD_][iAxis];
- 508 Float_t
E = (*fieldMap_)[
binE_][iAxis];
- 509 Float_t F = (*fieldMap_)[
binF_][iAxis];
- 510 Float_t
G = (*fieldMap_)[
binG_][iAxis];
- 511 Float_t
H = (*fieldMap_)[
binH_][iAxis];
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ 498 if (theAxis == CoordAxis::yAxis) {
+
+ 500 }
else if (theAxis == CoordAxis::zAxis) {
+
+
+
+
+
+
+ 507 Float_t
A = (*fieldMap_)[
binA_][iAxis];
+ 508 Float_t
B = (*fieldMap_)[
binB_][iAxis];
+ 509 Float_t C = (*fieldMap_)[
binC_][iAxis];
+ 510 Float_t D = (*fieldMap_)[
binD_][iAxis];
+ 511 Float_t
E = (*fieldMap_)[
binE_][iAxis];
+ 512 Float_t F = (*fieldMap_)[
binF_][iAxis];
+ 513 Float_t
G = (*fieldMap_)[
binG_][iAxis];
+ 514 Float_t
H = (*fieldMap_)[
binH_][iAxis];
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
+
+
+
+
+
+
+
+
Class that defines a (3d) magnetic field map (distances in cm, fields in tesla)
Float_t zFrac_
Fractional bin distance along z.
@@ -624,7 +627,7 @@
Float_t zFrac1_
Complimentary fractional bin distance along z.
ShipBFieldMap(const std::string &label, const std::string &mapFileName, Float_t xOffset=0.0, Float_t yOffset=0.0, Float_t zOffset=0.0, Float_t phi=0.0, Float_t theta=0.0, Float_t psi=0.0, Float_t scale=1.0, Bool_t isSymmetric=kFALSE)
Constructor.
Int_t binE_
Bin E for the trilinear interpolation.
-Float_t BInterCalc(CoordAxis theAxis)
+Float_t BInterCalc(CoordAxis theAxis)
Int_t Nz_
The number of bins along z.
Float_t Tesla_
Double converting Tesla to kiloGauss (for VMC/FairRoot B field units)
Int_t N_
The total number of bins.
@@ -634,7 +637,7 @@
Float_t yMin_
The minimum value of y for the map.
Float_t zOffset_
The z value of the positional offset for the map.
std::string mapFileName_
The name of the map file.
-
+
Bool_t initialised_
Initialisation boolean.
Int_t Ny_
The number of bins along y.
Float_t theta_
The second Euler rotation angle about the new x axis.
@@ -645,7 +648,7 @@
Int_t binG_
Bin G for the trilinear interpolation.
Int_t binH_
Bin H for the trilinear interpolation.
Float_t xMin_
The minimum value of x for the map.
-void initialise()
Initialisation.
+void initialise()
Initialisation.
Int_t binB_
Bin B for the trilinear interpolation.
Int_t binF_
Bin F for the trilinear interpolation.
CoordAxis
Enumeration to specify the co-ordinate type.
@@ -655,17 +658,17 @@
Int_t Nx_
The number of bins along x.
Float_t xRange_
The co-ordinate range along x.
Float_t yOffset_
The y value of the positional offset for the map.
-void readTextFile()
Process the text file containing the field map data.
+void readTextFile()
Process the text file containing the field map data.
Float_t scale_
The B field magnitude scaling factor.
TGeoMatrix * theTrans_
The combined translation and rotation transformation.
-binPair getBinInfo(Float_t x, CoordAxis theAxis)
Get the bin number and fractional distance from the leftmost bin edge.
-Bool_t insideRange(Float_t x, Float_t y, Float_t z)
Check to see if a point is within the map validity range.
+binPair getBinInfo(Float_t x, CoordAxis theAxis)
Get the bin number and fractional distance from the leftmost bin edge.
+Bool_t insideRange(Float_t x, Float_t y, Float_t z)
Check to see if a point is within the map validity range.
virtual ~ShipBFieldMap()
Destructor.
-void readRootFile()
Process the ROOT file containing the field map data.
+void readRootFile()
Process the ROOT file containing the field map data.
Float_t xFrac1_
Complimentary fractional bin distance along x.
Int_t binA_
Bin A for the trilinear interpolation.
-void readMapFile()
Read the field map data and store the information internally.
-Int_t getMapBin(Int_t iX, Int_t iY, Int_t iZ)
Find the vector entry of the field map data given the bins iX, iY and iZ.
+void readMapFile()
Read the field map data and store the information internally.
+Int_t getMapBin(Int_t iX, Int_t iY, Int_t iZ)
Find the vector entry of the field map data given the bins iX, iY and iZ.
Float_t yMax_
The maximum value of y for the map.
Float_t yRange_
The co-ordinate range along y.
Float_t zMax_
The maximum value of z for the map.
diff --git a/ShipBFieldMap_8h_source.html b/ShipBFieldMap_8h_source.html
index e088407cd..900569a29 100644
--- a/ShipBFieldMap_8h_source.html
+++ b/ShipBFieldMap_8h_source.html
@@ -375,7 +375,7 @@
Float_t zFrac1_
Complimentary fractional bin distance along z.
ShipBFieldMap(const std::string &label, const std::string &mapFileName, Float_t xOffset=0.0, Float_t yOffset=0.0, Float_t zOffset=0.0, Float_t phi=0.0, Float_t theta=0.0, Float_t psi=0.0, Float_t scale=1.0, Bool_t isSymmetric=kFALSE)
Constructor.
Int_t binE_
Bin E for the trilinear interpolation.
-Float_t BInterCalc(CoordAxis theAxis)
+Float_t BInterCalc(CoordAxis theAxis)
Int_t Nz_
The number of bins along z.
Float_t Tesla_
Double converting Tesla to kiloGauss (for VMC/FairRoot B field units)
Float_t GetXRange() const
Get the x co-ordinate range for the map.
@@ -388,7 +388,7 @@
Float_t yMin_
The minimum value of y for the map.
Float_t zOffset_
The z value of the positional offset for the map.
std::string mapFileName_
The name of the map file.
-
+
Bool_t initialised_
Initialisation boolean.
void SetPhi(Float_t phi)
Set the first Euler rotation angle phi about the z axis.
Int_t Ny_
The number of bins along y.
@@ -403,7 +403,7 @@
Int_t binG_
Bin G for the trilinear interpolation.
Int_t binH_
Bin H for the trilinear interpolation.
Float_t xMin_
The minimum value of x for the map.
-void initialise()
Initialisation.
+void initialise()
Initialisation.
void SetYOffset(Float_t yValue)
Set the y global co-ordinate shift.
Int_t GetNz() const
Get the number of bins along z.
Int_t binB_
Bin B for the trilinear interpolation.
@@ -425,21 +425,21 @@
Float_t xRange_
The co-ordinate range along x.
Float_t yOffset_
The y value of the positional offset for the map.
ShipBFieldMap & operator=(const ShipBFieldMap &rhs)
Copy assignment operator not implemented.
-void readTextFile()
Process the text file containing the field map data.
+void readTextFile()
Process the text file containing the field map data.
Float_t scale_
The B field magnitude scaling factor.
TGeoMatrix * theTrans_
The combined translation and rotation transformation.
-binPair getBinInfo(Float_t x, CoordAxis theAxis)
Get the bin number and fractional distance from the leftmost bin edge.
+binPair getBinInfo(Float_t x, CoordAxis theAxis)
Get the bin number and fractional distance from the leftmost bin edge.
Float_t GetPhi() const
Get the first Euler rotation angle about the z axis for global positioning.
-Bool_t insideRange(Float_t x, Float_t y, Float_t z)
Check to see if a point is within the map validity range.
+Bool_t insideRange(Float_t x, Float_t y, Float_t z)
Check to see if a point is within the map validity range.
void SetTheta(Float_t theta)
Set the second Euler rotation angle theta about the new x axis.
virtual ~ShipBFieldMap()
Destructor.
-void readRootFile()
Process the ROOT file containing the field map data.
+void readRootFile()
Process the ROOT file containing the field map data.
Float_t GetdZ() const
Get the bin width along z for the map.
Float_t xFrac1_
Complimentary fractional bin distance along x.
Int_t binA_
Bin A for the trilinear interpolation.
-void readMapFile()
Read the field map data and store the information internally.
+void readMapFile()
Read the field map data and store the information internally.
Float_t GetXOffset() const
Get the x offset co-ordinate of the map for global positioning.
-Int_t getMapBin(Int_t iX, Int_t iY, Int_t iZ)
Find the vector entry of the field map data given the bins iX, iY and iZ.
+Int_t getMapBin(Int_t iX, Int_t iY, Int_t iZ)
Find the vector entry of the field map data given the bins iX, iY and iZ.
Float_t yMax_
The maximum value of y for the map.
Float_t yRange_
The co-ordinate range along y.
Float_t zMax_
The maximum value of z for the map.
diff --git a/classShipBFieldMap.html b/classShipBFieldMap.html
index e97fd0e73..b0fca281b 100644
--- a/classShipBFieldMap.html
+++ b/classShipBFieldMap.html
@@ -649,7 +649,7 @@