Public Member Functions | Private Member Functions | List of all members
gar::gar_pandora::BFieldPlugin Class Reference

#include <BFieldPlugin.h>

Inheritance diagram for gar::gar_pandora::BFieldPlugin:

Public Member Functions

 BFieldPlugin ()
 
float GetBField (const pandora::CartesianVector &positionVector) const
 

Private Member Functions

pandora::StatusCode Initialize ()
 
pandora::StatusCode ReadSettings (const pandora::TiXmlHandle xmlHandle)
 

Detailed Description

Definition at line 11 of file BFieldPlugin.h.

Constructor & Destructor Documentation

gar::gar_pandora::BFieldPlugin::BFieldPlugin ( )

Definition at line 10 of file BFieldPlugin.cxx.

11  {
12  /* no op */
13  }

Member Function Documentation

float gar::gar_pandora::BFieldPlugin::GetBField ( const pandora::CartesianVector &  positionVector) const

Definition at line 17 of file BFieldPlugin.cxx.

18  {
19  auto const *fieldService = gar::providerFrom<mag::MagneticFieldService>();
20  G4ThreeVector PosVec(positionVector.GetX(), positionVector.GetY(), positionVector.GetZ());
21  G4ThreeVector magfield = fieldService->FieldAtPoint(PosVec);
22  return magfield[0];
23  }
pandora::StatusCode gar::gar_pandora::BFieldPlugin::Initialize ( )
private

Definition at line 27 of file BFieldPlugin.cxx.

28  {
29  /* nop */
30  return pandora::STATUS_CODE_SUCCESS;
31  }
pandora::StatusCode gar::gar_pandora::BFieldPlugin::ReadSettings ( const pandora::TiXmlHandle  xmlHandle)
private

Definition at line 35 of file BFieldPlugin.cxx.

36  {
37  /* nop */
38  return pandora::STATUS_CODE_SUCCESS;
39  }

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