EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
printBField.C File Reference
#include <TTreeReader.h>
#include <TTreeReaderValue.h>
#include "TFile.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TProfile.h"
#include "TROOT.h"
#include "TTree.h"
+ Include dependency graph for printBField.C:

Go to the source code of this file.

Functions

void printBField (std::string inFile, std::string treeName, std::string outFile, float rmin, float rmax, float zmin, float zmax, int nBins)
 

Function Documentation

void printBField ( std::string  inFile,
std::string  treeName,
std::string  outFile,
float  rmin,
float  rmax,
float  zmin,
float  zmax,
int  nBins 
)

to print out the FCC field map please use

printBField("FCChhBField.root","bField","printBField_FCC.root",-20.,20.,-30.,30.,400.)

ro print out the ATLAS BField map pleas use

printBField("ATLASBField.root","bField","printBField_ATLAS.root",-10.,10.,-15.,15.,200.)
Parameters
inFileThe root input file containing the magnetic field values and positions either in cylinder (Branch names: 'r','z','Br','Bz') or cartesian coordinates (Branch names: 'x','y','z','Bx','By','Bz')
thename of the tree containing the branches
rMinThe minimum value of the position in either r (for cylinder coordinates) or x/y (for cartesian coordinates) to be printed in [m]
rMinThe minimum value of the position in either r (for cylinder coordinates) or x/y (for cartesian coordinates) to be printed in [m]
rMinThe maximum value of the position in either r (for cylinder coordinates) or x/y (for cartesian coordinates) to be printed in [m]
rMinThe minimum value of the position in z in [m]
rMinThe maximum value of the position in z in [m]
nBinsNumber of bins which should be used for the histogram (on all axes)
Note
This script just writes out the values which are read in from the given input file. It does no interpolation inbetween the values. This means, in case the binning is chosen too high, empty bins will appear.

Definition at line 48 of file printBField.C.

View newest version in sPHENIX GitHub at line 48 of file printBField.C

References Acts::Test::blue, Acts::IntegrationTest::Bz, Acts::Test::green, reader(), Acts::Test::red, x, y, and z.

+ Here is the call graph for this function: