5#ifndef ACTSGEOMETRY_CALOBLUEPRINTNODEBUILDER_H
6#define ACTSGEOMETRY_CALOBLUEPRINTNODEBUILDER_H
11#include "Acts/Surfaces/CylinderSurface.hpp"
12#include "Acts/Surfaces/DiscSurface.hpp"
13#include "Acts/Surfaces/Surface.hpp"
15#include "CaloDetDescr/CaloDetDescrElement.h"
22using caloSampleSurfaceMap_t = std::map<std::pair<std::string, CaloCell_ID::CaloSample>, std::vector<std::shared_ptr<Acts::Surface> > >;
37 using base_class::base_class;
42 std::shared_ptr<Acts::Experimental::BlueprintNode>
buildBlueprintNode(
const Acts::GeometryContext& gctx,
43 std::shared_ptr<Acts::Experimental::BlueprintNode>&& childNode)
override;
53 void fillMaps(std::map<caloRegion, caloSampleSurfaceMap_t>& caloRegionSampleSurfaceMap,
54 std::map<caloRegion, caloSampleDDEElementsMap_t>& caloRegionSampleDDEElementsMap)
const;
71 std::shared_ptr<Acts::CylinderSurface>
generateCylinderSurface(
const double& maxLArBRadius,
const double& minLArBRadius,
const double& lowZLarB,
const double& highZLarB)
const;
78 void addCylindricalTrackingVolumeToCaloNode(Acts::Experimental::CylinderContainerBlueprintNode& containerNode,
const std::string& volumeName,
const std::vector<std::shared_ptr<Acts::Surface>>& surfaces,
int layerIndex,
const bool& isDisc)
const;
82 std::shared_ptr<Acts::DiscSurface>
generateDiscSurface(
const double&
z,
const double& maxLArBRadius,
const double& minLArBRadius)
const;
89 std::vector<std::pair<std::string, CaloCell_ID::CaloSample>>
m_caloDiscSampleList{{
"PreSamplerE", CaloCell_ID::PreSamplerE},
90 {
"EME1",CaloCell_ID::EME1},
91 {
"EME2",CaloCell_ID::EME2},
92 {
"EME3",CaloCell_ID::EME3},
93 {
"HEC0",CaloCell_ID::HEC0},
94 {
"HEC1",CaloCell_ID::HEC1},
95 {
"HEC2",CaloCell_ID::HEC2},
96 {
"HEC3",CaloCell_ID::HEC3},
97 {
"TileGap3",CaloCell_ID::TileGap3}};
99 std::vector<std::pair<std::string, CaloCell_ID::CaloSample>>
m_caloCylinderSampleList{ {
"PreSamplerB", CaloCell_ID::PreSamplerB},
100 {
"EMB1", CaloCell_ID::EMB1},
101 {
"EMB2", CaloCell_ID::EMB2},
102 {
"EMB3", CaloCell_ID::EMB3},
103 {
"TileBar0", CaloCell_ID::TileBar0},
104 {
"TileBar1", CaloCell_ID::TileBar1},
105 {
"TileBar2", CaloCell_ID::TileBar2},
106 {
"TileGap1", CaloCell_ID::TileGap1},
107 {
"TileGap2", CaloCell_ID::TileGap2},
108 {
"TileExt0", CaloCell_ID::TileExt0},
109 {
"TileExt1", CaloCell_ID::TileExt1},
110 {
"TileExt2", CaloCell_ID::TileExt2}};
115 ,
"Tolerance for determining if a ring of cells in phi has changed the radius w.r.t to the previous ring in phi" };
120 ,
"Tolerance for determining if a ring of cells in phi has changed the z w.r.t to the previous ring in phi" };
124 std::string sampleName =
"";
126 if (currentSample == sample) {
131 if (sampleName ==
"") {
133 if (currentSample == sample) {
145 if (sampleName == name) {
150 if (sampleEnum == CaloCell_ID::Unknown) {
152 if (sampleName == name) {
std::map< std::string, double > caloDimensionMap_t
std::map< std::pair< std::string, CaloCell_ID::CaloSample >, std::vector< std::shared_ptr< Acts::Surface > > > caloSampleSurfaceMap_t
std::map< std::pair< std::string, CaloCell_ID::CaloSample >, std::vector< const CaloDetDescrElement * > > caloSampleDDEElementsMap_t
Definition of CaloDetDescrManager.
Builds the Calo Blueprint Node.
void fillMaps(std::map< caloRegion, caloSampleSurfaceMap_t > &caloRegionSampleSurfaceMap, std::map< caloRegion, caloSampleDDEElementsMap_t > &caloRegionSampleDDEElementsMap) const
fillMaps fills two maps.
std::vector< std::pair< std::string, CaloCell_ID::CaloSample > > m_caloDiscSampleList
std::string getSampleName(CaloCell_ID::CaloSample currentSample) const
void fillCaloDimensionsMap(caloDimensionMap_t &caloDimensionsMap, caloSampleDDEElementsMap_t &caloSampleDDEElementsMap) const
fillCaloDimensionsMap fills a map of calorimeter dimensions for each sampling layer.
std::vector< std::pair< std::string, CaloCell_ID::CaloSample > > m_caloCylinderSampleList
Gaudi::Property< double > m_radiusTolerance
void generateCylinderSurfaces(caloSampleSurfaceMap_t &caloSampleSurfaceMap, caloSampleDDEElementsMap_t &caloSampleDDEElementsMap) const
generateCylinderSurfaces generates cylindrical surfaces for each calo sampling.
std::shared_ptr< Acts::CylinderSurface > generateCylinderSurface(const double &maxLArBRadius, const double &minLArBRadius, const double &lowZLarB, const double &highZLarB) const
generateCylinderSurface generates a cylindrical surface for a given set of parameters.
void addCylindricalTrackingVolumeToCaloNode(Acts::Experimental::CylinderContainerBlueprintNode &containerNode, const std::string &volumeName, const std::vector< std::shared_ptr< Acts::Surface > > &surfaces, int layerIndex, const bool &isDisc) const
addCylindricalTrackingVolumeToCaloNode adds a cylindrical tracking volume to the calo node.
StatusCode initialize() override
std::shared_ptr< Acts::DiscSurface > generateDiscSurface(const double &z, const double &maxLArBRadius, const double &minLArBRadius) const
std::shared_ptr< Acts::Experimental::BlueprintNode > buildBlueprintNode(const Acts::GeometryContext &gctx, std::shared_ptr< Acts::Experimental::BlueprintNode > &&childNode) override
Build the Itk Blueprint Node.
StatusCode finalize() override
Gaudi::Property< double > m_zTolerance
std::unique_ptr< CaloDetDescrManager > m_caloDetSecrMgr
CaloCell_ID::CaloSample getSampleEnum(const std::string &sampleName) const
void generateDiscSurfaces(caloSampleSurfaceMap_t &caloSampleSurfaceMap, caloSampleDDEElementsMap_t &caloSampleDDEElementsMap) const
CaloSampling::CaloSample CaloSample
The AlignStoreProviderAlg loads the rigid alignment corrections and pipes them through the readout ge...