|
ATLAS Offline Software
|
Go to the documentation of this file.
21 #include "GaudiKernel/ITHistSvc.h"
27 m_currentTree(nullptr),
40 if (m_currentTree) m_currentTree->Fill();
43 m_currentTree =
new TTree(tvol.
volumeName().c_str(),
"Geometrical information");
44 SmartIF<ITHistSvc> tHistSvc{service(
"THistSvc")};
46 ATH_MSG_FATAL(
"initialize() Could not find Hist Service! Aborting." );
48 return StatusCode::FAILURE;
51 std::string fullTreeName = m_treeFolder+tvol.
volumeName();
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_";
66 boundarySurfaceBranch.
initForWrite(*m_currentTree,bSurfId.Data());
67 boundarySurfaceBranch.
fill(bSurfaces[
ib]->surfaceRepresentation());
70 return StatusCode::SUCCESS;
81 TString layerId =
"lay_";
87 return StatusCode::SUCCESS;
97 TString surfaceId =
"surf";
99 surfaceBranch.
initForWrite(*m_currentTree,surfaceId.Data());
102 return StatusCode::SUCCESS;
void fill(const Trk::Surface &surface)
fill a vector
std::vector< SharedObject< BoundarySurface< TrackingVolume > > > & boundarySurfaces()
Method to return the BoundarySurfaces.
#define ATH_MSG_VERBOSE(x)
virtual const Surface & surfaceRepresentation() const =0
Transforms the layer into a Surface representation for extrapolation.
::StatusCode StatusCode
StatusCode definition for legacy code.
int value() const
layerIndex expressed in an integer
Ensure that the ATLAS eigen extensions are properly loaded.
const std::string & volumeName() const
Returns the VolumeName - for debug reason, might be depreciated later.
void initForWrite(TTree &tree, const std::string &prefix="")
initialize class for writing
StatusCode processNode(const TrackingVolume &tvol, size_t level=0) const
Current implementation: write root visualization to file stream.
This class provides a simple interface to write Surfaces to a root tree.
virtual ~GeometryTTreeDumper()
Destructor.
GeometryTTreeDumper(const std::string &, const std::string &, const IInterface *)
Constructor.
const LayerIndex & layerIndex() const
get the layerIndex