SHiP Geometry
SHiP experiment geometry implementation using GeoModel.
Loading...
Searching...
No Matches
CaloBarLayer.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-3.0-or-later
2// Copyright (C) CERN for the benefit of the SHiP Collaboration
3
4#pragma once
5
7
8#include <string>
9#include <string_view>
10
11class GeoVPhysVol;
12class GeoLogVol;
13
14namespace SHiP::geometry {
15
17enum class BarAxis { AlongX, AlongY };
18
26namespace calo_bar {
27
28void placeLayer(GeoVPhysVol* mother, GeoLogVol const* barLog, units::LengthMm pitch, int nBars,
29 units::LengthMm zCenter, std::string_view tagPrefix, int layerIndex, BarAxis axis,
30 const std::string& nameSuffix = "");
31
32} // namespace calo_bar
33
34} // namespace SHiP::geometry
Places an array of identical scintillator bars into a mother volume.
Definition CaloBarLayer.h:26
void placeLayer(GeoVPhysVol *mother, GeoLogVol const *barLog, units::LengthMm pitch, int nBars, units::LengthMm zCenter, std::string_view tagPrefix, int layerIndex, BarAxis axis, const std::string &nameSuffix="")
Definition CaloBarLayer.cpp:18
mp_units::quantity< mm > LengthMm
Spellings for struct members and function parameters.
Definition Units.h:39
Definition DetectorBuilder.h:8
BarAxis
Which transverse axis the bars are replicated along.
Definition CaloBarLayer.h:17
@ AlongY
Definition CaloBarLayer.h:17
@ AlongX
Definition CaloBarLayer.h:17