CbmRoot
Loading...
Searching...
No Matches
CbmLitMapField.h
Go to the documentation of this file.
1
/* Copyright (C) 2009-2012 GSI/JINR-LIT, Darmstadt/Dubna
2
SPDX-License-Identifier: GPL-3.0-only
3
Authors: Andrey Lebedev [committer] */
4
13
#ifndef CBMLITMAPFIELD_H_
14
#define CBMLITMAPFIELD_H_
15
16
#include "FairField.h"
17
#include "
interface/CbmLitField.h
"
18
19
class
CbmLitMapField
:
public
CbmLitField
{
20
public
:
21
/* Constructor */
22
CbmLitMapField
(FairField* field) :
fField
(field) {}
23
24
/* Destructor */
25
virtual
~CbmLitMapField
(){};
26
27
/* Inherited from CbmLitField */
28
void
GetFieldValue
(
litfloat
x
,
litfloat
y
,
litfloat
z,
litfloat
& Bx,
litfloat
& By,
litfloat
& Bz)
const
29
{
30
double
pos
[3] = {
x
,
y
, z};
31
double
B[3];
32
fField
->GetFieldValue(
pos
, B);
33
Bx = B[0];
34
By = B[1];
35
Bz = B[2];
36
}
37
38
/* Inherited from CbmLitField */
39
virtual
std::string
ToString
()
const
{
return
"CbmLitMapField::ToString"
; }
40
41
private
:
42
FairField*
fField
;
// Pointer to field map
43
};
44
45
#endif
/* CBMLITMAPFIELD_H_ */
CbmLitField.h
Interface for accessing the magnetic field.
litfloat
double litfloat
Definition
CbmLitFloat.h:19
y
Double_t y
Definition
CbmMvdSensorDigiToHitTask.cxx:64
x
Double_t x
Definition
CbmMvdSensorDigiToHitTask.cxx:64
pos
TVector3 pos
Definition
CbmMvdSensorDigiToHitTask.cxx:56
CbmLitField
Interface for accessing the magnetic field.
Definition
CbmLitField.h:25
CbmLitMapField
Definition
CbmLitMapField.h:19
CbmLitMapField::CbmLitMapField
CbmLitMapField(FairField *field)
Definition
CbmLitMapField.h:22
CbmLitMapField::GetFieldValue
void GetFieldValue(litfloat x, litfloat y, litfloat z, litfloat &Bx, litfloat &By, litfloat &Bz) const
Return field value at (x,y,z) position.
Definition
CbmLitMapField.h:28
CbmLitMapField::ToString
virtual std::string ToString() const
Definition
CbmLitMapField.h:39
CbmLitMapField::fField
FairField * fField
Definition
CbmLitMapField.h:42
CbmLitMapField::~CbmLitMapField
virtual ~CbmLitMapField()
Definition
CbmLitMapField.h:25
reco
littrack
cbm
base
CbmLitMapField.h
Generated on Sun Dec 22 2024 23:04:17 for CbmRoot by
1.12.0