Back to home page

sPhenix code displayed by LXR

 
 

    


File indexing completed on 2025-08-05 08:21:36

0001 #ifndef PRINT3DFIELDMAP_H
0002 #define PRINT3DFIELDMAP_H
0003 
0004 #include <fieldmapreadback/FieldMapReadBack.h>
0005 
0006 R__LOAD_LIBRARY(libfieldmapreadbackread.so)
0007 
0008 // our maps can be found under
0009 //$CALIBRATIONROOT/Field/Map
0010 
0011 FieldMapReadBack *Print3dFieldMap(const std::string &mapname, const float magfield_rescale = 1.)
0012 {
0013   FieldMapReadBack *fmap = new FieldMapReadBack();
0014   fmap->Load3dCartMap(mapname, magfield_rescale);
0015   fmap->Verbosity(2);
0016   fmap->PrintField(0, 0, 0);
0017   return fmap;
0018 }
0019 
0020 #endif