EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
EicMagneticFieldMap Class Referenceabstract

#include <EicRoot/blob/master/eic/field/EicMagneticFieldMap.h>

+ Inheritance diagram for EicMagneticFieldMap:
+ Collaboration diagram for EicMagneticFieldMap:

Public Member Functions

 EicMagneticFieldMap (const char *fileName=0, TGeoMatrix *transformation=0, TGeoShape *shape=0, int color=_DEFAULT_YOKE_COLOR_)
 
 ~EicMagneticFieldMap ()
 
virtual int Initialize ()
 
bool Initialized () const
 
virtual int GetFieldValue (const double xx[], double B[]) const =0
 
TGeoShape * GetShape () const
 
virtual bool Contains (const double xx[]) const
 
const TString & GetFileName () const
 
virtual bool CapableToBuildYoke () const
 
virtual TString GetDetectorName () const
 
virtual int ConstructGeometry ()
 
void SetYokeColor (int color)
 
int GetYokeColor () const
 
virtual TGeoVolume * GetYokeVolume () const
 

Protected Member Functions

const char * BasenameWrapper (const char *fname) const
 
int GetMD5Signature (unsigned char output[])
 

Protected Attributes

UInt_t mMD5BufferSize
 
UChar_t * mMD5Signature
 
Bool_t mInitialized
 
TGeoMatrix * mTransformation
 indicates whether Initialize() call was made or not
 
TGeoShape * mShape
 
Int_t mColor
 

Private Attributes

TString mFileName
 

Detailed Description

Definition at line 18 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 18 of file EicMagneticFieldMap.h

Constructor & Destructor Documentation

EicMagneticFieldMap::EicMagneticFieldMap ( const char *  fileName = 0,
TGeoMatrix *  transformation = 0,
TGeoShape *  shape = 0,
int  color = _DEFAULT_YOKE_COLOR_ 
)

Definition at line 56 of file EicMagneticFieldMap.cxx.

View newest version in sPHENIX GitHub at line 56 of file EicMagneticFieldMap.cxx

References FairLogger::Fatal(), FairLogger::GetLogger(), GetMD5Signature(), MESSAGE_ORIGIN, mFileName, mMD5BufferSize, mMD5Signature, and mShape.

+ Here is the call graph for this function:

EicMagneticFieldMap::~EicMagneticFieldMap ( )
inline

Definition at line 23 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 23 of file EicMagneticFieldMap.h

Member Function Documentation

const char * EicMagneticFieldMap::BasenameWrapper ( const char *  fname) const
protected

Definition at line 25 of file EicMagneticFieldMap.cxx.

View newest version in sPHENIX GitHub at line 25 of file EicMagneticFieldMap.cxx

Referenced by EicBeamLineElementMap::GetDetectorName().

+ Here is the caller graph for this function:

virtual bool EicMagneticFieldMap::CapableToBuildYoke ( ) const
inlinevirtual

Reimplemented in EicBeamLineElementGrad, and EicBeamLineElementMap.

Definition at line 45 of file EicMagneticFieldMap.h.

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

Referenced by EicMagneticField::CreateYokeVolumes().

+ Here is the caller graph for this function:

virtual int EicMagneticFieldMap::ConstructGeometry ( )
inlinevirtual

Reimplemented in EicBeamLineElementGrad, and EicBeamLineElementMap.

Definition at line 50 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 50 of file EicMagneticFieldMap.h

Referenced by EicFieldMapDetector::ConstructGeometry().

+ Here is the caller graph for this function:

bool EicMagneticFieldMap::Contains ( const double  xx[]) const
virtual

Reimplemented in EicPndFieldMap.

Definition at line 119 of file EicMagneticFieldMap.cxx.

View newest version in sPHENIX GitHub at line 119 of file EicMagneticFieldMap.cxx

References mShape, and mTransformation.

Referenced by EicBeamLineElementMap::GetFieldValue(), and EicConstantField::GetFieldValue().

+ Here is the caller graph for this function:

virtual TString EicMagneticFieldMap::GetDetectorName ( ) const
inlinevirtual

Reimplemented in EicBeamLineElementGrad, and EicBeamLineElementMap.

Definition at line 49 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 49 of file EicMagneticFieldMap.h

References GetFileName().

Referenced by EicMagneticField::CreateYokeVolumes().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual int EicMagneticFieldMap::GetFieldValue ( const double  xx[],
double  B[] 
) const
pure virtual

Implemented in EicPndFieldMap, EicBeamLineElementGrad, EicBeamLineElementMap, and EicConstantField.

Referenced by EicMagneticField::GetFieldSumValue().

+ Here is the caller graph for this function:

const TString& EicMagneticFieldMap::GetFileName ( void  ) const
inline

Definition at line 42 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 42 of file EicMagneticFieldMap.h

References mFileName.

Referenced by EicFieldMapDetector::ConstructGeometry(), EicBeamLineElementMap::GetDetectorName(), EicBeamLineElementGrad::GetDetectorName(), GetDetectorName(), EicBeamLineElementMap::Initialize(), and EicMagneticField::InitializeFieldMaps().

+ Here is the caller graph for this function:

int EicMagneticFieldMap::GetMD5Signature ( unsigned char  output[])
protected

Definition at line 35 of file EicMagneticFieldMap.cxx.

View newest version in sPHENIX GitHub at line 35 of file EicMagneticFieldMap.cxx

References ExpandedFileName(), mFileName, and Acts::open.

Referenced by EicMagneticFieldMap(), and Initialize().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

TGeoShape* EicMagneticFieldMap::GetShape ( ) const
inline

Definition at line 37 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 37 of file EicMagneticFieldMap.h

References mShape.

Referenced by EicConstantField::GetFieldValue().

+ Here is the caller graph for this function:

int EicMagneticFieldMap::GetYokeColor ( ) const
inline

Definition at line 53 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 53 of file EicMagneticFieldMap.h

References mColor.

Referenced by EicBeamLineElementMap::ConstructGeometry(), and EicBeamLineElementGrad::ConstructGeometry().

+ Here is the caller graph for this function:

virtual TGeoVolume* EicMagneticFieldMap::GetYokeVolume ( ) const
inlinevirtual

Reimplemented in EicBeamLineElementGrad, and EicBeamLineElementMap.

Definition at line 55 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 55 of file EicMagneticFieldMap.h

Referenced by EicFieldMapDetector::ConstructGeometry().

+ Here is the caller graph for this function:

int EicMagneticFieldMap::Initialize ( )
virtual

Reimplemented in EicPndFieldMap, EicBeamLineElementGrad, EicConstantField, and EicBeamLineElementMap.

Definition at line 91 of file EicMagneticFieldMap.cxx.

View newest version in sPHENIX GitHub at line 91 of file EicMagneticFieldMap.cxx

References FairLogger::Fatal(), FairLogger::GetLogger(), GetMD5Signature(), MESSAGE_ORIGIN, mFileName, mInitialized, and mMD5Signature.

Referenced by EicBeamLineElementMap::Initialize(), EicConstantField::Initialize(), EicBeamLineElementGrad::Initialize(), EicPndFieldMap::Initialize(), and EicMagneticField::InitializeFieldMaps().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

bool EicMagneticFieldMap::Initialized ( ) const
inline

Definition at line 31 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 31 of file EicMagneticFieldMap.h

References mInitialized.

Referenced by EicMagneticField::InitializeFieldMaps().

+ Here is the caller graph for this function:

void EicMagneticFieldMap::SetYokeColor ( int  color)
inline

Definition at line 52 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 52 of file EicMagneticFieldMap.h

References color, and mColor.

Referenced by EicMagneticFieldFromGradients::AddBeamLineElementGrads(), EicMagneticField::AddBeamLineElementGrads(), and EicMagneticField::AddBeamLineElementMaps().

+ Here is the caller graph for this function:

Member Data Documentation

Int_t EicMagneticFieldMap::mColor
protected

Definition at line 77 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 77 of file EicMagneticFieldMap.h

Referenced by GetYokeColor(), and SetYokeColor().

TString EicMagneticFieldMap::mFileName
private

Definition at line 63 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 63 of file EicMagneticFieldMap.h

Referenced by EicMagneticFieldMap(), GetFileName(), GetMD5Signature(), and Initialize().

Bool_t EicMagneticFieldMap::mInitialized
protected

Definition at line 68 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 68 of file EicMagneticFieldMap.h

Referenced by EicConstantField::GetFieldValue(), Initialize(), and Initialized().

UInt_t EicMagneticFieldMap::mMD5BufferSize
protected

Definition at line 66 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 66 of file EicMagneticFieldMap.h

Referenced by EicMagneticFieldMap().

UChar_t* EicMagneticFieldMap::mMD5Signature
protected

Definition at line 67 of file EicMagneticFieldMap.h.

View newest version in sPHENIX GitHub at line 67 of file EicMagneticFieldMap.h

Referenced by EicMagneticFieldMap(), and Initialize().

TGeoShape* EicMagneticFieldMap::mShape
protected
TGeoMatrix* EicMagneticFieldMap::mTransformation
protected

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