1#ifndef MAGFIELDSCANNER_H
2#define MAGFIELDSCANNER_H
5#include "GaudiKernel/Service.h"
8#include "k4Interface/IGeoSvc.h"
9#include "k4Interface/ISimG4Svc.h"
10#include "k4Interface/ISimG4MagneticFieldTool.h"
45 "magFieldProbes.root",
53 "xy-plane probe definitions"};
59 "z-plane probe definitions"};
65 "Tube probe definitions"};
87 friend std::ostream&
operator<<(std::ostream& outStream,
89 friend std::ostream&
operator<<(std::ostream& outStream,
91 friend std::ostream&
operator<<(std::ostream& outStream,
Service probes the Geant4 magnetic field on initialize.
Definition MagFieldScanner.h:27
Gaudi::Property< std::string > m_outFilePath
Path to the output file.
Definition MagFieldScanner.h:43
virtual StatusCode initialize()
Definition MagFieldScanner.cpp:20
virtual ~MagFieldScanner()
Definition MagFieldScanner.h:33
MagFieldScanner(const std::string &name, ISvcLocator *svcLoc)
Definition MagFieldScanner.cpp:14
Gaudi::Property< std::vector< std::vector< double > > > m_tubeProbes
Definition MagFieldScanner.h:61
ServiceHandle< ISimG4Svc > m_simG4Svc
Handle to the Geant4 service.
Definition MagFieldScanner.h:40
friend std::ostream & operator<<(std::ostream &outStream, const XYPlaneProbe &probe)
Definition MagFieldScanner.cpp:337
virtual StatusCode finalize()
Definition MagFieldScanner.cpp:334
ServiceHandle< IGeoSvc > m_geoSvc
Handle to the geometry service.
Definition MagFieldScanner.h:37
Gaudi::Property< std::vector< std::vector< double > > > m_zPlaneProbes
Definition MagFieldScanner.h:55
Gaudi::Property< std::vector< std::vector< double > > > m_xyPlaneProbes
Probes.
Definition MagFieldScanner.h:49
Definition MagFieldScanner.h:81
const double zMax
Definition MagFieldScanner.h:83
const double r
Definition MagFieldScanner.h:84
const double zMin
Definition MagFieldScanner.h:82
Definition MagFieldScanner.h:68
const double yMax
Definition MagFieldScanner.h:70
const double z
Definition MagFieldScanner.h:71
const double xMax
Definition MagFieldScanner.h:69
Definition MagFieldScanner.h:74
const double zMax
Definition MagFieldScanner.h:76
const double rMax
Definition MagFieldScanner.h:77
const double phi
Definition MagFieldScanner.h:78
const double zMin
Definition MagFieldScanner.h:75