DD4hep  1.38.0
Detector Description Toolkit for High Energy Physics
DetectorStructure.h
Go to the documentation of this file.
1 //==========================================================================
2 // ALEPH software suite
3 //--------------------------------------------------------------------------
4 // Copyright (C) Organisation europeenne pour la Recherche nucleaire (CERN)
5 // All rights reserved.
6 //
7 // For the licensing terms see OnlineSys/LICENSE.
8 //
9 //--------------------------------------------------------------------------
10 //
11 // Author : Markus Frank
12 //==========================================================================
13 #ifndef DDCORE_XML_DETECTORSTRUCTURE_H
14 #define DDCORE_XML_DETECTORSTRUCTURE_H
15 
17 #include <DD4hep/Printout.h>
19 
21 namespace dd4hep {
22 
25  private:
28  std::string name { };
29  PrintLevel print { ALWAYS };
30  int id { -1 };
32 
33  public:
35  void _set_volid( PlacedVolume pv, const std::string& volid, int value );
37  void _set_attr(Volume volume, xml_det_t e) const;
38 
39  public:
45  void add_children(DetElement parent, xml_det_t e);
46  };
47 }
48 #endif // DDCORE_XML_DETECTORSTRUCTURE_H
dd4hep::SensitiveDetector
Handle class to hold the information of a sensitive detector.
Definition: DetElement.h:43
dd4hep::DetectorStructure::construct
DetElement construct()
Construct subdetector from Geant3 geometry.
Definition: DetectorStructure.cpp:146
dd4hep::PlacedVolume
Handle class holding a placed volume (also called physical volume)
Definition: Volumes.h:164
dd4hep::DetectorStructure::description
Detector & description
Definition: DetectorStructure.h:26
dd4hep::DetectorStructure::DetectorStructure
DetectorStructure(Detector &dsc, xml_h e, SensitiveDetector sd)
Default constructor.
Definition: DetectorStructure.cpp:102
dd4hep::DetectorStructure::_set_attr
void _set_attr(Volume volume, xml_det_t e) const
Set properties for all volumes.
Definition: DetectorStructure.cpp:127
dd4hep::DetectorStructure::xd
xml_det_t xd
Definition: DetectorStructure.h:31
dd4hep::xml::Handle_t
Class to easily access the properties of single XmlElements.
Definition: XMLElements.h:380
dd4hep::DetectorStructure::print
PrintLevel print
Definition: DetectorStructure.h:29
dd4hep::DetectorStructure::name
std::string name
Definition: DetectorStructure.h:28
dd4hep::DetectorStructure::sensitive
SensitiveDetector sensitive
Definition: DetectorStructure.h:27
dd4hep::DetElement
Handle class describing a detector element.
Definition: DetElement.h:187
dd4hep::Volume
Handle class holding a placed volume (also called physical volume)
Definition: Volumes.h:371
xml_det_t
dd4hep::xml::DetElement xml_det_t
Definition: XML.h:32
dd4hep::DetectorStructure::_set_volid
void _set_volid(PlacedVolume pv, const std::string &volid, int value)
Assign volume ID to placement.
Definition: DetectorStructure.cpp:111
dd4hep::DetectorStructure
Helper class to define subdetectors depending on volume names/placement pathes.
Definition: DetectorStructure.h:24
DetFactoryHelper.h
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:89
dd4hep::DetectorStructure::add_children
void add_children(DetElement parent, xml_det_t e)
Add sub-branch of DetElements to subdetector.
Definition: DetectorStructure.cpp:224
Printout.h