ATLAS Offline Software
Loading...
Searching...
No Matches
TrackingVolumeDisplayer.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3*/
4
6// TrackingVolumeDisplayer.h, (c) ATLAS Detector software
8
9#ifndef TRKDETDESCRTOOLS_TRACKINGVOLUMEDISPLAYER_H
10#define TRKDETDESCRTOOLS_TRACKINGVOLUMEDISPLAYER_H
11
12// Trk
14// STL
15#include <string>
16#include <fstream>
17
19namespace Trk {
20
21 class TrackingVolume;
22 class Layer;
23 class Surface;
25
33
35 virtual public RecursiveGeometryProcessor {
36
37 public:
38
40 TrackingVolumeDisplayer(const std::string&,const std::string&,const IInterface*);
43
45 StatusCode initialize();
46
48 StatusCode finalize();
49
50 private:
51
53 StatusCode processNode(const TrackingVolume& tvol, size_t level=0) const;
54
56 StatusCode processNode(const Layer& lay, size_t level=0) const;
57
59 StatusCode processNode(const Surface&, size_t level=0) const;
60
61 static void openFile(std::ofstream& output, const std::string& filename) ;
62 static void closeFile(std::ofstream& output) ;
63
65 static int colorCodeFromMaterial(const Trk::MaterialProperties* prop, std::ofstream& output) ;
66
67 mutable int m_volumeCounter;
68
69 mutable std::ofstream m_fileVolumeOutput;
70 mutable std::string m_fileVolumeOutputName;
72
73 mutable std::ofstream m_fileLayerOutput;
74 mutable std::string m_fileLayerOutputName;
75 mutable bool m_fileLayerOutputMode;
76
77 mutable std::ofstream m_fileSurfaceOutput;
78 mutable std::string m_fileSurfaceOutputName;
81
82 static int s_displaySurfaces;
83
84 };
85
86}
87
88#endif
89
Define macros for attributes used to control the static checker.
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Base Class for a Detector Layer in the Tracking realm.
Definition Layer.h:72
Material with information about thickness of material.
RecursiveGeometryProcessor(const std::string &, const std::string &, const IInterface *)
Constructor.
Abstract Base Class for tracking surfaces.
StatusCode processNode(const TrackingVolume &tvol, size_t level=0) const
Current implementation: write root visualization to file stream.
std::ofstream m_fileVolumeOutput
file output for visualization action
static int s_displaySurfaces
static surface counter
static void openFile(std::ofstream &output, const std::string &filename)
File handling: open + write header.
std::ofstream m_fileSurfaceOutput
file output for visualization action
virtual ~TrackingVolumeDisplayer()
Destructor.
StatusCode finalize()
AlgTool finalize method.
std::ofstream m_fileLayerOutput
file output for visualization action
TrackingVolumeDisplayer(const std::string &, const std::string &, const IInterface *)
Constructor.
bool m_fileSurfaceOutputSplit
use one file for each layer
static int colorCodeFromMaterial(const Trk::MaterialProperties *prop, std::ofstream &output)
calculate the color code from the Material
std::string m_fileSurfaceOutputName
file name for visualization action
std::string m_fileLayerOutputName
file name for visualization action
static void closeFile(std::ofstream &output)
File handling: write footer + close.
std::string m_fileVolumeOutputName
file name for visualization action
Full Volume description used in Tracking, it inherits from Volume to get the geometrical structure,...
Ensure that the ATLAS eigen extensions are properly loaded.
void initialize()