DD4hep  1.30.0
Detector Description Toolkit for High Energy Physics
Geant4HierarchyDump.h
Go to the documentation of this file.
1 //==========================================================================
2 // AIDA Detector description implementation
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see $DD4hepINSTALL/LICENSE.
8 // For the list of contributors see $DD4hepINSTALL/doc/CREDITS.
9 //
10 // Author : M.Frank
11 //
12 //==========================================================================
13 #ifndef DDG4_GEANT4HIERARCHYDUMP_H
14 #define DDG4_GEANT4HIERARCHYDUMP_H
15 
16 // Geant 4 include files
17 #include <G4VPhysicalVolume.hh>
18 
20 namespace dd4hep {
21 
22  // Forward declarations
23  class Detector;
24 
26  namespace sim {
27 
29 
35  public:
36  enum {
37  G4DUMP_ALL = 0xFFFFFFFF,
38  G4DUMP_LOGVOL = 1 << 0,
39  G4DUMP_SOLID = 1 << 1,
40  G4DUMP_SENSDET = 1 << 2,
41  G4DUMP_LIMITS = 1 << 3,
42  G4DUMP_REGION = 1 << 4,
43  G4DUMP_MATRIX = 1 << 5,
45  };
46 
48  unsigned long m_flags = G4DUMP_ALL;
49 
50  public:
52  Geant4HierarchyDump(Detector& description, unsigned long flags = G4DUMP_ALL);
54  virtual ~Geant4HierarchyDump();
56  virtual void dump(const std::string& indent, const G4VPhysicalVolume* vol) const;
57  };
58  }
59 }
60 
61 #endif // DDG4_GEANT4HIERARCHYDUMP_H
dd4hep::sim::Geant4HierarchyDump::m_flags
unsigned long m_flags
Definition: Geant4HierarchyDump.h:48
dd4hep::sim::Geant4HierarchyDump
Helper to dump Geant4 volume hierarchy.
Definition: Geant4HierarchyDump.h:34
dd4hep::sim::Geant4HierarchyDump::G4DUMP_LAST
@ G4DUMP_LAST
Definition: Geant4HierarchyDump.h:44
dd4hep::sim::Geant4HierarchyDump::G4DUMP_SENSDET
@ G4DUMP_SENSDET
Definition: Geant4HierarchyDump.h:40
dd4hep::sim::Geant4HierarchyDump::G4DUMP_ALL
@ G4DUMP_ALL
Definition: Geant4HierarchyDump.h:37
dd4hep::sim::Geant4HierarchyDump::m_detDesc
Detector & m_detDesc
Definition: Geant4HierarchyDump.h:47
dd4hep::sim::Geant4HierarchyDump::Geant4HierarchyDump
Geant4HierarchyDump(Detector &description, unsigned long flags=G4DUMP_ALL)
Initializing Constructor.
Definition: Geant4HierarchyDump.cpp:69
dd4hep::sim::Geant4HierarchyDump::G4DUMP_LIMITS
@ G4DUMP_LIMITS
Definition: Geant4HierarchyDump.h:41
dd4hep::sim::Geant4HierarchyDump::G4DUMP_MATRIX
@ G4DUMP_MATRIX
Definition: Geant4HierarchyDump.h:43
dd4hep::sim::Geant4HierarchyDump::G4DUMP_REGION
@ G4DUMP_REGION
Definition: Geant4HierarchyDump.h:42
dd4hep
Namespace for the AIDA detector description toolkit.
Definition: AlignmentsCalib.h:28
dd4hep::Detector
The main interface to the dd4hep detector description package.
Definition: Detector.h:90
dd4hep::sim::Geant4HierarchyDump::dump
virtual void dump(const std::string &indent, const G4VPhysicalVolume *vol) const
Dump the volume hierarchy as it is known to geant 4.
Definition: Geant4HierarchyDump.cpp:79
dd4hep::sim::Geant4HierarchyDump::G4DUMP_LOGVOL
@ G4DUMP_LOGVOL
Definition: Geant4HierarchyDump.h:38
dd4hep::sim::Geant4HierarchyDump::~Geant4HierarchyDump
virtual ~Geant4HierarchyDump()
Standard destructor.
Definition: Geant4HierarchyDump.cpp:76
dd4hep::sim::Geant4HierarchyDump::G4DUMP_SOLID
@ G4DUMP_SOLID
Definition: Geant4HierarchyDump.h:39