ATLAS Offline Software
MagneticField
MagFieldUtils
src
IdentityManipulator.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#include "
IdentityManipulator.h
"
6
7
MagField::IdentityManipulator::IdentityManipulator
(
const
std::string&
name
,
8
const
std::string&
type
,
9
const
IInterface*
parent
)
10
:
AthAlgTool
(
name
,
type
,
parent
)
11
{
12
13
declareInterface<IMagFieldManipulator>(
this
);
14
}
15
16
MagField::IdentityManipulator::~IdentityManipulator
()
17
{
18
}
19
20
StatusCode
MagField::IdentityManipulator::initialize
()
21
{
22
ATH_MSG_INFO
(
"in initialize()"
);
23
return
StatusCode::SUCCESS;
24
}
25
26
StatusCode
MagField::IdentityManipulator::finalize
()
27
{
28
ATH_MSG_INFO
(
"in finalize()"
);
29
return
StatusCode::SUCCESS;
30
}
31
32
void
MagField::IdentityManipulator::modifyPosition
(
const
double
*xyz_old,
double
*xyz_new)
33
{
34
xyz_new[0] = xyz_old[0];
35
xyz_new[1] = xyz_old[1];
36
xyz_new[2] = xyz_old[2];
37
}
38
39
void
MagField::IdentityManipulator::modifyField
(
double
*
/*bxyz*/
,
double
*
/*deriv*/
)
40
{
41
// do nothing (i.e. leave bxyz untouched)
42
}
ATH_MSG_INFO
#define ATH_MSG_INFO(x)
Definition:
AthMsgStreamMacros.h:31
MagField::IdentityManipulator::IdentityManipulator
IdentityManipulator(const std::string &name, const std::string &type, const IInterface *parent)
Definition:
IdentityManipulator.cxx:7
MagField::IdentityManipulator::finalize
virtual StatusCode finalize()
Finalize AlgTool.
Definition:
IdentityManipulator.cxx:26
MagField::IdentityManipulator::initialize
virtual StatusCode initialize()
Initialize AlgTool.
Definition:
IdentityManipulator.cxx:20
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition:
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
test_pyathena.parent
parent
Definition:
test_pyathena.py:15
MagField::IdentityManipulator::modifyField
virtual void modifyField(double *bxyz, double *deriv=0)
Correct field (input field must have been evaluated in the point indicated by modifyPosition)
Definition:
IdentityManipulator.cxx:39
MagField::IdentityManipulator::~IdentityManipulator
virtual ~IdentityManipulator()
Definition:
IdentityManipulator.cxx:16
IdentityManipulator.h
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:192
python.CaloScaleNoiseConfig.type
type
Definition:
CaloScaleNoiseConfig.py:78
AthAlgTool
Definition:
AthAlgTool.h:26
MagField::IdentityManipulator::modifyPosition
virtual void modifyPosition(const double *xyz_old, double *xyz_new)
Change the position at which the field is evaluated.
Definition:
IdentityManipulator.cxx:32
Generated on Sun Jun 30 2024 21:17:14 for ATLAS Offline Software by
1.8.18