Skip to content
Snippets Groups Projects
Commit fe6e1d7c authored by Christopher Rob Jones's avatar Christopher Rob Jones
Browse files

NOT FOR MERGE - rescale DeFT layer IDs to start at 0

parent 5faf43fc
No related branches found
No related tags found
1 merge request!3053Draft: NOT FOR MERGE - PrZoneHandler id workaround
Pipeline #4309230 passed
......@@ -33,7 +33,11 @@ namespace FTZoneCache {
PrFTZoneHandler( DeFT const& ftDet ) {
#ifdef USE_DD4HEP
auto func = [this]( const DeFTLayer& layer ) {
const auto id = layer.layerID();
// NOT FOR MERGE
// In DetDesc Ids number from 0, but with DD4HEP seem to start at 4 .... ??
// This should be fixed at source in Detector but for now just correct here.
const auto id = layer.layerID() - 4;
// NOT FOR MERGE
// fixme
DetectorSegment seg( 0, layer.globalZ(), layer.dxdy(), layer.dzdy(), 0., 0. );
const auto xmax = 0.5f * layer.sizeX();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment