21#include "GaudiKernel/ITHistSvc.h"
44 SmartIF<ITHistSvc> tHistSvc{service(
"THistSvc")};
46 ATH_MSG_FATAL(
"initialize() Could not find Hist Service! Aborting." );
48 return StatusCode::FAILURE;
52 if (tHistSvc->regTree(fullTreeName.c_str(),
m_currentTree).isFailure()) {
53 ATH_MSG_ERROR(
"initialize() Could not register the validation Tree!Aborting." );
55 return StatusCode::FAILURE;
62 for (
size_t ib = 0 ; ib < bSurfaces.size(); ++ib ){
63 TString bSurfId =
"bsurf_";
67 boundarySurfaceBranch.
fill(bSurfaces[ib]->surfaceRepresentation());
70 return StatusCode::SUCCESS;
81 TString layerId =
"lay_";
87 return StatusCode::SUCCESS;
97 TString surfaceId =
"surf";
100 surfaceBranch.
fill(sf);
102 return StatusCode::SUCCESS;
#define ATH_MSG_VERBOSE(x)
StatusCode processNode(const TrackingVolume &tvol, size_t level=0) const
Current implementation: write root visualization to file stream.
virtual ~GeometryTTreeDumper()
Destructor.
GeometryTTreeDumper(const std::string &, const std::string &, const IInterface *)
Constructor.
TTree * m_currentTree
the tree for the currently processed tracking Volume
std::string m_treeFolder
where the tree is written to
int value() const
layerIndex expressed in an integer
Base Class for a Detector Layer in the Tracking realm.
virtual const Surface & surfaceRepresentation() const =0
Transforms the layer into a Surface representation for extrapolation.
const LayerIndex & layerIndex() const
get the layerIndex
RecursiveGeometryProcessor(const std::string &, const std::string &, const IInterface *)
Constructor.
Abstract Base Class for tracking surfaces.
Full Volume description used in Tracking, it inherits from Volume to get the geometrical structure,...
std::vector< std::shared_ptr< BoundarySurface< TrackingVolume > > > & boundarySurfaces()
Method to return the BoundarySurfaces.
const std::string & volumeName() const
Returns the VolumeName - for debug reason, might be depreciated later.
Ensure that the ATLAS eigen extensions are properly loaded.
This class provides a simple interface to write Surfaces to a root tree.
void initForWrite(TTree &tree, const std::string &prefix="")
initialize class for writing
void fill(const Trk::Surface &surface)
fill a vector