Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
LayerFactory.cpp File Reference
#include "Acts/Geometry/VolumeBounds.hpp"
#include "Acts/Plugins/DD4hep/DD4hepBinningHelpers.hpp"
#include "Acts/Plugins/DD4hep/DD4hepConversionHelpers.hpp"
#include "Acts/Utilities/Logger.hpp"
#include <DD4hep/DetFactoryHelper.h>
#include <DD4hep/Objects.h>
#include <DDRec/DetectorData.h>
#include <XML/Utilities.h>
#include "DD4hepTestsHelper.hpp"
+ Include dependency graph for LayerFactory.cpp:

Go to the source code of this file.

Functions

DetElement addCylinderLayer (Detector &dd, Assembly &dAssembly, const xml_comp_t &x_layer, SensitiveDetector sens, int layerID=0)
 Helper method to add a layer to the detector.
 
static Ref_t create_barrel_detector (Detector &dd, xml_h xml, SensitiveDetector sens)
 
static Ref_t create_disc_layer (Detector &dd, xml_h xml, SensitiveDetector sens)
 

Function Documentation

DetElement addCylinderLayer ( Detector &  dd,
Assembly &  dAssembly,
const xml_comp_t &  x_layer,
SensitiveDetector  sens,
int  layerID = 0 
)

Helper method to add a layer to the detector.

Parameters
ddthe detector to which this is added
dAssemblythe detector assembly
x_layerthe xml element describing the layer
sensthe sensitive detector to be used
layerIDthe layer identification number

Definition at line 31 of file LayerFactory.cpp.

View newest version in sPHENIX GitHub at line 31 of file LayerFactory.cpp

References DD4hepTestsHelper::createTransform(), Acts::decodeBinning(), to_string(), and physmon_ckf_tracking::u.

Referenced by create_barrel_detector().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

static Ref_t create_barrel_detector ( Detector &  dd,
xml_h  xml,
SensitiveDetector  sens 
)
static

Standard create_barrel_detector(...) create a barrel like detector

Parameters
ddthe detector to which this is addedded
xmlthe input xml element
sensis ignored
Returns
a reference counted DetElement

Definition at line 148 of file LayerFactory.cpp.

View newest version in sPHENIX GitHub at line 148 of file LayerFactory.cpp

References addCylinderLayer(), layer, and translation().

+ Here is the call graph for this function:

static Ref_t create_disc_layer ( Detector &  dd,
xml_h  xml,
SensitiveDetector  sens 
)
static

Standard create_cylinder(...) create a simple disc layer

Parameters
ddthe detector to which this is addedded
xmlthe input xml element
sensis ignored
Returns
a reference counted DetElement

Definition at line 196 of file LayerFactory.cpp.

View newest version in sPHENIX GitHub at line 196 of file LayerFactory.cpp

References DD4hepTestsHelper::createTransform(), Acts::decodeBinning(), to_string(), and physmon_ckf_tracking::u.

+ Here is the call graph for this function: