Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
det::utils Namespace Reference

Functions

std::shared_ptr< const
Acts::DigitizationModule
rectangleDigiModuleXZ (double halflengthX, double halflengthZ, double thickness, const dd4hep::Segmentation &segmentation)
 
std::shared_ptr< const
Acts::DigitizationModule
rectangleDigiModuleXZ (double halflengthX, double halflengthZ, double thickness, double gridSizeX, double gridSizeZ)
 
std::shared_ptr< const
Acts::DigitizationModule
trapezoidalDigiModuleXZ (double minHalflengthX, double maxHalflengthX, double halflengthZ, double thickness, const dd4hep::Segmentation &segmentation)
 
std::shared_ptr< const
Acts::DigitizationModule
trapezoidalDigiModuleXZ (double minHalflengthX, double maxHalflengthX, double halflengthZ, double thickness, double gridSizeX, double gridSizeZ)
 
dd4hep::xml::Component getNodeByStrAttr (const dd4hep::xml::Handle_t &mother, const std::string &nodeName, const std::string &attrName, const std::string &attrValue)
 Retrieves the node component from a mother by the string names.
 
double getAttrValueWithFallback (const dd4hep::xml::Component &node, const std::string &attrName, const double &defaultValue)
 

Function Documentation

double det::utils::getAttrValueWithFallback ( const dd4hep::xml::Component &  node,
const std::string &  attrName,
const double defaultValue 
)

try to get attribute with double value, return defaultValue if attribute not found

Definition at line 169 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 169 of file DetUtils.cpp

dd4hep::xml::Component det::utils::getNodeByStrAttr ( const dd4hep::xml::Handle_t &  mother,
const std::string &  nodeName,
const std::string &  attrName,
const std::string &  attrValue 
)

Retrieves the node component from a mother by the string names.

Parameters
motherThe Handle to the mother volume
nodeNameThe name of the note
attrNameThe name of the Attribute
attrValueThe attribute value

Definition at line 155 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 155 of file DetUtils.cpp

std::shared_ptr< const Acts::DigitizationModule > det::utils::rectangleDigiModuleXZ ( double  halflengthX,
double  halflengthZ,
double  thickness,
const dd4hep::Segmentation segmentation 
)

Global method to build an Acts::DigitizationModule with rectangular segmentation.

Note
This function should be used in order to create the input needed for construction with Acts::ActsExtension(std::shared_ptr<const DigitizationModule>)
Parameters
halflengthXThe half length in x of the detector module
halflengthZThe half length in z of the detector module
thicknessThe thickness of the detector module
segmentationthe DD4hep segmentation

Definition at line 26 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 26 of file DetUtils.cpp

References bounds, and Acts::UnitConstants::cm.

std::shared_ptr< const Acts::DigitizationModule > det::utils::rectangleDigiModuleXZ ( double  halflengthX,
double  halflengthZ,
double  thickness,
double  gridSizeX,
double  gridSizeZ 
)

Global method to build an Acts::DigitizationModule with rectangular segmentation.

Note
This function should be used in order to create the input needed for construction with Acts::ActsExtension(std::shared_ptr<const DigitizationModule>)
Parameters
halflengthXThe half length in x of the detector module
halflengthZThe half length in z of the detector module
thicknessThe thickness of the detector module
gridSizeXThe grid size in x
gridSizeYThe grid size in y

Definition at line 59 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 59 of file DetUtils.cpp

References bounds, and Acts::UnitConstants::cm.

std::shared_ptr< const Acts::DigitizationModule > det::utils::trapezoidalDigiModuleXZ ( double  minHalflengthX,
double  maxHalflengthX,
double  halflengthZ,
double  thickness,
const dd4hep::Segmentation segmentation 
)

Global method to build an Acts::DigitizationModule with trapezoidal segmentation.

Note
This function should be used in order to create the input needed for construction with Acts::ActsExtension(std::shared_ptr<const DigitizationModule>)
Parameters
minHalflengthXThe half length in x of the detector module on the negative side of z
maxHalflengthXThe half length in x of the detector module on the positive side of z
halflengthZThe half length in z of the detector module
thicknessThe thickness of the detector module
segmentationthe DD4hep segmentation

Definition at line 88 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 88 of file DetUtils.cpp

References bounds, and Acts::UnitConstants::cm.

std::shared_ptr< const Acts::DigitizationModule > det::utils::trapezoidalDigiModuleXZ ( double  minHalflengthX,
double  maxHalflengthX,
double  halflengthZ,
double  thickness,
double  gridSizeX,
double  gridSizeZ 
)

Global method to build an Acts::DigitizationModule with trapezoidal segmentation.

Note
This function should be used in order to create the input needed for construction with Acts::ActsExtension(std::shared_ptr<const DigitizationModule>)
Parameters
minHalflengthXThe half length in x of the detector module on the negative side of z
maxHalflengthXThe half length in x of the detector module on the positive side of z
halflengthZThe half length in z of the detector module
thicknessThe thickness of the detector module
gridSizeXThe grid size in x
gridSizeYThe grid size in y

Definition at line 124 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 124 of file DetUtils.cpp

References bounds, and Acts::UnitConstants::cm.