![Logo](../../ATLAS-Logo-Square-Blue-RGB.png) |
ATLAS Offline Software
|
Go to the documentation of this file.
9 #ifndef MAGFIELDTESTBEDALG_H
10 #define MAGFIELDTESTBEDALG_H 1
17 #include "GaudiKernel/ServiceHandle.h"
19 #include "GaudiKernel/IChronoStatSvc.h"
bool m_useDerivatives
only outer detector values will be tested
double m_halfZ
the half-length along y
double m_absTolerance
absolute tolerance in field against reference
bool checkWithReference()
check current field with reference field
bool m_onlyCheckSolenoid
only scan solenoid field
bool m_recordReadings
record readings (for reproducability) or not (for speed tests)
int m_stepsZ
the number of steps in Z
int m_stepsY
the number of steps in Y
TTree * m_tree
the ROOT tree containing the output
const G4Field * p_g4field
field service from G4
ServiceHandle< ITHistSvc > m_thistSvc
the histogram service
double m_relTolerance
relative tolerance in field against reference
long m_numberOfReadings
random readings instead of grid
bool m_explicitCoords
give values to check explicitly
double m_halfX
the half-lenght along x
StatusCode finalize()
Athena algorithm's interface method finalize()
bool m_generateBox
generate box
double m_field[3]
stores the field components
double m_explicitZ
if value to check is given explicitly
ServiceHandle< IChronoStatSvc > m_chronoSvc
the chrono service
double m_deriv[9]
stores derivatives TODO: currently only useMagFieldSvc = true
std::string m_refFile
reference field file name
::StatusCode StatusCode
StatusCode definition for legacy code.
StatusCode fetchEnvironment()
get environment either for g4 or for magFieldSvc
StatusCode initialize()
Athena algorithm's interface method initialize()
Local cache for magnetic field (based on MagFieldServices/AtlasFieldSvcTLS.h)
std::string m_treeName
name of the Tree object
StatusCode execute()
Athena algorithm's interface method execute()
double m_minX
the minimum x for box generation
double m_halfY
the half-length along y
ServiceHandle< MagField::IMagFieldSvc > m_magFieldSvc
service to get vanilla field svc
std::string m_refTreeName
TTree object in reference file.
virtual ~MagFieldTestbedAlg()
Destructor.
void getFieldValue()
get Field value either by G4 or by MagFieldSvc
double m_explicitY
if value to check is given explicitly
int m_stepsX
the number of steps in X
MagFieldTestbedAlg(const std::string &name, ISvcLocator *pSvcLocator)
std::string m_histStream
THistSvc stream name.
double m_explicitX
if value to check is given explicitly
bool m_complete
validation completed already?
bool m_coordsAlongBeam
coordinates on a beams in random directions
double m_xyzt[4]
stores the current xyzt position