DD4hep  1.38.0
Detector Description Toolkit for High Energy Physics
Public Member Functions | Private Attributes | List of all members
dd4hep::DetectorStructure Class Reference

Helper class to define subdetectors depending on volume names/placement pathes. More...

#include <DetectorStructure.h>

Public Member Functions

void _set_volid (PlacedVolume pv, const std::string &volid, int value)
 Assign volume ID to placement. More...
 
void _set_attr (Volume volume, xml_det_t e) const
 Set properties for all volumes. More...
 
 DetectorStructure (Detector &dsc, xml_h e, SensitiveDetector sd)
 Default constructor. More...
 
DetElement construct ()
 Construct subdetector from Geant3 geometry. More...
 
void add_children (DetElement parent, xml_det_t e)
 Add sub-branch of DetElements to subdetector. More...
 

Private Attributes

Detector & description
 
SensitiveDetector sensitive { }
 
std::string name { }
 
PrintLevel print { ALWAYS }
 
int id { -1 }
 
xml_det_t xd
 

Detailed Description

Helper class to define subdetectors depending on volume names/placement pathes.

Definition at line 24 of file DetectorStructure.h.

Constructor & Destructor Documentation

◆ DetectorStructure()

dd4hep::DetectorStructure::DetectorStructure ( Detector &  dsc,
xml_h  e,
SensitiveDetector  sd 
)

Default constructor.

Definition at line 102 of file DetectorStructure.cpp.

Member Function Documentation

◆ _set_attr()

void dd4hep::DetectorStructure::_set_attr ( Volume  volume,
xml_det_t  e 
) const

Set properties for all volumes.

Definition at line 127 of file DetectorStructure.cpp.

◆ _set_volid()

void dd4hep::DetectorStructure::_set_volid ( PlacedVolume  pv,
const std::string &  volid,
int  value 
)

Assign volume ID to placement.

Definition at line 111 of file DetectorStructure.cpp.

◆ add_children()

void dd4hep::DetectorStructure::add_children ( DetElement  parent,
xml_det_t  e 
)

Add sub-branch of DetElements to subdetector.

Definition at line 224 of file DetectorStructure.cpp.

◆ construct()

dd4hep::DetElement dd4hep::DetectorStructure::construct ( )

Construct subdetector from Geant3 geometry.

Definition at line 146 of file DetectorStructure.cpp.

Member Data Documentation

◆ description

Detector& dd4hep::DetectorStructure::description
private

Definition at line 26 of file DetectorStructure.h.

◆ id

int dd4hep::DetectorStructure::id { -1 }
private

Definition at line 30 of file DetectorStructure.h.

◆ name

std::string dd4hep::DetectorStructure::name { }
private

Definition at line 28 of file DetectorStructure.h.

◆ print

PrintLevel dd4hep::DetectorStructure::print { ALWAYS }
private

Definition at line 29 of file DetectorStructure.h.

◆ sensitive

SensitiveDetector dd4hep::DetectorStructure::sensitive { }
private

Definition at line 27 of file DetectorStructure.h.

◆ xd

xml_det_t dd4hep::DetectorStructure::xd
private

Definition at line 31 of file DetectorStructure.h.


The documentation for this class was generated from the following files: