Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Print3dFieldMap.C
Go to the documentation of this file. Or view the newest version in sPHENIX GitHub for file Print3dFieldMap.C
1 #ifndef PRINT3DFIELDMAP_H
2 #define PRINT3DFIELDMAP_H
3 
4 #include <fieldmapreadback/FieldMapReadBack.h>
5 
6 R__LOAD_LIBRARY(libfieldmapreadbackread.so)
7 
8 // our maps can be found under
9 //$CALIBRATIONROOT/Field/Map
10 
11 FieldMapReadBack *Print3dFieldMap(const std::string &mapname, const float magfield_rescale = 1.)
12 {
13  FieldMapReadBack *fmap = new FieldMapReadBack();
14  fmap->Load3dCartMap(mapname, magfield_rescale);
15  fmap->Verbosity(2);
16  fmap->PrintField(0, 0, 0);
17  return fmap;
18 }
19 
20 #endif