EIC 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 the node componetn 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 152 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 152 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 the node componetn from a mother by the string names.

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

Definition at line 138 of file DetUtils.cpp.

View newest version in sPHENIX GitHub at line 138 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 21 of file DetUtils.cpp.

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

References Acts::UnitConstants::cm.

Referenced by det::createTkLayoutTrackerBarrel().

+ Here is the caller graph for this function:

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 52 of file DetUtils.cpp.

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

References 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 77 of file DetUtils.cpp.

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

References Acts::UnitConstants::cm.

Referenced by det::createTkLayoutTrackerEndcap().

+ Here is the caller graph for this function:

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 111 of file DetUtils.cpp.

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

References Acts::UnitConstants::cm.