ECCE @ EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
PHFieldUtility Class Reference

Toolsets to do geometry operations. More...

#include <coresoftware/blob/master/offline/packages/PHField/PHFieldUtility.h>

Static Public Member Functions

static PHFieldConfigDefaultFieldConfig ()
 
static PHFieldGetFieldMapNode (const PHFieldConfig *default_config=nullptr, PHCompositeNode *topNode=nullptr, const int verbosity=0)
 Get transient PHField from DST nodes. If not found, make a new one based on default_config.
 
static PHFieldConfigGetFieldConfigNode (const PHFieldConfig *default_config=nullptr, PHCompositeNode *topNode=nullptr, const int verbosity=0)
 Get persistent PHGeomIOTGeo from DST nodes. If not found, make a new one.
 
static PHFieldBuildFieldMap (const PHFieldConfig *field_config, const int verbosity=0)
 Build or build field map with a configuration object.
 
static std::string GetDSTFieldMapNodeName ()
 DST node name for RunTime field map object.
 
static std::string GetDSTConfigNodeName ()
 DST node name for persistent field configuration node.
 

Private Member Functions

 PHFieldUtility ()=delete
 
 ~PHFieldUtility ()=delete
 

Detailed Description

Toolsets to do geometry operations.

Definition at line 11 of file PHFieldUtility.h.

View newest version in sPHENIX GitHub at line 11 of file PHFieldUtility.h

Constructor & Destructor Documentation

PHFieldUtility::PHFieldUtility ( )
privatedelete
PHFieldUtility::~PHFieldUtility ( )
privatedelete

Member Function Documentation

PHField * PHFieldUtility::BuildFieldMap ( const PHFieldConfig field_config,
const int  verbosity = 0 
)
static

Build or build field map with a configuration object.

Definition at line 32 of file PHFieldUtility.cc.

View newest version in sPHENIX GitHub at line 32 of file PHFieldUtility.cc

References PHFieldConfig::Field3DCartesian, PHFieldConfig::get_field_config(), PHFieldConfig::get_field_mag_x(), PHFieldConfig::get_field_mag_y(), PHFieldConfig::get_field_mag_z(), PHFieldConfig::get_filename(), PHFieldConfig::get_magfield_rescale(), PHFieldConfig::identify(), PHFieldConfig::kField2D, PHFieldConfig::kField3DCylindrical, PHFieldConfig::kFieldBeast, PHFieldConfig::kFieldCleo, and PHFieldConfig::kFieldUniform.

Referenced by PHTpcTracker::getMagField(), and main().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

PHFieldConfig * PHFieldUtility::DefaultFieldConfig ( )
static

Make a default PHFieldConfig as in default macro of pro.3 release Field map = /phenix/upgrades/decadal/fieldmaps/sPHENIX.2d.root Field Scale to 1.4/1.5 default field configuration object. Caller assumes ownership

Make a default PHFieldConfig Field map = /phenix/upgrades/decadal/fieldmaps/sPHENIX.2d.root Field Scale to 1.4/1.5 default field configuration object. Caller assumes ownership

Definition at line 109 of file PHFieldUtility.cc.

View newest version in sPHENIX GitHub at line 109 of file PHFieldUtility.cc

References PHFieldConfig::kField2D.

Referenced by main().

+ Here is the caller graph for this function:

static std::string PHFieldUtility::GetDSTConfigNodeName ( )
inlinestatic

DST node name for persistent field configuration node.

Definition at line 45 of file PHFieldUtility.h.

View newest version in sPHENIX GitHub at line 45 of file PHFieldUtility.h

static std::string PHFieldUtility::GetDSTFieldMapNodeName ( )
inlinestatic

DST node name for RunTime field map object.

Definition at line 38 of file PHFieldUtility.h.

View newest version in sPHENIX GitHub at line 38 of file PHFieldUtility.h

PHFieldConfig * PHFieldUtility::GetFieldConfigNode ( const PHFieldConfig default_config = nullptr,
PHCompositeNode topNode = nullptr,
const int  verbosity = 0 
)
static

Get persistent PHGeomIOTGeo from DST nodes. If not found, make a new one.

Get persistent PHFieldConfig from DST nodes. If not found, make a new one based on default_config

Parameters
[in]default_configdefault configuraiton if not on DST. If nullptr, use DefaultFieldConfig() as the default
[in]topNodeyou know who....

Definition at line 152 of file PHFieldUtility.cc.

View newest version in sPHENIX GitHub at line 152 of file PHFieldUtility.cc

References PHObject::CloneMe(), PHNodeIterator::findFirst(), PHFieldConfig::identify(), Fun4AllServer::instance(), PHWHERE, and Fun4AllServer::topNode().

+ Here is the call graph for this function:

PHField * PHFieldUtility::GetFieldMapNode ( const PHFieldConfig default_config = nullptr,
PHCompositeNode topNode = nullptr,
const int  verbosity = 0 
)
static

Get transient PHField from DST nodes. If not found, make a new one based on default_config.

Get transient PHField from DST nodes. If not found, make a new one based on default_config

Parameters
[in]default_configdefault configuraiton if not on DST. If nullptr, use DefaultFieldConfig() as the default
[in]topNodeyou know who....

Definition at line 118 of file PHFieldUtility.cc.

View newest version in sPHENIX GitHub at line 118 of file PHFieldUtility.cc

References PHNodeIterator::findFirst(), Fun4AllServer::instance(), PHWHERE, and Fun4AllServer::topNode().

Referenced by ALICEKF::ALICEKF(), PHTpcTracker::getMagField(), PHG4Reco::InitField(), PHGenFitTrkProp::InitializePHGenFit(), FieldMapReadBack::InitRun(), PHGenFitTrackProjection::InitRun(), PHSimpleKFProp::InitRun(), PHRaveVertexing::InitRun(), PHG4TrackFastSim::InitRun(), B0TrackFastSim::InitRun(), and PHGenFitTrkFitter::InitRun().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: