ATLAS Offline Software
GeometryJsonDumper.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 // GeometryJsonDumper.h, (c) ATLAS Detector software
8 
9 #ifndef TRKDETDESCRTOOLS_GEOMETRYJSONDUMPER_H
10 #define TRKDETDESCRTOOLS_GEOMETRYJSONDUMPER_H
11 
12 // Trk
14 // STL
15 #include <algorithm>
16 #include <string>
17 #include <fstream>
19 class TTree;
20 
21 namespace Trk {
22 
23  class TrackingVolume;
24  class Layer;
25  class Surface;
26 
37  virtual public RecursiveGeometryProcessor {
38 
39  public:
40 
42  GeometryJsonDumper(const std::string&,const std::string&,const IInterface*);
43 
46 
49 
52 
53  private:
54 
56  StatusCode processNode(const TrackingVolume& tvol, size_t level=0) const;
57 
59  StatusCode processNode(const Layer& lay, size_t level=0) const;
60 
62  StatusCode processNode(const Surface&, size_t level=0) const;
63 
64  mutable std::ofstream m_outputFile;
65  std::string m_outputFileName;
67  mutable bool m_firstLayerWritten;
68 
69  };
70 }
71 
72 #endif
73 
python.tests.PyTestsLib.finalize
def finalize(self)
_info( "content of StoreGate..." ) self.sg.dump()
Definition: PyTestsLib.py:50
ATLAS_NOT_THREAD_SAFE
#define ATLAS_NOT_THREAD_SAFE
getNoisyStrip() Find noisy strips from hitmaps and write out into xml/db formats
Definition: checker_macros.h:212
initialize
void initialize()
Definition: run_EoverP.cxx:894
Surface
Definition: Trigger/TrigAccel/TrigCudaFitter/src/Surface.h:8
Trk::GeometryJsonDumper::m_firstLayerWritten
bool m_firstLayerWritten
Definition: GeometryJsonDumper.h:67
python.RingerConstants.Layer
Layer
Definition: RingerConstants.py:42
python.iconfTool.models.loaders.level
level
Definition: loaders.py:20
Trk::GeometryJsonDumper::m_outputPrecision
int m_outputPrecision
Definition: GeometryJsonDumper.h:66
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
Trk::GeometryJsonDumper::m_outputFile
std::ofstream m_outputFile
Definition: GeometryJsonDumper.h:64
Trk::GeometryJsonDumper
Definition: GeometryJsonDumper.h:37
Trk
Ensure that the ATLAS eigen extensions are properly loaded.
Definition: FakeTrackBuilder.h:9
RecursiveGeometryProcessor.h
Trk::RecursiveGeometryProcessor
Definition: RecursiveGeometryProcessor.h:39
Trk::GeometryJsonDumper::m_outputFileName
std::string m_outputFileName
where the tree is written to
Definition: GeometryJsonDumper.h:65
Trk::GeometryJsonDumper::~GeometryJsonDumper
virtual ~GeometryJsonDumper()
Destructor.
Trk::Surface
Definition: Tracking/TrkDetDescr/TrkSurfaces/TrkSurfaces/Surface.h:75
checker_macros.h
Define macros for attributes used to control the static checker.
Trk::TrackingVolume
Definition: TrackingVolume.h:121
Trk::Layer
Definition: Layer.h:73